コード例 #1
0
ファイル: epManager.php プロジェクト: justinlyon/scc
 /**
  * Constructor
  * @param epConfig|array 
  * @access public
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
 }
コード例 #2
0
ファイル: epCache.php プロジェクト: justinlyon/scc
 /**
  * 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();
 }
コード例 #3
0
 /**
  * Constructor
  * @param epConfig|array 
  * @access public
  * @see epConfig
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
     $this->cmf = epClassMapFactory::instance();
 }