958. Class

958.1. Zend\View\Helper\HeadStyle

Helper for setting and retrieving stylesheets

958.1.1. Methods

958.1.1.1. __construct

__construct()

Constructor

Set separator to PHP_EOL.

958.1.1.2. __invoke

__invoke()

Return headStyle object

Returns headStyle helper object; optionally, allows specifying

Parameters:
  • string – Stylesheet contents
  • string – Append, prepend, or set
  • string|array – Optional attributes to utilize
Return type:

ZendViewHelperHeadStyle

958.1.1.3. __call

__call()

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())

Parameters:
  • string
  • array
Return type:

void

Throws :

ExceptionBadMethodCallException When no $content provided or invalid method

958.1.1.4. isValid

isValid()

Determine if a value is a valid style tag

Parameters:mixed
Return type:bool

958.1.1.5. append

append()

Override append to enforce style creation

Parameters:mixed
Return type:void
Throws :ExceptionInvalidArgumentException

958.1.1.6. offsetSet

offsetSet()

Override offsetSet to enforce style creation

Parameters:
  • string|int
  • mixed
Return type:

void

Throws :

ExceptionInvalidArgumentException

958.1.1.7. prepend

prepend()

Override prepend to enforce style creation

Parameters:mixed
Return type:void
Throws :ExceptionInvalidArgumentException

958.1.1.8. set

set()

Override set to enforce style creation

Parameters:mixed
Return type:void
Throws :ExceptionInvalidArgumentException

958.1.1.9. captureStart

captureStart()

Start capture action

Parameters:
  • string
  • string
Return type:

void

Throws :

ExceptionRuntimeException

958.1.1.10. captureEnd

captureEnd()

End capture action and store

Return type:void

958.1.1.11. itemToString

itemToString()

Convert content and attributes into valid style tag

Parameters:
  • stdClass – Item to render
  • string – Indentation to use
Return type:

string

958.1.1.12. toString

toString()

Create string representation of placeholder

Parameters:string|int
Return type:string

958.1.1.13. createData

createData()

Create data item for use in stack

Parameters:
  • string
  • array
Return type:

stdClass