Public Member Functions | |
__construct () | |
headStyle ($content=null, $placement= 'APPEND', $attributes=array()) | |
__call ($method, $args) | |
append ($value) | |
offsetSet ($index, $value) | |
prepend ($value) | |
set ($value) | |
captureStart ($type=Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $attrs=null) | |
captureEnd () | |
itemToString (stdClass $item, $indent) | |
toString ($indent=null) | |
createData ($content, array $attributes) | |
Protected Member Functions | |
_isValid ($value) | |
Protected Attributes | |
$_regKey = 'Zend_View_Helper_HeadStyle' | |
$_optionalAttributes = array('lang', 'title', 'media', 'dir') | |
$_mediaTypes | |
$_captureAttrs = null | |
$_captureLock | |
$_captureType |
Definition at line 35 of file HeadStyle.php.
__construct | ( | ) |
Constructor
Set separator to PHP_EOL.
Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.
Definition at line 83 of file HeadStyle.php.
__call | ( | $ | method, |
$ | args | ||
) |
Overload method calls
Allows the following method calls:
string | $method | |
array | $args |
Zend_View_Exception | When no $content provided or invalid method |
Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.
Definition at line 134 of file HeadStyle.php.
_isValid | ( | $ | value ) | [protected] |
Determine if a value is a valid style tag
mixed | $value | |
string | $method |
Definition at line 180 of file HeadStyle.php.
append | ( | $ | value ) |
Override append to enforce style creation
mixed | $value |
Definition at line 198 of file HeadStyle.php.
captureEnd | ( | ) |
captureStart | ( | $ | type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND , |
$ | attrs = null |
||
) |
Start capture action
mixed | $captureType | |
string | $typeOrAttrs |
Definition at line 264 of file HeadStyle.php.
createData | ( | $ | content, |
array $ | attributes | ||
) |
Create data item for use in stack
string | $content | |
array | $attributes |
Definition at line 393 of file HeadStyle.php.
headStyle | ( | $ | content = null , |
$ | placement = 'APPEND' , |
||
$ | attributes = array() |
||
) |
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 |
Definition at line 99 of file HeadStyle.php.
itemToString | ( | stdClass $ | item, |
$ | indent | ||
) |
Convert content and attributes into valid style tag
stdClass | $item | Item to render |
string | $indent | Indentation to use |
Definition at line 310 of file HeadStyle.php.
offsetSet | ( | $ | index, |
$ | value | ||
) |
Override offsetSet to enforce style creation
string | int | $index | |
mixed | $value |
Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.
Definition at line 215 of file HeadStyle.php.
prepend | ( | $ | value ) |
Override prepend to enforce style creation
mixed | $value |
Definition at line 231 of file HeadStyle.php.
set | ( | $ | value ) |
Override set to enforce style creation
mixed | $value |
Definition at line 247 of file HeadStyle.php.
toString | ( | $ | indent = null ) |
Create string representation of placeholder
string | int | $indent |
Definition at line 366 of file HeadStyle.php.
$_mediaTypes [protected] |
array( 'all', 'aural', 'braille', 'handheld', 'print', 'projection', 'screen', 'tty', 'tv' )
Definition at line 53 of file HeadStyle.php.