_cache = new Cache_Lite_Function( $options ); } /** * Calls a cacheable function or method (or not if there is already a cache for it) * * This overwritten method addes automatically special arguments to the call * Those arguments are e.g. the language if multilingual support is activated * * @return mixed result of the function/method * @access public */ function call() { $arguments = func_get_args(); // Add language to all arguments, if not already added and multilingual support is activated if( array_key_exists( 'mosConfig_multilingual_support', $GLOBALS ) && $GLOBALS['mosConfig_multilingual_support'] == 1 ) { $arguments[] = $GLOBALS['mosConfig_lang']; } $ret = call_user_func_array(array($this->_cache, 'call'), $arguments); return $ret; } /** * Clean the cache * * if no group is specified all cache files will be destroyed * else only cache files of the specified group will be destroyed * * @param string $group name of the cache group * @return boolean true if no problem * @access public */ function clean($group = false) { return $this->_cache->clean( $group ); } } ?>