ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
ilListItemAccessCache Class Reference

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

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

Public Member Functions

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

Static Public Attributes

static $disabled = false
 

Additional Inherited Members

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

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

◆ __construct()

ilListItemAccessCache::__construct ( )

Constructor.

Parameters

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

References $ilSetting, and ilCache\setExpiresAfter().

24  {
25  global $ilSetting;
26  parent::__construct("ServicesObject", "CheckAccess", false);
27 // $this->setExpiresAfter($ilSetting->get("rep_cache") * 60);
28  $this->setExpiresAfter(0);
29 // if ((int) $ilSetting->get("rep_cache") == 0)
30  if (true)
31  {
32  self::$disabled = true;
33  }
34  }
global $ilSetting
Definition: privfeed.php:40
setExpiresAfter($a_val)
Set expires after x seconds.
+ Here is the call graph for this function:

Member Function Documentation

◆ deleteByRefId()

ilListItemAccessCache::deleteByRefId (   $a_ref_id)

This one can be called, e.g.

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

75  {
76  parent::deleteByAdditionalKeys($a_ref_id);
77  }

◆ isDisabled()

ilListItemAccessCache::isDisabled ( )

Check if cache is disabled.

Returns

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

Referenced by readEntry(), and storeEntry().

41  {
42  return self::$disabled or parent::isDisabled();
43  }
+ Here is the caller graph for this function:

◆ readEntry()

ilListItemAccessCache::readEntry (   $a_id)

Read an entry.

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

References isDisabled().

50  {
51  if (!$this->isDisabled())
52  {
53  return parent::readEntry($a_id);
54  }
55  return false;
56  }
isDisabled()
Check if cache is disabled.
+ Here is the call graph for this function:

◆ storeEntry()

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

Id is user_id:ref_id, we store ref_if additionally.

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

References $ilSetting, and isDisabled().

63  {
64  global $ilSetting;
65  if (!$this->isDisabled())
66  {
67  parent::storeEntry($a_id, $a_value, $a_ref_id);
68  }
69  }
global $ilSetting
Definition: privfeed.php:40
isDisabled()
Check if cache is disabled.
+ Here is the call graph for this function:

Field Documentation

◆ $disabled

ilListItemAccessCache::$disabled = false
static

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


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