API Documentation

View/Helper/Doctype.php

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.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_View  
subpackage
Helper  
version
$Id: Doctype.php 24201 2011-07-05 16:22:04Z matthew $  

\Zend_View_Helper_Doctype

Helper for setting and retrieving the doctype

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

Constants

Constant  XHTML11 = 'XHTML11'
Constant  XHTML1_STRICT = 'XHTML1_STRICT'
Constant  XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'
Constant  XHTML1_FRAMESET = 'XHTML1_FRAMESET'
Constant  XHTML1_RDFA = 'XHTML1_RDFA'
Constant  XHTML_BASIC1 = 'XHTML_BASIC1'
Constant  XHTML5 = 'XHTML5'
Constant  HTML4_STRICT = 'HTML4_STRICT'
Constant  HTML4_LOOSE = 'HTML4_LOOSE'
Constant  HTML4_FRAMESET = 'HTML4_FRAMESET'
Constant  HTML5 = 'HTML5'
Constant  CUSTOM_XHTML = 'CUSTOM_XHTML'
Constant  CUSTOM = 'CUSTOM'

Properties

Propertyprotectedstring  $_defaultDoctype= 'self'

Default DocType

Default valueselfDetails
Type
string
Propertyprotectedstring  $_regKey= 'Zend_View_Helper_Doctype'

Registry key in which helper is stored

Default valueZend_View_Helper_DoctypeDetails
Type
string
Propertyprotected\ArrayObject  $_registry= ''

Registry containing current doctype and mappings

Details
Type
\ArrayObject

Methods

methodpublic__construct( ) : void

Constructor

Map constants to doctype strings, and set default doctype

methodpublic__toString( ) : string

String representation of doctype

Returns
Type Description
string
methodpublicdirect( ) : void

Strategy pattern: currently unutilized

Inherited from: \Zend_View_Helper_Abstract::direct()
methodpublicdoctype( string $doctype = null ) : \Zend_View_Helper_Doctype

Set or retrieve doctype

Parameters
Name Type Description
$doctype string
Returns
Type Description
\Zend_View_Helper_Doctype
methodpublicgetDoctype( ) : string

Retrieve doctype

Returns
Type Description
string
methodpublicgetDoctypes( ) : array

Get doctype => string mappings

Returns
Type Description
array
methodpublicisHtml5( ) : \booleean

Is doctype HTML5? (HeadMeta uses this for validation)

Returns
Type Description
\booleean
methodpublicisRdfa( ) : \booleean

Is doctype RDFa?

Returns
Type Description
\booleean
methodpublicisStrict( ) : boolean

Is doctype strict?

Returns
Type Description
boolean
methodpublicisXhtml( ) : boolean

Is doctype XHTML?

Returns
Type Description
boolean
methodpublicsetDoctype( string $doctype ) : \Zend_View_Helper_Doctype

Set doctype

Parameters
Name Type Description
$doctype string
Returns
Type Description
\Zend_View_Helper_Doctype
methodpublicsetView( \Zend_View_Interface $view ) : \Zend_View_Helper_Abstract

Set the View object

Inherited from: \Zend_View_Helper_Abstract::setView()
Parameters
Name Type Description
$view \Zend_View_Interface
Returns
Type Description
\Zend_View_Helper_Abstract
Documentation was generated by DocBlox 0.13.3.