Esempio n. 1
0
 /**
  * Lädt Datei, fügt View-Element, Header & Footer zusammen und erstellt Variablen für View
  * @see view
  * @return void
  */
 public function render()
 {
     if (!parent::render()) {
         return false;
     }
     $this->initAssigns();
     $viewVars = $this->getViewVars();
     foreach ($viewVars as $key => $value) {
         ${$key} = $value;
     }
     $message = $this->errorMessage;
     include_once $this->getViewFile();
 }
Esempio n. 2
0
 /**
  * Lädt Datei, fügt View-Element, Header & Footer zusammen und erstellt Variablen für View
  * @see view
  * @return void
  */
 public function render()
 {
     if (!parent::render()) {
         return false;
     }
     $this->initAssigns();
     $viewVars = $this->getViewVars();
     foreach ($viewVars as $key => $value) {
         ${$key} = $value;
     }
     include_once \fpcm\classes\baseconfig::$viewsDir . 'common/header.php';
     include_once \fpcm\classes\baseconfig::$viewsDir . 'common/messages.php';
     if ($this->getViewFile()) {
         include_once $this->getViewFile();
     }
     include_once \fpcm\classes\baseconfig::$viewsDir . 'common/footer.php';
 }
Esempio n. 3
0
 /**
  * Lädt Datei, fügt View-Element, Header & Footer zusammen und erstellt Variablen für View
  * @see view
  * @return void
  */
 public function render()
 {
     if (!parent::render()) {
         die;
     }
     ob_start();
     $this->assign('FPCM_MESSAGES', $this->getMessages());
     $viewVars = $this->getViewVars();
     $viewVars = $this->events->runEvent('viewRenderBefore', $viewVars);
     foreach ($viewVars as $key => $value) {
         ${$key} = $value;
     }
     include_once \fpcm\classes\baseconfig::$viewsDir . 'common/messages.php';
     if ($this->getViewFile()) {
         include_once $this->getViewFile();
     }
     $this->events->runEvent('viewRenderAfter');
     $data = ob_get_contents();
     ob_end_clean();
     die($data);
 }
Esempio n. 4
0
 /**
  * Lädt Datei, fügt View-Element, Header & Footer zusammen und erstellt Variablen für View
  * @see view
  * @return void
  */
 public function render()
 {
     if (!parent::render()) {
         return false;
     }
     $this->initAssigns();
     $viewVars = $this->getViewVars();
     $viewVars = $this->events->runEvent('viewRenderBefore', $viewVars);
     if (!isset($viewVars['hideDebug'])) {
         $viewVars['hideDebug'] = false;
     }
     foreach ($viewVars as $key => $value) {
         ${$key} = $value;
     }
     if ($this->getShowHeader()) {
         include_once \fpcm\classes\baseconfig::$viewsDir . 'common/headersimple.php';
     }
     if (!$this->hideMessages) {
         include_once \fpcm\classes\baseconfig::$viewsDir . 'common/messages.php';
     }
     if ($this->getViewFile()) {
         include_once $this->getViewFile();
     }
     if ($this->getShowFooter()) {
         include_once \fpcm\classes\baseconfig::$viewsDir . 'common/footersimple.php';
     }
     $this->events->runEvent('viewRenderAfter');
 }
Esempio n. 5
0
 /**
  * Erzeugt Passwort-Input
  * @param string $name Name des Buttons
  * @param string $class CSS-Klasse
  * @param string $value Wert
  * @param bool $readonly readonly Status
  * @param int $maxlength maximale Länge für Feld-Eingabe
  * @param sting $placeholder HTML5-Platzhalter-Text
  * @param string $wrapper Wrapper-DIV nutzen
  */
 public static function passwordInput($name, $class = '', $value = '', $readonly = false, $maxlength = 255, $placeholder = false, $wrapper = true)
 {
     $html = array();
     if ($wrapper) {
         $wrapperClass = is_string($wrapper) ? $wrapper : '';
         $html[] = "<div class=\"fpcm-ui-input-wrapper {$wrapperClass}\"><div class=\"fpcm-ui-input-wrapper-inner\">";
     }
     $html[] = "<input type=\"password\" class=\"fpcm-ui-input-text {$class}\" name=\"{$name}\" id=\"" . self::cleanIdName($name) . "\" value=\"" . htmlentities($value, ENT_QUOTES) . "\" maxlength=\"{$maxlength}\"";
     if ($readonly) {
         $html[] = " readonly=\"readonly\"";
     }
     if ($placeholder) {
         $html[] = " placeholder=\"{$placeholder}\"";
     }
     if ($placeholder && \fpcm\model\abstracts\view::isBrowser('MSIE 9.0')) {
         $html[] = " title=\"{$placeholder}\"";
     }
     $html[] = ">\n";
     $html[] = "</div>\n";
     if ($wrapper) {
         $html[] = "</div>\n";
     }
     print implode('', $html);
 }
Esempio n. 6
0
 /**
  * Lädt Datei, fügt View-Element, Header & Footer zusammen und erstellt Variablen für View
  * @see view
  * @return void
  */
 public function render()
 {
     if (!parent::render()) {
         return false;
     }
     $this->initAssigns();
     $viewVars = $this->getViewVars();
     $viewVars = $this->events->runEvent('viewRenderBefore', $viewVars);
     foreach ($viewVars as $key => $value) {
         ${$key} = $value;
     }
     if ($this->moduleViewType !== 'ajax') {
         if ($this->showHeader) {
             include_once \fpcm\classes\baseconfig::$viewsDir . 'common/header.php';
         } else {
             include_once \fpcm\classes\baseconfig::$viewsDir . 'common/headersimple.php';
         }
         include_once \fpcm\classes\baseconfig::$viewsDir . 'common/messages.php';
     }
     if ($this->getViewFile()) {
         include_once $this->getViewFile();
     }
     if ($this->moduleViewType !== 'ajax') {
         if ($this->showFooter) {
             include_once \fpcm\classes\baseconfig::$viewsDir . 'common/footer.php';
         } else {
             include_once \fpcm\classes\baseconfig::$viewsDir . 'common/footersimple.php';
         }
     }
     $this->events->runEvent('viewRenderAfter');
 }