910. Class

910.1. Zend\View\Helper\Doctype

Helper for setting and retrieving the doctype

910.1.1. Methods

910.1.1.1. registerDefaultDoctypes

registerDefaultDoctypes()

Register the default doctypes we understand

Return type:void

910.1.1.2. unsetDoctypeRegistry

unsetDoctypeRegistry()

Unset the static doctype registry

Mainly useful for testing purposes. Sets {@link $registeredDoctypes} to a null value.

Return type:void

910.1.1.3. __construct

__construct()

Constructor

Map constants to doctype strings, and set default doctype

910.1.1.4. __invoke

__invoke()

Set or retrieve doctype

Parameters:string
Return type:Doctype Provides a fluent interface
Throws :ExceptionDomainException

910.1.1.5. setDoctype

setDoctype()

Set doctype

Parameters:string
Return type:Doctype

910.1.1.6. getDoctype

getDoctype()

Retrieve doctype

Return type:string

910.1.1.7. getDoctypes

getDoctypes()

Get doctype => string mappings

Return type:array

910.1.1.8. isXhtml

isXhtml()

Is doctype XHTML?

Return type:bool

910.1.1.9. isHtml5

isHtml5()

Is doctype HTML5? (HeadMeta uses this for validation)

Return type:bool

910.1.1.10. isRdfa

isRdfa()

Is doctype RDFa?

Return type:bool

910.1.1.11. __toString

__toString()

String representation of doctype

Return type:string

910.1.2. Constants

910.1.2.1. XHTML11

910.1.2.2. XHTML1_STRICT

910.1.2.3. XHTML1_TRANSITIONAL

910.1.2.4. XHTML1_FRAMESET

910.1.2.5. XHTML1_RDFA

910.1.2.6. XHTML1_RDFA11

910.1.2.7. XHTML_BASIC1

910.1.2.8. XHTML5

910.1.2.9. HTML4_STRICT

910.1.2.10. HTML4_LOOSE

910.1.2.11. HTML4_FRAMESET

910.1.2.12. HTML5

910.1.2.13. CUSTOM_XHTML

910.1.2.14. CUSTOM