Esempio n. 1
0
 /**
  * Instantiates the appropriate CacheLite object.
  * Only initializes the engine if it does not already exist.
  * Note this is a protected method
  *
  * @param   array  $cloptions  optional parameters
  *
  * @return  object
  *
  * @since   11.1
  */
 protected function initCache($cloptions)
 {
     if (!class_exists('Cache_Lite')) {
         require_once 'Cache/Lite.php';
     }
     self::$CacheLiteInstance = new Cache_Lite($cloptions);
     return self::$CacheLiteInstance;
 }
Esempio n. 2
0
	/**
	 * Instantiates the appropriate CacheLite object.
	 * Only initializes the engine if it does not already exist.
	 * Note this is a protected method
	 *
	 * @param   array  $options  optional parameters
	 *
	 * @return  object
	 *
	 * @since   11.1
	 */
	protected function initCache($cloptions)
	{
		require_once 'Cache/Lite.php';

		self::$CacheLiteInstance = new Cache_Lite($cloptions);

		return self::$CacheLiteInstance;
	}