TMail_Part::render PHP Method

render() public method

public render ( )
    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();
    }

Usage Example

示例#1
0
文件: Both.php 项目: 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;
 }