Overview

Namespaces

  • Tokamak
    • Dom

Classes

  • Component
  • Document
  • Element
  • HTMLDocument
  • Node
  • Overview
  • Namespace
  • Class

Class HTMLDocument

Class HTMLDocument

Tokamak\Dom\Node
Extended by Tokamak\Dom\Document
Extended by Tokamak\Dom\HTMLDocument
Abstract
Namespace: Tokamak\Dom
Package: Tokamak\Dom
Located at Dom/HTMLDocument.php
Methods summary
public
# __construct( array $data = null, array $doctype = null )

Initialize the document by passing it data/state.

Initialize the document by passing it data/state.

Parameters

$data
$doctype

Overrides

Tokamak\Dom\Document::__construct()
public string
# __toString( )

Render the document to an HTML string

Render the document to an HTML string

Returns

string
protected string
# toHTML( )

Renders the document to an HTML string.

Renders the document to an HTML string.

Returns

string
Methods inherited from Tokamak\Dom\Document
append(), setFormatOutput(), toString()
Methods inherited from Tokamak\Dom\Node
addDomNode(), appendComponent(), appendElement(), getDom(), getDomNode(), hasDomNodes(), render(), setDom()
Properties summary
public static array $doctype
# array("html", null, null)
Properties inherited from Tokamak\Dom\Document
$dom, $encoding, $version
Properties inherited from Tokamak\Dom\Node
$COMPONENT_NAMESPACE, $domNodes
API documentation generated by ApiGen