Example #1
0
 public function __construct($stream, $inline = true, $fileName = '', $filePath = '')
 {
     parent::__construct();
     $this->stream = $stream;
     $this->inline = $inline;
     $this->fileName = $fileName ?: basename($filePath);
     $this->filePath = $filePath;
 }
Example #2
0
 public function __construct($content = '')
 {
     parent::__construct();
     if ($content != '') {
         $this->page->setContent($content);
     }
     $this->content = $this->page->render();
 }
Example #3
0
 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();
 }
Example #4
0
 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();
     }
 }
Example #5
0
 public function __construct($view, $url)
 {
     parent::__construct();
     $this->url = $url;
     $this->view = $view;
 }
Example #6
0
 public function __construct($exception = NULL)
 {
     parent::__construct();
     $this->exception = $exception;
 }
Example #7
0
 public function __construct($template, $parameters = array())
 {
     parent::__construct();
     $this->content = $template->render($parameters);
 }