コード例 #1
0
ファイル: ArrayPartBase.php プロジェクト: splitice/radical-db
 /**
  * @param null|array $data
  */
 function __construct($data = null)
 {
     parent::__construct();
     if ($data !== null) {
         $this->_Set(null, $data);
     }
 }
コード例 #2
0
ファイル: MetaManager.php プロジェクト: splitice/radical-web
 function __construct($data = array())
 {
     if (!isset($data['keywords'])) {
         $data['keywords'] = array();
     }
     $data['charset'] = 'utf-8';
     parent::__construct($data);
 }
コード例 #3
0
 function __construct($headers = null)
 {
     if ($headers !== null) {
         parent::__construct($headers);
     } else {
         parent::__construct(array('Cache-Control' => 'no-cache'));
     }
     $this->setExpires(time() + self::DEFAULT_EXPIRE);
 }