Fully Qualified Name: | Zend\View\Helper\HeadStyle |
Extends: | AbstractStandalone |
Helper for setting and retrieving stylesheets
Allows the following method calls:
Name | Description | Defined By |
---|---|---|
__call() | Overload method calls | HeadStyle |
__construct() | Constructor | HeadStyle |
__get() | Overloading: retrieve property | AbstractStandalone |
__invoke() | Return headStyle object | HeadStyle |
__isset() | Overloading: check if property is set | AbstractStandalone |
__set() | Overloading: set property value | AbstractStandalone |
__toString() | Cast to string representation | AbstractStandalone |
__unset() | Overloading: unset property | AbstractStandalone |
append() | Override append to enforce style creation | HeadStyle |
captureEnd() | End capture action and store | HeadStyle |
captureStart() | Start capture action | HeadStyle |
count() | Countable | AbstractStandalone |
createData() | Create data item for use in stack | HeadStyle |
deleteContainer() | Delete a container | AbstractStandalone |
getAutoEscape() | Return whether autoEscaping is enabled or disabled | AbstractStandalone |
getContainer() | Retrieve placeholder container | AbstractStandalone |
getContainerClass() | Retrieve the container class | AbstractStandalone |
getEscaper() | Get Escaper instance | AbstractStandalone |
getIterator() | IteratorAggregate: get Iterator | AbstractStandalone |
getView() | Get the view object | AbstractHelper |
itemToString() | Convert content and attributes into valid style tag | HeadStyle |
offsetExists() | ArrayAccess: offsetExists | AbstractStandalone |
offsetGet() | ArrayAccess: offsetGet | AbstractStandalone |
offsetSet() | Override offsetSet to enforce style creation | HeadStyle |
offsetUnset() | ArrayAccess: offsetUnset | AbstractStandalone |
prepend() | Override prepend to enforce style creation | HeadStyle |
set() | Override set to enforce style creation | HeadStyle |
setAutoEscape() | Set whether or not auto escaping should be used | AbstractStandalone |
setContainer() | Set container on which to operate | AbstractStandalone |
setContainerClass() | Set the container class to use | AbstractStandalone |
setEscaper() | Set Escaper instance | AbstractStandalone |
setView() | Set the View object | AbstractHelper |
toString() | Create string representation of placeholder | HeadStyle |
Overload method calls
Parameter Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Returns: void
Constructor
Set separator to PHP_EOL.
Returns:
Overloading: retrieve property
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: mixed
Return headStyle object
Returns headStyle helper object; optionally, allows specifying
Parameter Name | Type | Description |
---|---|---|
$content | string | Stylesheet |
$placement | string | Append, |
$attributes | string|array | Optional |
Returns: \HeadStyle
Overloading: check if property is set
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: bool
Overloading: set property value
Parameter Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Returns: void
Cast to string representation
Returns: string
Overloading: unset property
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: void
Override append to enforce style creation
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: void
End capture action and store
Returns: void
Start capture action
Parameter Name | Type | Description |
---|---|---|
$type | string | |
$attrs | string |
Returns: void
Countable
Returns: int
Create data item for use in stack
Parameter Name | Type | Description |
---|---|---|
$content | string | |
$attributes | array |
Returns: \stdClass
Delete a container
Returns: bool
Return whether autoEscaping is enabled or disabled
return bool
Returns:
Retrieve placeholder container
Returns: \AbstractContainer
Retrieve the container class
Returns: string
Get Escaper instance
Lazy-loads one if none available
Parameter Name | Type | Description |
---|---|---|
$enc | string|null | Encoding |
Returns: mixed
IteratorAggregate: get Iterator
Returns: \Iterator
Get the view object
Returns: null|\Renderer
Convert content and attributes into valid style tag
Parameter Name | Type | Description |
---|---|---|
$item | \stdClass | Item |
$indent | string | Indentation |
Returns: string
ArrayAccess: offsetExists
Parameter Name | Type | Description |
---|---|---|
$offset | string|int |
Returns: bool
ArrayAccess: offsetGet
Parameter Name | Type | Description |
---|---|---|
$offset | string|int |
Returns: mixed
Override offsetSet to enforce style creation
Parameter Name | Type | Description |
---|---|---|
$index | string|int | |
$value | mixed |
Returns: void
ArrayAccess: offsetUnset
Parameter Name | Type | Description |
---|---|---|
$offset | string|int |
Returns: void
Override prepend to enforce style creation
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: void
Override set to enforce style creation
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: void
Set whether or not auto escaping should be used
Parameter Name | Type | Description |
---|---|---|
$autoEscape | bool | whether |
Returns: \AbstractStandalone
Set container on which to operate
Parameter Name | Type | Description |
---|---|---|
$container | \AbstractContainer |
Returns: \AbstractStandalone
Set the container class to use
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \Zend\View\Helper\Placeholder\Container\AbstractStandalone
Set Escaper instance
Parameter Name | Type | Description |
---|---|---|
$escaper | \Escaper |
Returns: \AbstractStandalone
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper
Create string representation of placeholder
Parameter Name | Type | Description |
---|---|---|
$indent | string|int |
Returns: string