Inheritance: extends AbstractModel
Exemplo n.º 1
0
Arquivo: Both.php Projeto: atk4/atk4
 public function render()
 {
     $html = parent::render();
     $this->template->set('contenttype', 'text/plain');
     $c = $this->content;
     if ($this->content instanceof SMlite) {
         $this->content = $this->content->render();
     }
     $this->content = strip_tags($this->content);
     $plain = parent::render();
     $this->content = $c;
     return $plain . $html;
 }
Exemplo n.º 2
0
Arquivo: Text.php Projeto: atk4/atk4
 public function init()
 {
     parent::init();
     $this->template->set('contenttype', 'text/plain');
 }