Ejemplo n.º 1
0
 public function __construct($inputEncoding = 'UTF-8')
 {
     parent::__construct();
     $this->setName('ajaxResponse');
     $this->setId('');
     $this->setEncoding($inputEncoding);
     // por default, o tipo de resposta é aquele solicitado na requisição HTTP
     $this->setResponseType(Manager::getRequest()->getFormat());
 }
Ejemplo n.º 2
0
 public function __construct($idPage)
 {
     parent::__construct();
     $this->idPage = $idPage;
     $this->onsubmit = [];
     $this->onload = [];
     $this->onerror = [];
     $this->onunload = [];
     $this->onfocus = [];
     $this->jsCode = [];
     $this->scripts = [];
     $this->events = [];
 }
Ejemplo n.º 3
0
 public function __construct($path = '')
 {
     parent::__construct();
     if (function_exists('mb_internal_charset')) {
         mb_internal_charset('UTF-8');
     }
     $this->engine = new \Latte\Engine();
     $this->path = $path ?: Manager::getPublicPath() . '/templates';
     $this->engine->setTempDirectory(Manager::getFrameworkPath() . '/var/templates');
     $this->engine->getParser()->defaultSyntax = 'double';
     $this->engine->addFilter('translate', function ($s) {
         return _M($s);
     });
     $this->context = array();
     $this->context('manager', Manager::getInstance());
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct('page' . uniqid());
     $this->scripts = new MScripts($this->name);
     $this->fileUpload = mrequest('__ISFILEUPLOAD') == 'yes';
     $this->content = new MBaseControl();
     $template = mrequest('__TEMPLATE') ?: (Manager::getConf('theme.template') ?: 'index');
     $this->setTemplateName($template);
     $this->setTemplate();
     $this->styleSheetCode = '';
     $this->renderType = "page";
     $this->renderId = $this->name;
     ob_start();
 }