View/Helper/HeadTitle.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: HeadTitle.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_View_Helper_HeadTitle

Package: Zend\View\Helper
Helper for setting and retrieving title element for HTML head
Parent(s)
\Zend_View_Helper_Placeholder_Container_Standalone < \Zend_View_Helper_Abstract
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\global\Zend_View_Helper_Placeholder_Container_Standalone  

Properties

>VPropertyprotected\book $_autoEscape = true
inherited
Flag wheter to automatically escape output, must also be enforced in the child class if __toString/toString is overriden
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::$$_autoEscape
Default valuetrueDetails
Type
\book
Inherited_from
\Zend_View_Helper_Placeholder_Container_Standalone::$$_autoEscape  
>VPropertyprotectedstring $_defaultAttachOrder = null
Default title rendering order (i.e.

order in which each title attached)

Default valuenullDetails
Type
string
>VPropertyprotectedstring $_regKey = 'Zend_View_Helper_HeadTitle'
Registry key for placeholder
Default value'Zend_View_Helper_HeadTitle'Details
Type
string
>VPropertyprotectedboolean $_translate = false
Whether or not auto-translation is enabled
Default valuefalseDetails
Type
boolean
>VPropertyprotected\Zend_Translate_Adapter $_translator
Translation object

Methods

methodpublic__call(string $method, array $args) : mixed

Proxy to container methods

Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
mixed
methodpublic__construct() : void
methodpublic__get(string $key) : mixed
inherited

Overloading: retrieve property

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__get()
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
mixed
methodpublic__isset(string $key) : bool
inherited

Overloading: check if property is set

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__isset()
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
bool
methodpublic__set(string $key, mixed $value) : void
inherited

Overloading: set property value

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__set()
Parameters
NameTypeDescription
$keystring
$valuemixed
methodpublic__toString() : string
inherited

Cast to string representation

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__toString()
Returns
TypeDescription
string
methodpublic__unset(string $key) : void
inherited

Overloading: unset property

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__unset()
Parameters
NameTypeDescription
$keystring
methodprotected_escape(string $string) : string
Parameters
NameTypeDescription
$stringstring
Returns
TypeDescription
string
methodpubliccount() : int
Returns
TypeDescription
int
methodpublicdirect() : void
methodpublicdisableTranslation() : \Zend_View_Helper_HeadTitle

Disables translation

Returns
TypeDescription
\Zend_View_Helper_HeadTitle
methodpublicenableTranslation() : \Zend_View_Helper_HeadTitle

Enables translation

Returns
TypeDescription
\Zend_View_Helper_HeadTitle
methodpublicgetAutoEscape() : void
inherited

Return whether autoEscaping is enabled or disabled

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getAutoEscape()

return bool

methodpublicgetDefaultAttachOrder() : mixed

Get the default attach order, if any.

Returns
TypeDescription
mixed
methodpublicgetIterator() : \Iterator
inherited

IteratorAggregate: get Iterator

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getIterator()
Returns
TypeDescription
\Iterator
methodpublicgetTranslator() : \Zend_Translate_Adapter | null

Retrieve translation object

If none is currently registered, attempts to pull it from the registry using the key 'Zend_Translate'.

Returns
TypeDescription
\Zend_Translate_Adapter | null
methodpublicheadTitle(string $title = null, string $setType = null) : \Zend_View_Helper_HeadTitle

Retrieve placeholder for title element and optionally set state

Parameters
NameTypeDescription
$titlestring
$setTypestring
Returns
TypeDescription
\Zend_View_Helper_HeadTitle
methodpublicoffsetExists(string | int $offset) : bool
inherited

ArrayAccess: offsetExists

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetExists()
Parameters
NameTypeDescription
$offsetstring | int
Returns
TypeDescription
bool
methodpublicoffsetGet(string | int $offset) : mixed
inherited

ArrayAccess: offsetGet

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetGet()
Parameters
NameTypeDescription
$offsetstring | int
Returns
TypeDescription
mixed
methodpublicoffsetSet(string | int $offset, mixed $value) : void
inherited

ArrayAccess: offsetSet

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetSet()
Parameters
NameTypeDescription
$offsetstring | int
$valuemixed
methodpublicoffsetUnset(string | int $offset) : void
inherited

ArrayAccess: offsetUnset

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetUnset()
Parameters
NameTypeDescription
$offsetstring | int
methodpublicsetAutoEscape(bool $autoEscape = true) : \Zend_View_Helper_Placeholder_Container_Standalone
inherited

Set whether or not auto escaping should be used

Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::setAutoEscape()
Parameters
NameTypeDescription
$autoEscapebool

whether or not to auto escape output

Returns
TypeDescription
\Zend_View_Helper_Placeholder_Container_Standalone
methodpublicsetDefaultAttachOrder(string $setType) : void

Set a default order to add titles

Parameters
NameTypeDescription
$setTypestring
methodpublicsetTranslator(\Zend_Translate | \Zend_Translate_Adapter $translate) : \Zend_View_Helper_HeadTitle

Sets a translation Adapter for translation

Parameters
NameTypeDescription
$translate\Zend_Translate | \Zend_Translate_Adapter
Returns
TypeDescription
\Zend_View_Helper_HeadTitle
methodpublictoString(string | null $indent = null, string | null $locale = null) : string

Turn helper into string

Parameters
NameTypeDescription
$indentstring | null
$localestring | null
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.