View/Helper/HeadLink.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 [email protected] 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: HeadLink.php 24858 2012-06-01 01:24:17Z adamlundrigan $
\Zend_View_Helper_HeadLink
Zend_Layout_View_Helper_HeadLink
- Parent(s)
- \Zend_View_Helper_Placeholder_Container_Standalone < \Zend_View_Helper_Abstract
- See
- \global\http://www.w3.org/TR/xhtml1/dtds.html
- 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


\book $_autoEscape = true
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::$$_autoEscapetrue
Details- Type
- \book
- Inherited_from
- \Zend_View_Helper_Placeholder_Container_Standalone::$$_autoEscape


\Zend_View_Helper_Placeholder_Container_Abstract $_container =


array $_itemKeys = array('charset', 'href', 'hreflang', 'id', 'media', 'rel', 'rev', 'type', 'title', 'extras', 'sizes')
$_validAttributes
array('charset', 'href', 'hreflang', 'id', 'media', 'rel', 'rev', 'type', 'title', 'extras', 'sizes')
Details- Type
- array


string $_regKey = 'Zend_View_Helper_HeadLink'
Registry key under which container registers itself
'Zend_View_Helper_HeadLink'
Details- Type
- string


\Zend_View_Helper_Placeholder_Registry $_registry =


\Zend_View_Interface $view = null
View object
Inherited from: \Zend_View_Helper_Abstract::$$view\Zend_View_Helper_Placeholder_Container_Standalone::$$viewnull
Details- Type
- \Zend_View_Interface
- Inherited_from
- \Zend_View_Helper_Abstract::$$view
- Inherited_from
- \Zend_View_Helper_Placeholder_Container_Standalone::$$view
Methods


__call(mixed $method, mixed $args) : void
Overload method access
Creates the following virtual methods: - appendStylesheet($href, $media, $conditionalStylesheet, $extras) - offsetSetStylesheet($index, $href, $media, $conditionalStylesheet, $extras) - prependStylesheet($href, $media, $conditionalStylesheet, $extras) - setStylesheet($href, $media, $conditionalStylesheet, $extras) - appendAlternate($href, $type, $title, $extras) - offsetSetAlternate($index, $href, $type, $title, $extras) - prependAlternate($href, $type, $title, $extras) - setAlternate($href, $type, $title, $extras)
Items that may be added in the future: - Navigation? need to find docs on this - public function appendStart() - public function appendContents() - public function appendPrev() - public function appendNext() - public function appendIndex() - public function appendEnd() - public function appendGlossary() - public function appendAppendix() - public function appendHelp() - public function appendBookmark() - Other? - public function appendCopyright() - public function appendChapter() - public function appendSection() - public function appendSubsection()
Name | Type | Description |
---|---|---|
$method | mixed | |
$args | mixed |


__get(string $key) : mixed
Overloading: retrieve property
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__get()Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
mixed |


__isset(string $key) : bool
Overloading: check if property is set
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__isset()Name | Type | Description |
---|---|---|
$key | string |
Type | Description |
---|---|
bool |


__set(string $key, mixed $value) : void
Overloading: set property value
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__set()Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |


__toString() : string
Cast to string representation
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__toString()Type | Description |
---|---|
string |


__unset(string $key) : void
Overloading: unset property
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__unset()Name | Type | Description |
---|---|---|
$key | string |


_applyExtras(array $attributes) : array
Apply any overrides specified in the 'extras' array
Name | Type | Description |
---|---|---|
$attributes | array |
Type | Description |
---|---|
array |


_escape(string $string) : string
Escape a string
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::_escape()Name | Type | Description |
---|---|---|
$string | string |
Type | Description |
---|---|
string |


_isDuplicateStylesheet(string $uri) : bool
Is the linked stylesheet a duplicate?
Name | Type | Description |
---|---|---|
$uri | string |
Type | Description |
---|---|
bool |


_isValid(mixed $value) : boolean
Check if value is valid
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
boolean |


createData(array $attributes) : \stdClass
Create data item for stack
Name | Type | Description |
---|---|---|
$attributes | array |
Type | Description |
---|---|
\stdClass |


createDataAlternate(array $args) : \stdClass
Create item for alternate link item
Name | Type | Description |
---|---|---|
$args | array |
Type | Description |
---|---|
\stdClass |


createDataStylesheet(array $args) : \stdClass | false
Create item for stylesheet link item
Name | Type | Description |
---|---|---|
$args | array |
Type | Description |
---|---|
\stdClass | false | Returns fals if stylesheet is a duplicate |


direct() : void
Strategy pattern: currently unutilized
Inherited from: \Zend_View_Helper_Abstract::direct()\Zend_View_Helper_Placeholder_Container_Standalone::direct()

getAutoEscape() : void
Return whether autoEscaping is enabled or disabled
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getAutoEscape()return bool


getContainer() : \Zend_View_Helper_Placeholder_Container_Abstract
Retrieve placeholder container
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getContainer()Type | Description |
---|---|
\Zend_View_Helper_Placeholder_Container_Abstract |


getIterator() : \Iterator
IteratorAggregate: get Iterator
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getIterator()Type | Description |
---|---|
\Iterator |


getRegistry() : \Zend_View_Helper_Placeholder_Registry
Retrieve registry
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getRegistry()Type | Description |
---|---|
\Zend_View_Helper_Placeholder_Registry |


headLink( $attributes = null, $placement = \Zend_View_Helper_Placeholder_Container_Abstract::APPEND) : \Zend_View_Helper_HeadLink
headLink() - View Helper Method
Returns current object instance. Optionally, allows passing array of values to build link.
Name | Type | Description |
---|---|---|
$attributes | ||
$placement |
Type | Description |
---|---|
\Zend_View_Helper_HeadLink |


itemToString(\stdClass $item) : string
Create HTML link element from data item
Name | Type | Description |
---|---|---|
$item | \stdClass |
Type | Description |
---|---|
string |


offsetExists(string | int $offset) : bool
ArrayAccess: offsetExists
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetExists()Name | Type | Description |
---|---|---|
$offset | string | int |
Type | Description |
---|---|
bool |


offsetGet(string | int $offset) : mixed
ArrayAccess: offsetGet
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetGet()Name | Type | Description |
---|---|---|
$offset | string | int |
Type | Description |
---|---|
mixed |


offsetSet(string | int $index, array $value) : void
offsetSet()
Name | Type | Description |
---|---|---|
$index | string | int | |
$value | array |


offsetUnset(string | int $offset) : void
ArrayAccess: offsetUnset
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::offsetUnset()Name | Type | Description |
---|---|---|
$offset | string | int |


prepend(array $value) : \Zend_Layout_ViewHelper_HeadLink
prepend()
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Layout_ViewHelper_HeadLink |


set(array $value) : \Zend_Layout_ViewHelper_HeadLink
set()
Name | Type | Description |
---|---|---|
$value | array |
Type | Description |
---|---|
\Zend_Layout_ViewHelper_HeadLink |


setAutoEscape(bool $autoEscape = true) : \Zend_View_Helper_Placeholder_Container_Standalone
Set whether or not auto escaping should be used
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::setAutoEscape()Name | Type | Description |
---|---|---|
$autoEscape | bool | whether or not to auto escape output |
Type | Description |
---|---|
\Zend_View_Helper_Placeholder_Container_Standalone |


setContainer(\Zend_View_Helper_Placeholder_Container_Abstract $container) : \Zend_View_Helper_Placeholder_Container_Standalone
Set container on which to operate
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::setContainer()Name | Type | Description |
---|---|---|
$container | \Zend_View_Helper_Placeholder_Container_Abstract |
Type | Description |
---|---|
\Zend_View_Helper_Placeholder_Container_Standalone |


setRegistry(\Zend_View_Helper_Placeholder_Registry $registry) : \Zend_View_Helper_Placeholder_Container_Standalone
Set registry object
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::setRegistry()Name | Type | Description |
---|---|---|
$registry | \Zend_View_Helper_Placeholder_Registry |
Type | Description |
---|---|
\Zend_View_Helper_Placeholder_Container_Standalone |


setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
Set the View object
Inherited from: \Zend_View_Helper_Abstract::setView()\Zend_View_Helper_Placeholder_Container_Standalone::setView()Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface |
Type | Description |
---|---|
\Zend_View_Helper_Abstract |