Zend\View\Helper\HeadStyle
Helper for setting and retrieving stylesheets
Allows the following method calls:
Synopsis
class HeadStyle
extends AbstractStandalone
{
- // members
- protected string $regKey;
- protected array $optionalAttributes;
- protected array $mediaTypes;
- protected string $captureAttrs;
- protected bool $captureLock;
- protected string $captureType;
- // Inherited members from AbstractStandalone
- protected bool $autoEscape;
- protected AbstractContainer $container;
- protected string $containerClass;
- protected array $escapers;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- public void __construct()
- public HeadStyle __invoke()
- public void __call()
- public string toString()
- public void captureStart()
- public void captureEnd()
- public stdClass createData()
- protected bool isValid()
- public string itemToString()
- public void append()
- public void offsetSet()
- public void prepend()
- public void set()
- // Inherited methods from AbstractStandalone
- public void __construct()
- public mixed __call()
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
- public string __toString()
- public string toString()
- protected string escape()
- public AbstractStandalone setAutoEscape()
- public void getAutoEscape()
- public AbstractStandalone setContainer()
- public AbstractContainer getContainer()
- public bool deleteContainer()
- public AbstractStandalone setContainerClass()
- public string getContainerClass()
- public AbstractStandalone setEscaper()
- public mixed getEscaper()
- public int count()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public Iterator getIterator()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Members
protected
- $autoEscape
—
Zend\View\Helper\Placeholder\Container\bool
Flag whether to automatically escape output, must also be enforced in the child class if __toString/toString is overridden - $captureAttrs
—
string
Capture type and/or attributes (used for hinting during capture) - $captureLock
—
Zend\View\Helper\bool
Capture lock - $captureType
—
string
Capture type (append, prepend, set) - $container — Zend\View\Helper\Placeholder\Container\AbstractContainer
- $containerClass
—
string
Default container class - $escapers — array
- $mediaTypes
—
array
Allowed media types - $optionalAttributes
—
array
Allowed optional attributes - $regKey
—
string
Registry key for placeholder - $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
protected
- isValid() — Determine if a value is a valid style tag
public
- __construct() — Constructor
- __call() — Overload method calls
- __invoke() — Return headStyle object
- append() — Override append to enforce style creation
- captureEnd() — End capture action and store
- captureStart() — Start capture action
- createData() — Create data item for use in stack
- itemToString() — Convert content and attributes into valid style tag
- offsetSet() — Override offsetSet to enforce style creation
- prepend() — Override prepend to enforce style creation
- set() — Override set to enforce style creation
- toString() — Create string representation of placeholder
Inherited from Zend\View\Helper\Placeholder\Container\AbstractStandalone
protected
- escape() — Escape a string
public
- __call() — Overload
- __get() — Overloading: retrieve property
- __isset() — Overloading: check if property is set
- __set() — Overloading: set property value
- __toString() — Cast to string representation
- __unset() — Overloading: unset property
- count() — Countable
- deleteContainer() — Delete a container
- getAutoEscape() — Return whether autoEscaping is enabled or disabled
- getContainer() — Retrieve placeholder container
- getContainerClass() — Retrieve the container class
- getEscaper() — Get Escaper instance
- getIterator() — IteratorAggregate: get Iterator
- offsetExists() — ArrayAccess: offsetExists
- offsetGet() — ArrayAccess: offsetGet
- offsetSet() — ArrayAccess: offsetSet
- offsetUnset() — ArrayAccess: offsetUnset
- setAutoEscape() — Set whether or not auto escaping should be used
- setContainer() — Set container on which to operate
- setContainerClass() — Set the container class to use
- setEscaper() — Set Escaper instance
- toString() — String representation