/** * Constructor * @param epConfig|array * @access public */ public function __construct($config = null) { parent::__construct($config); }
/** * Constructor * @param string|epCache & $cache The cache to be plugged in * @param array|epConfig $config The configuration */ public function __construct($cache, $config = null) { // call parent to set configuration parent::__construct($config); // is input a string? if (is_string($cache)) { $this->cache =& $this->_cache(); } else { if ($cache instanceof epCache) { $this->cache =& $cache; } else { throw new epExceptionCacheObject("Unrecognized parameter"); } } // get the runtime manager self::$em = epManager::instance(); }
/** * Constructor * @param epConfig|array * @access public * @see epConfig */ public function __construct($config = null) { parent::__construct($config); $this->cmf = epClassMapFactory::instance(); }