View/Helper/Doctype.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_View  
Subpackage
Helper  
Version
$Id: Doctype.php 25101 2012-11-07 20:27:27Z rob $  

\Zend_View_Helper_Doctype

Package: Zend\View\Helper
Helper for setting and retrieving the doctype
Parent(s)
\Zend_View_Helper_Abstract
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  XHTML11 = 'XHTML11'
>VConstant  XHTML1_STRICT = 'XHTML1_STRICT'
>VConstant  XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'
>VConstant  XHTML1_FRAMESET = 'XHTML1_FRAMESET'
>VConstant  XHTML1_RDFA = 'XHTML1_RDFA'
>VConstant  XHTML1_RDFA11 = 'XHTML1_RDFA11'
>VConstant  XHTML_BASIC1 = 'XHTML_BASIC1'
>VConstant  XHTML5 = 'XHTML5'
>VConstant  HTML4_STRICT = 'HTML4_STRICT'
>VConstant  HTML4_LOOSE = 'HTML4_LOOSE'
>VConstant  HTML4_FRAMESET = 'HTML4_FRAMESET'
>VConstant  HTML5 = 'HTML5'
>VConstant  CUSTOM_XHTML = 'CUSTOM_XHTML'
>VConstant  CUSTOM = 'CUSTOM'

Properties

>VPropertyprotectedstring $_defaultDoctype = self::HTML4_LOOSE
Default DocType
Default valueself::HTML4_LOOSEDetails
Type
string
>VPropertyprotectedstring $_regKey = 'Zend_View_Helper_Doctype'
Registry key in which helper is stored
Default value'Zend_View_Helper_Doctype'Details
Type
string
>VPropertyprotected\ArrayObject $_registry
Registry containing current doctype and mappings
Details
Type
\ArrayObject
>VPropertypublic\Zend_View_Interface $view = null
inherited
View object
Inherited from: \Zend_View_Helper_Abstract::$$view
Default valuenullDetails
Type
\Zend_View_Interface
Inherited_from
\Zend_View_Helper_Abstract::$$view  

Methods

methodpublic__construct() : void

Constructor

Map constants to doctype strings, and set default doctype

methodpublic__toString() : string

String representation of doctype

Returns
TypeDescription
string
methodpublicdirect() : void
inherited

Strategy pattern: currently unutilized

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

Set or retrieve doctype

Parameters
NameTypeDescription
$doctypestring
Returns
TypeDescription
\Zend_View_Helper_Doctype
methodpublicgetDoctype() : string

Retrieve doctype

Returns
TypeDescription
string
methodpublicgetDoctypes() : array

Get doctype => string mappings

Returns
TypeDescription
array
methodpublicisHtml5() : \booleean

Is doctype HTML5? (HeadMeta uses this for validation)

Returns
TypeDescription
\booleean
methodpublicisRdfa() : \booleean

Is doctype RDFa?

Returns
TypeDescription
\booleean
methodpublicisStrict() : boolean

Is doctype strict?

Returns
TypeDescription
boolean
methodpublicisXhtml() : boolean

Is doctype XHTML?

Returns
TypeDescription
boolean
methodpublicsetDoctype(string $doctype) : \Zend_View_Helper_Doctype

Set doctype

Parameters
NameTypeDescription
$doctypestring
Returns
TypeDescription
\Zend_View_Helper_Doctype
methodpublicsetView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited

Set the View object

Inherited from: \Zend_View_Helper_Abstract::setView()
Parameters
NameTypeDescription
$view\Zend_View_Interface
Returns
TypeDescription
\Zend_View_Helper_Abstract
Documentation was generated by phpDocumentor 2.0.0a12.