Ejemplo n.º 1
0
 /**
  * The constructor prepares everything for html output and starts the processing chain (calls initialize() and the
  * show-method from current context).
  *
  * @internal
  */
 public function __construct()
 {
     // update css-rules from stylesheet directory
     template\CssTemplate::update();
     $this->trackStandardSession();
     header('Content-Type: text/html; charset=utf-8');
     $this->template = template\HtmlTemplate::getInstance();
     $this->auth = Authorization::getInstance();
     $this->assignByRef('auth', $this->auth);
     // template default values
     $this->assign('ogmetadata', []);
     $this->assign('success', []);
     $this->assign('errors', []);
     $this->assign('content', '');
     // call initializer
     $this->initializeViewtype();
     // initialize form
     if (method_exists($this, 'initializeForm')) {
         $this->initializeForm();
     }
 }
Ejemplo n.º 2
0
 /**
  * @internal
  */
 public function __construct()
 {
     $this->trackStandardSession();
     $this->auth = Authorization::getInstance();
 }