Beispiel #1
0
 /**
  * Reset all of the properties
  */
 protected function reset()
 {
     $this->open = null;
     $this->close = null;
     $this->model = null;
     $this->style = $this->config->get('style');
     $this->rules = [];
     $this->elements = [];
 }
Beispiel #2
0
 /**
  * @param string $style
  * @return string
  */
 public function present($style = null)
 {
     $this->initPresenter();
     if ($style = $style ? $this->config->get('styles.' . $style) : ($this->style ?: null)) {
         $tmpStyle = $this->presenter->getStyle();
         $this->presenter->setStyle($style);
     }
     $element = $this->presenter->renderAll();
     if ($style) {
         $this->presenter->setStyle($tmpStyle);
     }
     return $element;
 }