public function __construct($stream, $inline = true, $fileName = '', $filePath = '') { parent::__construct(); $this->stream = $stream; $this->inline = $inline; $this->fileName = $fileName ?: basename($filePath); $this->filePath = $filePath; }
public function __construct($content = '') { parent::__construct(); if ($content != '') { $this->page->setContent($content); } $this->content = $this->page->render(); }
public function __construct() { parent::__construct(); if ($this->ajax->isEmpty()) { $this->ajax->setId($this->page->getName()); $this->ajax->setType('window'); $this->ajax->setData($this->page->window); } $this->content = $this->ajax->returnData(); }
public function __construct($json = '') { parent::__construct(); if ($json == '') { if ($this->ajax->isEmpty()) { $this->ajax->setId($this->page->getName()); $this->ajax->setType('page'); $data = $this->page->generate(); $this->ajax->setData($data); } else { $this->ajax->setResponseType('JSON'); $this->ajax->setId(''); $this->ajax->setType('json'); } $this->content = $this->ajax->returnData(); } else { $this->ajax->setResponseType('JSON'); $this->ajax->setData($json); $this->content = $this->ajax->returnJSON(); } }
public function __construct($view, $url) { parent::__construct(); $this->url = $url; $this->view = $view; }
public function __construct($exception = NULL) { parent::__construct(); $this->exception = $exception; }
public function __construct($template, $parameters = array()) { parent::__construct(); $this->content = $template->render($parameters); }