Class Zend_View_Helper_Doctype

Description

Helper for setting and retrieving the doctype

  • copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /View/Helper/Doctype.php (line 36)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_Doctype
Class Constant Summary
 CUSTOM = 'CUSTOM'
 CUSTOM_XHTML = 'CUSTOM_XHTML'
 HTML4_FRAMESET = 'HTML4_FRAMESET'
 HTML4_LOOSE = 'HTML4_LOOSE'
 HTML4_STRICT = 'HTML4_STRICT'
 HTML5 = 'HTML5'
 XHTML1_FRAMESET = 'XHTML1_FRAMESET'
 XHTML1_STRICT = 'XHTML1_STRICT'
 XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'
 XHTML11 = 'XHTML11'
 XHTML_BASIC1 = 'XHTML_BASIC1'
Variable Summary
 ArrayObject $_registry
 string $_regKey
Method Summary
 Zend_View_Helper_Doctype doctype ([string $doctype = null])
 string getDoctype ()
 array getDoctypes ()
 boolean isXhtml ()
 void __construct ()
 string __toString ()
Variables
string $_defaultDoctype = self::HTML4_LOOSE (line 58)

Default DocType

  • access: protected
ArrayObject $_registry (line 64)

Registry containing current doctype and mappings

  • access: protected
string $_regKey = 'Zend_View_Helper_Doctype' (line 70)

Registry key in which helper is stored

  • access: protected

Inherited Variables

Inherited from Zend_View_Helper_Abstract

Zend_View_Helper_Abstract::$view
Methods
doctype (line 108)

Set or retrieve doctype

  • access: public
Zend_View_Helper_Doctype doctype ([string $doctype = null])
  • string $doctype
getDoctype (line 159)

Retrieve doctype

  • access: public
string getDoctype ()
getDoctypes (line 169)

Get doctype => string mappings

  • access: public
array getDoctypes ()
isXhtml (line 179)

Is doctype XHTML?

  • access: public
boolean isXhtml ()
setDoctype (line 148)

Set doctype

  • access: public
Zend_View_Helper_Doctype setDoctype (string $doctype)
  • string $doctype
Constructor __construct (line 79)

Constructor

Map constants to doctype strings, and set default doctype

  • access: public
void __construct ()
__toString (line 189)

String representation of doctype

  • access: public
string __toString ()

Inherited Methods

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()
Class Constants
CUSTOM = 'CUSTOM' (line 51)

DocType constants

CUSTOM_XHTML = 'CUSTOM_XHTML' (line 50)

DocType constants

HTML4_FRAMESET = 'HTML4_FRAMESET' (line 48)

DocType constants

HTML4_LOOSE = 'HTML4_LOOSE' (line 47)

DocType constants

HTML4_STRICT = 'HTML4_STRICT' (line 46)

DocType constants

HTML5 = 'HTML5' (line 49)

DocType constants

XHTML1_FRAMESET = 'XHTML1_FRAMESET' (line 44)

DocType constants

XHTML1_STRICT = 'XHTML1_STRICT' (line 42)

DocType constants

XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL' (line 43)

DocType constants

XHTML11 = 'XHTML11' (line 41)

DocType constants

XHTML_BASIC1 = 'XHTML_BASIC1' (line 45)

DocType constants

Documentation generated on Fri, 08 Jan 2010 16:11:33 -0500 by phpDocumentor 1.4.3