Class HeadStyle

Summary

Fully Qualified Name: Zend\View\Helper\HeadStyle
Extends: AbstractStandalone

Description

Helper for setting and retrieving stylesheets

Allows the following method calls:

Methods

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

Method Details

__call()

Overload method calls

Parameter Name Type Description
$method string
$args array

Returns: void

__construct()

Constructor

Set separator to PHP_EOL.

Returns:

__get()

Overloading: retrieve property

Parameter Name Type Description
$key string

Returns: mixed

__invoke()

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

__isset()

Overloading: check if property is set

Parameter Name Type Description
$key string

Returns: bool

__set()

Overloading: set property value

Parameter Name Type Description
$key string
$value mixed

Returns: void

__toString()

Cast to string representation

Returns: string

__unset()

Overloading: unset property

Parameter Name Type Description
$key string

Returns: void

append()

Override append to enforce style creation

Parameter Name Type Description
$value mixed

Returns: void

captureEnd()

End capture action and store

Returns: void

captureStart()

Start capture action

Parameter Name Type Description
$type string
$attrs string

Returns: void

count()

Countable

Returns: int

createData()

Create data item for use in stack

Parameter Name Type Description
$content string
$attributes array

Returns: \stdClass

deleteContainer()

Delete a container

Returns: bool

getAutoEscape()

Return whether autoEscaping is enabled or disabled

return bool

Returns:

getContainer()

Retrieve placeholder container

Returns: \AbstractContainer

getContainerClass()

Retrieve the container class

Returns: string

getEscaper()

Get Escaper instance

Lazy-loads one if none available

Parameter Name Type Description
$enc string|null Encoding

Returns: mixed

getIterator()

IteratorAggregate: get Iterator

Returns: \Iterator

getView()

Get the view object

Returns: null|\Renderer

itemToString()

Convert content and attributes into valid style tag

Parameter Name Type Description
$item \stdClass Item
$indent string Indentation

Returns: string

offsetExists()

ArrayAccess: offsetExists

Parameter Name Type Description
$offset string|int

Returns: bool

offsetGet()

ArrayAccess: offsetGet

Parameter Name Type Description
$offset string|int

Returns: mixed

offsetSet()

Override offsetSet to enforce style creation

Parameter Name Type Description
$index string|int
$value mixed

Returns: void

offsetUnset()

ArrayAccess: offsetUnset

Parameter Name Type Description
$offset string|int

Returns: void

prepend()

Override prepend to enforce style creation

Parameter Name Type Description
$value mixed

Returns: void

set()

Override set to enforce style creation

Parameter Name Type Description
$value mixed

Returns: void

setAutoEscape()

Set whether or not auto escaping should be used

Parameter Name Type Description
$autoEscape bool whether

Returns: \AbstractStandalone

setContainer()

Set container on which to operate

Parameter Name Type Description
$container \AbstractContainer

Returns: \AbstractStandalone

setContainerClass()

Set the container class to use

Parameter Name Type Description
$name string

Returns: \Zend\View\Helper\Placeholder\Container\AbstractStandalone

setEscaper()

Set Escaper instance

Parameter Name Type Description
$escaper \Escaper

Returns: \AbstractStandalone

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

toString()

Create string representation of placeholder

Parameter Name Type Description
$indent string|int

Returns: string

Top