Helper for setting and retrieving the doctype

package Zend_View
subpackage Helper
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_View_Helper_Abstract

 Methods

Constructor

__construct() : void

Map constants to doctype strings, and set default doctype

String representation of doctype

__toString() : string

Returns

string

Strategy pattern: currently unutilized

direct() : void
Inherited
inherited_from \Zend_View_Helper_Interface::direct()

Set or retrieve doctype

doctype(string $doctype = null) : \Zend_View_Helper_Doctype

Parameters

$doctype

string

Returns

\Zend_View_Helper_Doctype

Retrieve doctype

getDoctype() : string

Returns

string

Get doctype => string mappings

getDoctypes() : array

Returns

array

Is doctype HTML5? (HeadMeta uses this for validation)

isHtml5() : \booleean

Returns

\booleean

Is doctype RDFa?

isRdfa() : \booleean

Returns

\booleean

Is doctype strict?

isStrict() : boolean

Returns

boolean

Is doctype XHTML?

isXhtml() : boolean

Returns

boolean

Set doctype

setDoctype(string $doctype) : \Zend_View_Helper_Doctype

Parameters

$doctype

string

Returns

\Zend_View_Helper_Doctype

Set the View object

setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
Inherited
inherited_from \Zend_View_Helper_Interface::setView()

Parameters

$view

\Zend_View_Interface

Returns

\Zend_View_Helper_Abstract

 Properties

 

View object

$view : \Zend_View_Interface

Default

null
 

Default DocType

$_defaultDoctype : string

Default

self::HTML4_LOOSE
 

Registry key in which helper is stored

$_regKey : string

Default

'Zend_View_Helper_Doctype'
 

Registry containing current doctype and mappings

$_registry : \ArrayObject

Default

 Constants

 

CUSTOM

CUSTOM = 'CUSTOM' 
 

CUSTOM_XHTML

CUSTOM_XHTML = 'CUSTOM_XHTML' 
 

HTML4_FRAMESET

HTML4_FRAMESET = 'HTML4_FRAMESET' 
 

HTML4_LOOSE

HTML4_LOOSE = 'HTML4_LOOSE' 
 

HTML4_STRICT

HTML4_STRICT = 'HTML4_STRICT' 
 

HTML5

HTML5 = 'HTML5' 
 

XHTML11

XHTML11 = 'XHTML11' 
 

XHTML1_FRAMESET

XHTML1_FRAMESET = 'XHTML1_FRAMESET' 
 

XHTML1_RDFA

XHTML1_RDFA = 'XHTML1_RDFA' 
 

XHTML1_RDFA11

XHTML1_RDFA11 = 'XHTML1_RDFA11' 
 

XHTML1_STRICT

XHTML1_STRICT = 'XHTML1_STRICT' 
 

XHTML1_TRANSITIONAL

XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL' 
 

XHTML5

XHTML5 = 'XHTML5' 
 

XHTML_BASIC1

XHTML_BASIC1 = 'XHTML_BASIC1'