Public Member Functions | Data Fields | Protected Attributes

Zend_View_Helper_Doctype Class Reference

Inheritance diagram for Zend_View_Helper_Doctype:
Zend_View_Helper_Abstract Zend_View_Helper_Interface

Public Member Functions

 __construct ()
 doctype ($doctype=null)
 setDoctype ($doctype)
 getDoctype ()
 getDoctypes ()
 isXhtml ()
 __toString ()

Data Fields

const XHTML11 = 'XHTML11'
const XHTML1_STRICT = 'XHTML1_STRICT'
const XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'
const XHTML1_FRAMESET = 'XHTML1_FRAMESET'
const XHTML_BASIC1 = 'XHTML_BASIC1'
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'

Protected Attributes

 $_defaultDoctype = self::HTML4_LOOSE
 $_registry
 $_regKey = 'Zend_View_Helper_Doctype'

Detailed Description

Definition at line 37 of file Doctype.php.


Constructor & Destructor Documentation

__construct (  )

Constructor

Map constants to doctype strings, and set default doctype

Returns:
void

Definition at line 80 of file Doctype.php.


Member Function Documentation

__toString (  )

String representation of doctype

Returns:
string

Definition at line 190 of file Doctype.php.

doctype ( doctype = null )

Set or retrieve doctype

Parameters:
string$doctype
Returns:
Zend_View_Helper_Doctype

Definition at line 109 of file Doctype.php.

getDoctype (  )

Retrieve doctype

Returns:
string

Definition at line 160 of file Doctype.php.

getDoctypes (  )

Get doctype => string mappings

Returns:
array

Definition at line 170 of file Doctype.php.

isXhtml (  )

Is doctype XHTML?

Returns:
boolean

Definition at line 180 of file Doctype.php.

setDoctype ( doctype )

Set doctype

Parameters:
string$doctype
Returns:
Zend_View_Helper_Doctype

Definition at line 149 of file Doctype.php.


Field Documentation

const XHTML11 = 'XHTML11'

#@+ DocType constants

Definition at line 42 of file Doctype.php.


The documentation for this class was generated from the following file: