\Visionline\Crm\WebApiCacheEntry

Internal class that defines an entry in the cache

Summary

Methods
Properties
Constants
__construct()
__wakeup()
merge()
computeKey()
$type
$id
$lastModified
$fields
$idFields
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$type

$type : string

The entity type

Type

string

$id

$id : integer

The entity id

Type

integer

$lastModified

$lastModified : integer

The date of the last modification of the entity

Type

integer

$fields

$fields : array

The field values of the entity

Type

array

$idFields

$idFields : array

The field values of the entity as ids

Type

array

Methods

__construct()

__construct(string  $type, integer  $id, integer  $lastModified = null, array  $fields = array(), array  $idFields = array()) 

Create a cache entry

Parameters

string $type

The entity type

integer $id

The entity id

integer $lastModified

The date of the last modification of the entity

array $fields

The field values of the the entity

array $idFields

The field values of the the entity containing ids instead of names

Throws

\InvalidArgumentException

If invalid arguments were supplied

__wakeup()

__wakeup() 

Hook after deserialization

Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376

merge()

merge(\Visionline\Crm\WebApi\CacheEntry  $other) : \Visionline\Crm\WebApi\CacheEntry

Merges this cache entry with another cache entry and returns the result. This cache entry and the specified other cache entry are not modified.

Parameters

\Visionline\Crm\WebApi\CacheEntry $other

The cache entry to be merged.

Throws

\InvalidArgumentException

If no other cache entry was supplied or its properties are not set correctly.

Returns

\Visionline\Crm\WebApi\CacheEntry

The merged cache entry

computeKey()

computeKey(string  $type, string  $id, string  $language) : string

Computes the key under which a cache entry can be stored or retrieved.

Parameters

string $type

The entity type

string $id

the entity id

string $language

the language

Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376

Returns

string —

The key under which a cache entry can be stored or retrieved.