/** * * * @return MHTMLDocumentView */ public function __construct(MString $title = null) { parent::__construct(S("html")); $this->head = new MHTMLElementView(S("head")); $this->addSubview($this->head); $this->title = new MHTMLElementView(S("title"), $title); $this->head->addSubview($this->title); $this->body = new MHTMLElementView(S("body")); $this->addSubview($this->body); $this->setShouldAppendEmptyLine(true); }
/** * * * @return MHTMLHeaderElementView */ public function __construct(MString $text = null, $headerType = MHTMLHeaderElementView::HTML_HEADER_TYPE_1) { parent::__construct(S("h1"), $text); $this->headerType = $headerType; }
/** * * * @return MHTMLParagraphView */ public function __construct(MString $text = null) { parent::__construct(S("p"), $text); }
/** * * * @return MHTMLHyperlinkView */ public function __construct(MString $href = null, MString $text = null) { parent::__construct(S("a"), $text); $this->setHref($href); }
public function __construct(MString $name = null, MString $content = null) { parent::__construct(S("meta")); $this->setName($name); $this->setContent($content); }