Example #1
0
 /**
  * Constructor.
  *
  * @param array $headers An array of HTTP headers
  */
 public function __construct(array $headers = array())
 {
     parent::__construct($headers);
     if (!isset($this->headers['cache-control'])) {
         $this->set('cache-control', '');
     }
 }
 /**
  * Constructor.
  *
  * @param array $headers An array of HTTP headers
  */
 public function __construct(array $parameters = array())
 {
     // this line is not necessary, but including it avoids any stupid
     // errors if we add code to the parent's constructor
     parent::__construct();
     $this->replace($parameters);
 }
 public function __construct(array $parameters = array())
 {
     parent::__construct();
     $this->replace($parameters);
 }