Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for setting and retrieving the doctype
XHTML11 = 'XHTML11'
XHTML1_STRICT = 'XHTML1_STRICT'
XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'
XHTML1_FRAMESET = 'XHTML1_FRAMESET'
XHTML_BASIC1 = 'XHTML_BASIC1'
XHTML5 = 'XHTML5'
HTML4_STRICT = 'HTML4_STRICT'
HTML4_LOOSE = 'HTML4_LOOSE'
HTML4_FRAMESET = 'HTML4_FRAMESET'
HTML5 = 'HTML5'
CUSTOM_XHTML = 'CUSTOM_XHTML'
CUSTOM = 'CUSTOM'
string $_defaultDoctype = 'self'
Default DocType
string $_regKey = 'Zend_View_Helper_Doctype'
Registry key in which helper is stored
ArrayObject $_registry = ''
Registry containing current doctype and mappings
__construct(
)
:
void
Constructor
Map constants to doctype strings, and set default doctype
__toString(
)
:
string
String representation of doctype
doctype(
string $doctype
=
null
)
:
Zend_View_Helper_Doctype
Set or retrieve doctype
getDoctype(
)
:
string
Retrieve doctype
getDoctypes(
)
:
array
Get doctype => string mappings
isHtml5(
)
:
booleean
Is doctype HTML5? (HeadMeta uses this for validation)
isXhtml(
)
:
boolean
Is doctype XHTML?
setDoctype(
string $doctype
)
:
Zend_View_Helper_Doctype
Set doctype