ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilListItemAccessCache Class Reference

Caches (check) access information on list items. More...

+ Inheritance diagram for ilListItemAccessCache:
+ Collaboration diagram for ilListItemAccessCache:

Public Member Functions

 __construct ()
 Constructor.
 isDisabled ()
 Check if cache is disabled.
 readEntry ($a_id)
 Read an entry.
 storeEntry ($a_id, $a_value, $a_ref_id=0)
 Id is user_id:ref_id, we store ref_if additionally.
 deleteByRefId ($a_ref_id)
 This one can be called, e.g.
- Public Member Functions inherited from ilCache
 __construct ($a_component, $a_cache_name, $a_use_long_content=false)
 Constructor.
 setComponent ($a_val)
 Set component.
 setExpiresAfter ($a_val)
 Set expires after x seconds.
 getExpiresAfter ()
 Get expires after x seconds.
 getEntry ($a_id)
 Get entry.
 getLastAccessStatus ()
 Last access.
 storeEntry ($a_id, $a_value, $a_int_key1=null, $a_int_key2=null, $a_text_key1=null, $a_text_key2=null)
 Store entry.
 deleteByAdditionalKeys ($a_int_key1=null, $a_int_key2=null, $a_text_key1=null, $a_text_key2=null)
 Delete by additional keys.
 deleteAllEntries ()
 Delete all entries of cache.
 deleteEntry ($a_id)
 Delete entry.

Static Public Attributes

static $disabled = false

Additional Inherited Members

- Protected Member Functions inherited from ilCache
 getComponent ()
 Get component.
 setName ($a_val)
 Set name.
 getName ()
 Get name.
 setUseLongContent ($a_val)
 Set use long content.
 getUseLongContent ()
 Get use long content.

Detailed Description

Caches (check) access information on list items.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilListItemAccessCache.php.

Constructor & Destructor Documentation

ilListItemAccessCache::__construct ( )

Constructor.

Parameters
@return

Definition at line 23 of file class.ilListItemAccessCache.php.

References $ilSetting, and ilCache\setExpiresAfter().

{
global $ilSetting;
parent::__construct("ServicesObject", "CheckAccess", false);
$this->setExpiresAfter($ilSetting->get("rep_cache") * 60);
if ((int) $ilSetting->get("rep_cache") == 0)
{
self::$disabled = true;
}
}

+ Here is the call graph for this function:

Member Function Documentation

ilListItemAccessCache::deleteByRefId (   $a_ref_id)

This one can be called, e.g.

Definition at line 72 of file class.ilListItemAccessCache.php.

References ilCache\deleteByAdditionalKeys().

+ Here is the call graph for this function:

ilListItemAccessCache::isDisabled ( )

Check if cache is disabled.

Returns

Reimplemented from ilCache.

Definition at line 38 of file class.ilListItemAccessCache.php.

Referenced by readEntry(), and storeEntry().

{
return self::$disabled or parent::isDisabled();
}

+ Here is the caller graph for this function:

ilListItemAccessCache::readEntry (   $a_id)

Read an entry.

Reimplemented from ilCache.

Definition at line 47 of file class.ilListItemAccessCache.php.

References isDisabled().

{
if (!$this->isDisabled())
{
return parent::readEntry($a_id);
}
return false;
}

+ Here is the call graph for this function:

ilListItemAccessCache::storeEntry (   $a_id,
  $a_value,
  $a_ref_id = 0 
)

Id is user_id:ref_id, we store ref_if additionally.

Definition at line 60 of file class.ilListItemAccessCache.php.

References $ilSetting, and isDisabled().

{
global $ilSetting;
if (!$this->isDisabled())
{
parent::storeEntry($a_id, $a_value, $a_ref_id);
}
}

+ Here is the call graph for this function:

Field Documentation

ilListItemAccessCache::$disabled = false
static

Definition at line 15 of file class.ilListItemAccessCache.php.


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