예제 #1
0
파일: Part.php 프로젝트: atk4/atk4
 public function render()
 {
     $c = $this->content;
     if ($c instanceof SMlite) {
         $c->set($this->owner->args);
         $c = $c->render();
     }
     $this->template->setHTML($this->owner->args);
     $this->template->setHTML('Content', $c);
     $this->template->set('boundary', $this->owner->boundary);
     return $this->template->render();
 }
예제 #2
0
파일: Basic.php 프로젝트: atk4/atk4
 public function render()
 {
     $this->template->set('body_parts', '');
     foreach ($this->elements as $el) {
         if ($el instanceof TMail_Part) {
             $this->template->appendHTML('body_parts', $el->render());
         }
     }
     $this->template->set('boundary', $this->boundary);
     $this->headers->set('boundary', $this->boundary)->setHTML($this->args);
 }