ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
arFieldCache Class Reference

Class arFieldCache. More...

+ Collaboration diagram for arFieldCache:

Static Public Member Functions

static isCached (ActiveRecord $ar)
static store (ActiveRecord $ar)
static storeFromStorage ($storage_class_name, arStorageInterface $foreign_model)
static get (ActiveRecord $ar)
static purge (ActiveRecord $ar)
static getPrimaryFieldName (ActiveRecord $ar)
static getPrimaryFieldType (ActiveRecord $ar)

Static Protected Attributes

static $cache = array()

Detailed Description

Class arFieldCache.

Version
2.0.7
Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 11 of file class.arFieldCache.php.

Member Function Documentation

static arFieldCache::get ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar

Definition at line 57 of file class.arFieldCache.php.

References store().

Referenced by getPrimaryFieldName(), and getPrimaryFieldType().

{
if (!self::isCached($ar)) {
}
return self::$cache[get_class($ar)];
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static arFieldCache::getPrimaryFieldName ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar
Returns
string

Definition at line 79 of file class.arFieldCache.php.

References get().

Referenced by arConnectorDB\delete(), arViewFields\getPrimaryField(), ActiveRecord\getPrimaryFieldValue(), arConnectorDB\read(), ActiveRecord\setPrimaryFieldValue(), and arConnectorDB\update().

{
return self::get($ar)->getPrimaryFieldName();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static arFieldCache::getPrimaryFieldType ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar
Returns
mixed

Definition at line 89 of file class.arFieldCache.php.

References get().

Referenced by arConnectorDB\delete(), arConnectorDB\read(), and arConnectorDB\update().

{
return self::get($ar)->getPrimaryFieldType();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static arFieldCache::isCached ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar
Returns
bool

Definition at line 24 of file class.arFieldCache.php.

{
return in_array(get_class($ar), array_keys(self::$cache));
}
static arFieldCache::purge ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar

Definition at line 69 of file class.arFieldCache.php.

{
unset(self::$cache[get_class($ar)]);
}
static arFieldCache::store ( ActiveRecord  $ar)
static
Parameters
ActiveRecord$ar

Definition at line 32 of file class.arFieldCache.php.

References arFieldList\getInstance().

Referenced by get().

{
self::$cache[get_class($ar)] = arFieldList::getInstance($ar);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static arFieldCache::storeFromStorage (   $storage_class_name,
arStorageInterface  $foreign_model 
)
static
Parameters
$storage_class_name
\ActiveRecord | \arStorageInterface$foreign_model

Definition at line 44 of file class.arFieldCache.php.

References arFieldList\getInstanceFromStorage().

{
self::$cache[$storage_class_name] = arFieldList::getInstanceFromStorage($foreign_model);
}

+ Here is the call graph for this function:

Field Documentation

arFieldCache::$cache = array()
staticprotected

Definition at line 16 of file class.arFieldCache.php.


The documentation for this class was generated from the following file: