示例#1
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $this->_config['ref']['method'] = new ReflectionMethod($config['class'], $config['method']);
     $this->_config['ref']['class'] = new ReflectionClass($config['class']);
     $this->_config['doc']['class'] = $this->_config['ref']['class']->getDocComment();
     $this->_config['doc']['method'] = $this->_config['ref']['method']->getDocComment();
 }
示例#2
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
 }
示例#3
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     if (!isset($config['ua'])) {
         $config['ua'] = BEAR::dependency('BEAR_Agent')->getUa();
     }
     parent::__construct($config);
     self::$_staticConfig = $this->_config;
 }
示例#4
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $this->_config['prefix'] = $this->_config['prefix'] ? $this->_config['prefix'] : $this->_config['info']['id'] . $this->_config['info']['version'] . (int) $this->_config['debug'];
 }