/** * @param null|array $data */ function __construct($data = null) { parent::__construct(); if ($data !== null) { $this->_Set(null, $data); } }
function __construct($data = array()) { if (!isset($data['keywords'])) { $data['keywords'] = array(); } $data['charset'] = 'utf-8'; parent::__construct($data); }
function __construct($headers = null) { if ($headers !== null) { parent::__construct($headers); } else { parent::__construct(array('Cache-Control' => 'no-cache')); } $this->setExpires(time() + self::DEFAULT_EXPIRE); }