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.
Helper for setting and retrieving stylesheets

string
$_captureAttrs= 'null'
Capture type and/or attributes (used for hinting during capture)
null
Details
array
$_optionalAttributes= 'array('lang''
Allowed optional attributes
array('lang'
Details
__call(
string $method, array $args
)
:
void
Overload 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 |

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

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

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

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

headStyle(
string $content
=
null, string $placement
=
'APPEND', string|array $attributes
=
array()
)
:
\Zend_View_Helper_HeadStyle
Return 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
)
:
string
Convert content and attributes into valid style tag
Name | Type | Description |
---|---|---|
$item | \stdClass | Item to render |
$indent | string | Indentation to use |
Type | Description |
---|---|
string |

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

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

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