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

Class ilCachedCtrl. More...

+ Collaboration diagram for ilCachedCtrl:

Public Member Functions

 isActive ()
 __destruct ()
 lookupModuleClass ($class)
 lookupServiceClass ($class)
 lookupCid ($cid)
 lookupCall ($parent)
 lookupClassFile ($class)
 getLoaded ()
 setLoaded ($loaded)
 setCtrlCalls ($ctrl_calls)
 getCtrlCalls ()
 setCtrlClassfile ($ctrl_classfile)
 getCtrlClassfile ()
 setModuleClasses ($module_classes)
 getModuleClasses ()
 setServiceClasses ($service_classes)
 getServiceClasses ()
 setCtrlClassfileParent ($ctrl_classfile_parent)
 getCtrlClassfileParent ()

Static Public Member Functions

static getInstance ()
static flush ()

Protected Member Functions

 __construct ()

Protected Attributes

 $changed = false
 $loaded = false
 $module_classes = array()
 $service_classes = array()
 $ctrl_calls = array()
 $ctrl_classfile = array()
 $ctrl_classfile_parent = array()

Static Protected Attributes

static $instance

Detailed Description

Class ilCachedCtrl.

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

Definition at line 9 of file class.ilCachedCtrl.php.

Constructor & Destructor Documentation

ilCachedCtrl::__construct ( )
protected

Definition at line 78 of file class.ilCachedCtrl.php.

References ilGlobalCache\COMP_ILCTRL, and getInstance().

{
$this->readFromDB();
}

+ Here is the call graph for this function:

ilCachedCtrl::__destruct ( )

Definition at line 84 of file class.ilCachedCtrl.php.

{
if ($this->changed) {
$this->global_cache->set('ilCachedCtrl', $this);
}
}

Member Function Documentation

static ilCachedCtrl::flush ( )
static

Definition at line 64 of file class.ilCachedCtrl.php.

References ilGlobalCache\COMP_ILCTRL, and getInstance().

Referenced by ilCtrlStructureReader\readStructure().

{
self::$instance = NULL;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilCachedCtrl::getCtrlCalls ( )
Returns
array

Definition at line 197 of file class.ilCachedCtrl.php.

References $ctrl_calls.

{
}
ilCachedCtrl::getCtrlClassfile ( )
Returns
array

Definition at line 213 of file class.ilCachedCtrl.php.

References $ctrl_classfile.

{
}
ilCachedCtrl::getCtrlClassfileParent ( )
Returns
array

Definition at line 261 of file class.ilCachedCtrl.php.

References $ctrl_classfile_parent.

static ilCachedCtrl::getInstance ( )
static
Returns
ilCachedComponentData

Definition at line 48 of file class.ilCachedCtrl.php.

References $instance, and ilGlobalCache\COMP_ILCTRL.

Referenced by __construct(), ilCtrl\callBaseClass(), flush(), ilCtrl\getNodeIdForTargetClass(), isActive(), ilCtrl\lookupClassPath(), ilCtrl\readCidInfo(), and ilCtrl\readClassInfo().

{
if (!isset(self::$instance)) {
$cached_obj = $global_cache->get('ilCachedCtrl');
if ($cached_obj instanceof ilCachedCtrl) {
self::$instance = $cached_obj;
} else {
self::$instance = new self();
$global_cache->set('ilCachedCtrl', self::$instance);
}
}
}

+ Here is the caller graph for this function:

ilCachedCtrl::getLoaded ( )
Returns
boolean

Definition at line 173 of file class.ilCachedCtrl.php.

References $loaded.

{
return $this->loaded;
}
ilCachedCtrl::getModuleClasses ( )
Returns
array

Definition at line 229 of file class.ilCachedCtrl.php.

References $module_classes.

{
}
ilCachedCtrl::getServiceClasses ( )
Returns
array

Definition at line 245 of file class.ilCachedCtrl.php.

References $service_classes.

ilCachedCtrl::isActive ( )
Returns
bool

Definition at line 73 of file class.ilCachedCtrl.php.

References ilGlobalCache\COMP_ILCTRL, and getInstance().

+ Here is the call graph for this function:

ilCachedCtrl::lookupCall (   $parent)
Parameters
$parent
Returns
mixed

Definition at line 151 of file class.ilCachedCtrl.php.

{
if (is_array($this->ctrl_calls[$parent])) {
return $this->ctrl_calls[$parent];
} else {
return array();
}
}
ilCachedCtrl::lookupCid (   $cid)
Parameters
$cid
Returns
mixed

Definition at line 141 of file class.ilCachedCtrl.php.

{
return $this->ctrl_classfile[$cid];
}
ilCachedCtrl::lookupClassFile (   $class)
Parameters
$class
Returns
mixed

Definition at line 165 of file class.ilCachedCtrl.php.

{
return $this->ctrl_classfile_parent[$class];
}
ilCachedCtrl::lookupModuleClass (   $class)
Parameters
$class
Returns
mixed

Definition at line 121 of file class.ilCachedCtrl.php.

{
return $this->module_classes[$class];
}
ilCachedCtrl::lookupServiceClass (   $class)
Parameters
$class
Returns
mixed

Definition at line 131 of file class.ilCachedCtrl.php.

{
return $this->service_classes[$class];
}
ilCachedCtrl::setCtrlCalls (   $ctrl_calls)
Parameters
array$ctrl_calls

Definition at line 189 of file class.ilCachedCtrl.php.

References $ctrl_calls.

{
$this->ctrl_calls = $ctrl_calls;
}
ilCachedCtrl::setCtrlClassfile (   $ctrl_classfile)
Parameters
array$ctrl_classfile

Definition at line 205 of file class.ilCachedCtrl.php.

References $ctrl_classfile.

{
$this->ctrl_classfile = $ctrl_classfile;
}
ilCachedCtrl::setCtrlClassfileParent (   $ctrl_classfile_parent)
Parameters
array$ctrl_classfile_parent

Definition at line 253 of file class.ilCachedCtrl.php.

References $ctrl_classfile_parent.

{
$this->ctrl_classfile_parent = $ctrl_classfile_parent;
}
ilCachedCtrl::setLoaded (   $loaded)
Parameters
boolean$loaded

Definition at line 181 of file class.ilCachedCtrl.php.

References $loaded.

{
$this->loaded = $loaded;
}
ilCachedCtrl::setModuleClasses (   $module_classes)
Parameters
array$module_classes

Definition at line 221 of file class.ilCachedCtrl.php.

References $module_classes.

{
$this->module_classes = $module_classes;
}
ilCachedCtrl::setServiceClasses (   $service_classes)
Parameters
array$service_classes

Definition at line 237 of file class.ilCachedCtrl.php.

References $service_classes.

{
$this->service_classes = $service_classes;
}

Field Documentation

ilCachedCtrl::$changed = false
protected

Definition at line 14 of file class.ilCachedCtrl.php.

ilCachedCtrl::$ctrl_calls = array()
protected

Definition at line 34 of file class.ilCachedCtrl.php.

Referenced by getCtrlCalls(), and setCtrlCalls().

ilCachedCtrl::$ctrl_classfile = array()
protected

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

Referenced by getCtrlClassfile(), and setCtrlClassfile().

ilCachedCtrl::$ctrl_classfile_parent = array()
protected

Definition at line 42 of file class.ilCachedCtrl.php.

Referenced by getCtrlClassfileParent(), and setCtrlClassfileParent().

ilCachedCtrl::$instance
staticprotected

Definition at line 18 of file class.ilCachedCtrl.php.

Referenced by getInstance().

ilCachedCtrl::$loaded = false
protected

Definition at line 22 of file class.ilCachedCtrl.php.

Referenced by getLoaded(), and setLoaded().

ilCachedCtrl::$module_classes = array()
protected

Definition at line 26 of file class.ilCachedCtrl.php.

Referenced by getModuleClasses(), and setModuleClasses().

ilCachedCtrl::$service_classes = array()
protected

Definition at line 30 of file class.ilCachedCtrl.php.

Referenced by getServiceClasses(), and setServiceClasses().


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