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

\book $_autoEscape = truetrueDetails- Type
- \book
- Inherited_from
- \Zend_View_Helper_Placeholder_Container_Standalone::$$_autoEscape

string $_captureAttrs = nullnullDetails- Type
- string

\Zend_View_Helper_Placeholder_Container_Abstract $_container
array $_mediaTypes = array('all', 'aural', 'braille', 'handheld', 'print', 'projection', 'screen', 'tty', 'tv')array('all', 'aural', 'braille', 'handheld', 'print', 'projection', 'screen', 'tty', 'tv')Details- Type
- array

array $_optionalAttributes = array('lang', 'title', 'media', 'dir')array('lang', 'title', 'media', 'dir')Details- Type
- array

string $_regKey = 'Zend_View_Helper_HeadStyle''Zend_View_Helper_HeadStyle'Details- Type
- string

\Zend_View_Helper_Placeholder_Registry $_registry
\Zend_View_Interface $view = nullnullDetails- Type
- \Zend_View_Interface
- Inherited_from
- \Zend_View_Helper_Abstract::$$view
- Inherited_from
- \Zend_View_Helper_Placeholder_Container_Standalone::$$view
Methods

__call(string $method, array $args) : voidOverload method calls
Allows the following method calls: - appendStyle($content, $attributes = array()) - offsetSetStyle($index, $content, $attributes = array()) - prependStyle($content, $attributes = array()) - setStyle($content, $attributes = array())
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Exception | Description |
|---|---|
| \Zend_View_Exception | When no $content provided or invalid method |

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

__isset(string $key) : boolOverloading: 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) : voidOverloading: set property value
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::__set()| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |

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

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

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

_isValid(mixed $value) : booleanDetermine if a value is a valid style tag
| Name | Type | Description |
|---|---|---|
| $value | mixed |
| Type | Description |
|---|---|
| boolean |

append(mixed $value) : voidOverride append to enforce style creation
| Name | Type | Description |
|---|---|---|
| $value | mixed |

captureStart( $type = \Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $attrs = null) : voidStart capture action
| Name | Type | Description |
|---|---|---|
| $type | ||
| $attrs |

createData(string $content, array $attributes) : \stdClassCreate data item for use in stack
| Name | Type | Description |
|---|---|---|
| $content | string | |
| $attributes | array |
| Type | Description |
|---|---|
| \stdClass |

direct() : voidStrategy pattern: currently unutilized
Inherited from: \Zend_View_Helper_Abstract::direct()\Zend_View_Helper_Placeholder_Container_Standalone::direct()
getAutoEscape() : voidReturn whether autoEscaping is enabled or disabled
Inherited from: \Zend_View_Helper_Placeholder_Container_Standalone::getAutoEscape()return bool

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

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

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

headStyle(string $content = null, string $placement = 'APPEND', string | array $attributes = array()) : \Zend_View_Helper_HeadStyleReturn headStyle object
Returns headStyle helper object; optionally, allows specifying
| Name | Type | Description |
|---|---|---|
| $content | string | Stylesheet contents |
| $placement | string | Append, prepend, or set |
| $attributes | string | array | Optional attributes to utilize |
| Type | Description |
|---|---|
| \Zend_View_Helper_HeadStyle |

itemToString(\stdClass $item, string $indent) : stringConvert content and attributes into valid style tag
| Name | Type | Description |
|---|---|---|
| $item | \stdClass | Item to render |
| $indent | string | Indentation to use |
| Type | Description |
|---|---|
| string |

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

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

offsetSet(string | int $index, mixed $value) : voidOverride offsetSet to enforce style creation
| Name | Type | Description |
|---|---|---|
| $index | string | int | |
| $value | mixed |

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

prepend(mixed $value) : voidOverride prepend to enforce style creation
| Name | Type | Description |
|---|---|---|
| $value | mixed |

set(mixed $value) : voidOverride set to enforce style creation
| Name | Type | Description |
|---|---|---|
| $value | mixed |

setAutoEscape(bool $autoEscape = true) : \Zend_View_Helper_Placeholder_Container_StandaloneSet 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_StandaloneSet 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_StandaloneSet 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_AbstractSet 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 |