API Documentation

Zend/View/Helper/Doctype.php

Show: inherited
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 24594 2012-01-05 21:27:01Z matthew $  

\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

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::HTML4_LOOSE'

Default DocType

Default valueself::HTML4_LOOSEDetails
Type
string
Propertyprotectedstring  $_regKey= ''Zend_View_Helper_Doctype''

Registry key in which helper is stored

Default value'Zend_View_Helper_Doctype'Details
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
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
Documentation was generated by DocBlox 0.15.1.