Zend Framework
3.0
|
Helper for setting and retrieving stylesheets. More...
Public Member Functions | |
__construct () | |
Constructor. | |
__invoke ($content=null, $placement= 'APPEND', $attributes=[]) | |
Return headStyle object. | |
__call ($method, $args) | |
Overload method calls. | |
toString ($indent=null) | |
Create string representation of placeholder. | |
captureStart ($type=Placeholder\Container\AbstractContainer::APPEND, $attrs=null) | |
Start capture action. | |
captureEnd () | |
End capture action and store. | |
createData ($content, array $attributes) | |
Create data item for use in stack. | |
itemToString (stdClass $item, $indent) | |
Convert content and attributes into valid style tag. | |
append ($value) | |
Override append to enforce style creation. | |
offsetSet ($index, $value) | |
Override offsetSet to enforce style creation. | |
prepend ($value) | |
Override prepend to enforce style creation. | |
set ($value) | |
Override set to enforce style creation. | |
Public Member Functions inherited from AbstractStandalone | |
__construct () | |
Constructor. | |
__call ($method, $args) | |
Overload. | |
__set ($key, $value) | |
Overloading: set property value. | |
__get ($key) | |
Overloading: retrieve property. | |
__isset ($key) | |
Overloading: check if property is set. | |
__unset ($key) | |
Overloading: unset property. | |
__toString () | |
Cast to string representation. | |
toString () | |
String representation. | |
setAutoEscape ($autoEscape=true) | |
Set whether or not auto escaping should be used. | |
getAutoEscape () | |
Return whether autoEscaping is enabled or disabled. | |
setContainer (AbstractContainer $container) | |
Set container on which to operate. | |
getContainer () | |
Retrieve placeholder container. | |
deleteContainer () | |
Delete a container. | |
setContainerClass ($name) | |
Set the container class to use. | |
getContainerClass () | |
Retrieve the container class. | |
setEscaper (Escaper $escaper) | |
Set Escaper instance. | |
getEscaper ($enc= 'UTF-8') | |
Get Escaper instance. | |
count () | |
Countable. | |
offsetExists ($offset) | |
ArrayAccess: offsetExists. | |
offsetGet ($offset) | |
ArrayAccess: offsetGet. | |
offsetSet ($offset, $value) | |
ArrayAccess: offsetSet. | |
offsetUnset ($offset) | |
ArrayAccess: offsetUnset. | |
getIterator () | |
IteratorAggregate: get Iterator. | |
Public Member Functions inherited from AbstractHelper | |
setView (Renderer $view) | |
Set the View object. | |
getView () | |
Get the view object. | |
Protected Member Functions | |
isValid ($value) | |
Determine if a value is a valid style tag. | |
Protected Member Functions inherited from AbstractStandalone | |
escape ($string) | |
Escape a string. | |
Protected Attributes | |
$regKey = 'Zend_View_Helper_HeadStyle' | |
$optionalAttributes = ['lang', 'title', 'media', 'dir'] | |
$mediaTypes | |
$captureAttrs = null | |
$captureLock | |
$captureType | |
Protected Attributes inherited from AbstractStandalone | |
$autoEscape = true | |
$container | |
$containerClass = 'Zend\View\Helper\Placeholder\Container' | |
$escapers = [] | |
Protected Attributes inherited from AbstractHelper | |
$view = null | |
Helper for setting and retrieving stylesheets.
Allows the following method calls: HeadStyle appendStyle($content, $attributes = array()) HeadStyle offsetSetStyle($index, $content, $attributes = array()) HeadStyle prependStyle($content, $attributes = array()) HeadStyle setStyle($content, $attributes = array())
__construct | ( | ) |
Constructor.
Set separator to PHP_EOL.
__call | ( | $method, | |
$args | |||
) |
Overload method calls.
string | $method | |
array | $args |
Exception\BadMethodCallException | When no $content provided or invalid method |
__invoke | ( | $content = null , |
|
$placement = 'APPEND' , |
|||
$attributes = [] |
|||
) |
Return headStyle object.
Returns headStyle helper object; optionally, allows specifying
string | $content | Stylesheet contents |
string | $placement | Append, prepend, or set |
string | array | $attributes | Optional attributes to utilize |
append | ( | $value | ) |
Override append to enforce style creation.
mixed | $value |
Exception\InvalidArgumentException |
captureEnd | ( | ) |
End capture action and store.
captureStart | ( | $type = Placeholder\Container\AbstractContainer::APPEND , |
|
$attrs = null |
|||
) |
Start capture action.
string | $type | |
string | $attrs |
Exception\RuntimeException |
createData | ( | $content, | |
array | $attributes | ||
) |
Create data item for use in stack.
string | $content | |
array | $attributes |
|
protected |
Determine if a value is a valid style tag.
mixed | $value |
itemToString | ( | stdClass | $item, |
$indent | |||
) |
Convert content and attributes into valid style tag.
stdClass | $item | Item to render |
string | $indent | Indentation to use |
offsetSet | ( | $index, | |
$value | |||
) |
Override offsetSet to enforce style creation.
string | int | $index | |
mixed | $value |
Exception\InvalidArgumentException |
prepend | ( | $value | ) |
Override prepend to enforce style creation.
mixed | $value |
Exception\InvalidArgumentException |
set | ( | $value | ) |
Override set to enforce style creation.
mixed | $value |
Exception\InvalidArgumentException |
toString | ( | $indent = null | ) |
Create string representation of placeholder.
string | int | $indent |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |