/** * 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; }
/** * @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; }
/** */ public function __construct() { parent::__construct(null, true); }