Zend Framework
3.0
|
Helper for setting and retrieving the doctype. More...
Public Member Functions | |
__construct () | |
Constructor. | |
__invoke ($doctype=null) | |
Set or retrieve doctype. | |
__toString () | |
String representation of doctype. | |
setDoctype ($doctype) | |
Set doctype. | |
getDoctype () | |
Retrieve doctype. | |
getDoctypes () | |
Get doctype => string mappings. | |
isXhtml () | |
Is doctype XHTML? | |
isHtml5 () | |
Is doctype HTML5? (HeadMeta uses this for validation) | |
isRdfa () | |
Is doctype RDFa? | |
Public Member Functions inherited from AbstractHelper | |
setView (Renderer $view) | |
Set the View object. | |
getView () | |
Get the view object. | |
Static Public Member Functions | |
static | unsetDoctypeRegistry () |
Unset the static doctype registry. | |
Public Attributes | |
const | XHTML11 = 'XHTML11' |
#@+ DocType constants | |
const | XHTML1_STRICT = 'XHTML1_STRICT' |
const | XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL' |
const | XHTML1_FRAMESET = 'XHTML1_FRAMESET' |
const | XHTML1_RDFA = 'XHTML1_RDFA' |
const | XHTML1_RDFA11 = 'XHTML1_RDFA11' |
const | XHTML_BASIC1 = 'XHTML_BASIC1' |
const | XHTML5 = 'XHTML5' |
const | HTML4_STRICT = 'HTML4_STRICT' |
const | HTML4_LOOSE = 'HTML4_LOOSE' |
const | HTML4_FRAMESET = 'HTML4_FRAMESET' |
const | HTML5 = 'HTML5' |
const | CUSTOM_XHTML = 'CUSTOM_XHTML' |
const | CUSTOM = 'CUSTOM' |
Static Protected Member Functions | |
static | registerDefaultDoctypes () |
Register the default doctypes we understand. | |
Protected Attributes | |
$defaultDoctype = self::HTML4_LOOSE | |
$registry | |
Protected Attributes inherited from AbstractHelper | |
$view = null | |
Static Protected Attributes | |
static | $registeredDoctypes |
Helper for setting and retrieving the doctype.
__construct | ( | ) |
Constructor.
Map constants to doctype strings, and set default doctype
__invoke | ( | $doctype = null | ) |
Set or retrieve doctype.
string | $doctype |
Exception\DomainException |
__toString | ( | ) |
String representation of doctype.
getDoctype | ( | ) |
Retrieve doctype.
getDoctypes | ( | ) |
Get doctype => string mappings.
isHtml5 | ( | ) |
Is doctype HTML5? (HeadMeta uses this for validation)
isRdfa | ( | ) |
Is doctype RDFa?
isXhtml | ( | ) |
Is doctype XHTML?
|
staticprotected |
Register the default doctypes we understand.
setDoctype | ( | $doctype | ) |
|
static |
Unset the static doctype registry.
Mainly useful for testing purposes. Sets $registeredDoctypes to a null value.
|
protected |
|
staticprotected |
|
protected |
const CUSTOM = 'CUSTOM' |
const CUSTOM_XHTML = 'CUSTOM_XHTML' |
const HTML4_FRAMESET = 'HTML4_FRAMESET' |
const HTML4_LOOSE = 'HTML4_LOOSE' |
const HTML4_STRICT = 'HTML4_STRICT' |
const HTML5 = 'HTML5' |
const XHTML11 = 'XHTML11' |
#@+ DocType constants
const XHTML1_FRAMESET = 'XHTML1_FRAMESET' |
const XHTML1_RDFA = 'XHTML1_RDFA' |
const XHTML1_RDFA11 = 'XHTML1_RDFA11' |
const XHTML1_STRICT = 'XHTML1_STRICT' |
const XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL' |
const XHTML5 = 'XHTML5' |
const XHTML_BASIC1 = 'XHTML_BASIC1' |