Skip to content

Commit 0dbe0b3

Browse files
author
Sebastian Blum
committed
Erweiterung für Verknüpfungen auf ID-Basis
1 parent d189fbb commit 0dbe0b3

27 files changed

+87
-81
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.idea
12
vendor

Visionline/Crm/WebApi/Cache.php

100644100755
File mode changed.

Visionline/Crm/WebApi/CacheEntry.php

100644100755
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,17 @@ public function merge(CacheEntry $other)
102102
return $result;
103103
}
104104

105-
/**
106-
* Returns the key under which this cache entry can be stored or retrieved.
107-
* @return string The key under which this cache entry can be stored or retrieved.
108-
*/
109-
public function getKey()
110-
{
111-
return CacheEntry::computeKey($this->type, $this->id);
112-
}
113-
114105
/**
115106
* Computes the key under which a cache entry can be stored or retrieved.
116107
* @param string $type The entity type
117108
* @param string $id the entity id
109+
* @param string $language the language
110+
* @param bool $return_ids Whether the cache entry contains IDs instead of values for relation fields
118111
* @return string The key under which a cache entry can be stored or retrieved.
119112
*/
120-
public static function computeKey($type, $id)
113+
public static function computeKey($type, $id, $language, $return_ids)
121114
{
122-
return $type . '#' . $id;
115+
return $type . '#' . $id . '-' . strtolower($language) . ($return_ids ? '-ids' : '');
123116
}
124117
}
125118

Visionline/Crm/WebApi/Connection.php

100644100755
File mode changed.

Visionline/Crm/WebApi/CreateEnquiryResult.php

100644100755
File mode changed.

Visionline/Crm/WebApi/Enquiry.php

100644100755
File mode changed.

Visionline/Crm/WebApi/EntityType.php

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class EntityType
4141
/**
4242
* Constant for entity-type 'Aktivität'
4343
*/
44-
const Aktivität = "Aktivität";
44+
const Aktivität = "Aktivität";
4545

4646
/**
4747
* Empty private constructor
4848
*/
4949
private function __construct() {}
50-
}
50+
}

Visionline/Crm/WebApi/EnumFieldsResult.php

100644100755
File mode changed.

Visionline/Crm/WebApi/Expression.php

100644100755
File mode changed.

Visionline/Crm/WebApi/FileCache.php

100644100755
File mode changed.

0 commit comments

Comments
 (0)