API Documentation

View/Helper/Doctype.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id: Doctype.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Helper_Doctype

Description

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.

Zend_View_Helper_Doctype

Extends from
Zend_View_Helper_Abstract
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
Constants
XHTML11
XHTML1_STRICT
XHTML1_TRANSITIONAL
XHTML1_FRAMESET
XHTML_BASIC1
XHTML5
HTML4_STRICT
HTML4_LOOSE
HTML4_FRAMESET
HTML5
CUSTOM_XHTML
CUSTOM
Properties
$_defaultDoctype
$_registry
$_regKey
Methods
__construct
doctype
setDoctype
getDoctype
getDoctypes
isXhtml
isHtml5
__toString

Description

Helper for setting and retrieving the doctype

Constants

XHTML11

 XHTML11 = 'XHTML11'

Details

value
XHTML11

XHTML1_STRICT

 XHTML1_STRICT = 'XHTML1_STRICT'

Details

value
XHTML1_STRICT

XHTML1_TRANSITIONAL

 XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'

Details

value
XHTML1_TRANSITIONAL

XHTML1_FRAMESET

 XHTML1_FRAMESET = 'XHTML1_FRAMESET'

Details

value
XHTML1_FRAMESET

XHTML_BASIC1

 XHTML_BASIC1 = 'XHTML_BASIC1'

Details

value
XHTML_BASIC1

XHTML5

 XHTML5 = 'XHTML5'

Details

value
XHTML5

HTML4_STRICT

 HTML4_STRICT = 'HTML4_STRICT'

Details

value
HTML4_STRICT

HTML4_LOOSE

 HTML4_LOOSE = 'HTML4_LOOSE'

Details

value
HTML4_LOOSE

HTML4_FRAMESET

 HTML4_FRAMESET = 'HTML4_FRAMESET'

Details

value
HTML4_FRAMESET

HTML5

 HTML5 = 'HTML5'

Details

value
HTML5

CUSTOM_XHTML

 CUSTOM_XHTML = 'CUSTOM_XHTML'

Details

value
CUSTOM_XHTML

CUSTOM

 CUSTOM = 'CUSTOM'

Details

value
CUSTOM

Properties

$_defaultDoctype

string $_defaultDoctype = 'self'

Default DocType

Details

$_defaultDoctype
string
visibility
protected
default
self
final
false
static
false

$_regKey

string $_regKey = 'Zend_View_Helper_Doctype'

Registry key in which helper is stored

Details

$_regKey
string
visibility
protected
default
Zend_View_Helper_Doctype
final
false
static
false

$_registry

ArrayObject $_registry = ''

Registry containing current doctype and mappings

Details

$_registry
ArrayObject
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( ) : void

Constructor

Map constants to doctype strings, and set default doctype

Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

String representation of doctype

Output
string
Details
visibility
public
final
false
static
false

doctype

doctype( string $doctype = null ) : Zend_View_Helper_Doctype

Set or retrieve doctype

Arguments
$doctype
string
Details
visibility
public
final
false
static
false

getDoctype

getDoctype( ) : string

Retrieve doctype

Output
string
Details
visibility
public
final
false
static
false

getDoctypes

getDoctypes( ) : array

Get doctype => string mappings

Output
array
Details
visibility
public
final
false
static
false

isHtml5

isHtml5( ) : booleean

Is doctype HTML5? (HeadMeta uses this for validation)

Output
booleean
Details
visibility
public
final
false
static
false

isXhtml

isXhtml( ) : boolean

Is doctype XHTML?

Output
boolean
Details
visibility
public
final
false
static
false

setDoctype

setDoctype( string $doctype ) : Zend_View_Helper_Doctype

Set doctype

Arguments
$doctype
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.