/**
* Stores the attribute definitions in the cache.
+ *
+ * @return Horde_Kolab_Server The concrete Horde_Kolab_Server reference.
*/
function shutdown()
{
if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver'])) {
$params = isset($GLOBALS['conf']['kolab']['server']['cache']['params'])
? $GLOBALS['conf']['kolab']['server']['cache']['params'] : null;
- $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'],
- $params);
+ $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'],
+ $params);
foreach ($this->attributes as $key => $value) {
$cache->set('attributes_' . $key, @serialize($value));
}
if (!empty($GLOBALS['conf']['kolab']['server']['cache']['driver'])) {
$params = isset($GLOBALS['conf']['kolab']['server']['cache']['params'])
? $GLOBALS['conf']['kolab']['server']['cache']['params'] : null;
- $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'],
- $params);
+ $cache = Horde_Cache::singleton($GLOBALS['conf']['kolab']['server']['cache']['driver'],
+ $params);
register_shutdown_function(array($this, 'shutdown'));
$lifetime = isset($GLOBALS['conf']['kolab']['server']['cache']['lifetime'])
? $GLOBALS['conf']['kolab']['server']['cache']['lifetime'] : 300;
$level = 0;
while ($childclass != 'Horde_Kolab_Server_Object'
&& $level < self::MAX_HIERARCHY) {
- $classes[] = $childclass;
+ $classes[] = $childclass;
$childclass = get_parent_class($childclass);
$level++;
}