Pop\Dom\Dom::setContentType PHP Method

setContentType() public method

Method to set the document charset.
public setContentType ( string $content ) : Dom
$content string
return Dom
    public function setContentType($content)
    {
        $this->contentType = $content;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: DomTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAndGetContentType()
 {
     $d = new Dom(Dom::XHTML11);
     $d->setContentType('text/html');
     $this->assertEquals('text/html', $d->getContentType());
 }