Inheritance: extends AbstractModel
Esempio n. 1
0
File: Both.php Progetto: 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;
 }
Esempio n. 2
0
File: Text.php Progetto: atk4/atk4
 public function init()
 {
     parent::init();
     $this->template->set('contenttype', 'text/plain');
 }