__construct() публичный Метод

Constructor.
public __construct ( mixed $data = null )
$data mixed Response data to send to browser.
Пример #1
0
 /**
  * Constructor.
  *
  * @param mixed $data   Response data to send to browser.
  * @param mixed $tasks  Task data to send to browser.
  */
 public function __construct($data = null, $tasks = null)
 {
     parent::__construct($data);
     $this->tasks = $tasks;
 }
Пример #2
0
 /**
  * @param string $type     Content-type of the data.
  * @param string $charset  Charset of the data (if of type text/*).
  */
 public function __construct($data = null, $type = 'text/plain', $charset = 'UTF-8')
 {
     parent::__construct($data);
     $this->charset = $charset;
     $this->type = $type;
 }
Пример #3
0
 /**
  */
 public function __construct()
 {
     parent::__construct(null, true);
 }