Public Member Functions | Protected Member Functions | Protected Attributes

Zend_View_Helper_HeadStyle Class Reference

Inheritance diagram for Zend_View_Helper_HeadStyle:
Zend_View_Helper_Placeholder_Container_Standalone Zend_View_Helper_Abstract Zend_View_Helper_Interface

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

Detailed Description

Definition at line 35 of file HeadStyle.php.


Constructor & Destructor Documentation

__construct (  )

Constructor

Set separator to PHP_EOL.

Returns:
void

Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.

Definition at line 83 of file HeadStyle.php.


Member Function Documentation

__call ( method,
args 
)

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$method
array$args
Returns:
void
Exceptions:
Zend_View_ExceptionWhen 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

Parameters:
mixed$value
string$method
Returns:
boolean

Definition at line 180 of file HeadStyle.php.

append ( value )

Override append to enforce style creation

Parameters:
mixed$value
Returns:
void

Definition at line 198 of file HeadStyle.php.

captureEnd (  )

End capture action and store

Returns:
void

Definition at line 282 of file HeadStyle.php.

captureStart ( type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND,
attrs = null 
)

Start capture action

Parameters:
mixed$captureType
string$typeOrAttrs
Returns:
void

Definition at line 264 of file HeadStyle.php.

createData ( content,
array $  attributes 
)

Create data item for use in stack

Parameters:
string$content
array$attributes
Returns:
stdClass

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

Parameters:
string$contentStylesheet contents
string$placementAppend, prepend, or set
string | array$attributesOptional attributes to utilize
Returns:
Zend_View_Helper_HeadStyle

Definition at line 99 of file HeadStyle.php.

itemToString ( stdClass $  item,
indent 
)

Convert content and attributes into valid style tag

Parameters:
stdClass$itemItem to render
string$indentIndentation to use
Returns:
string

Definition at line 310 of file HeadStyle.php.

offsetSet ( index,
value 
)

Override offsetSet to enforce style creation

Parameters:
string | int$index
mixed$value
Returns:
void

Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.

Definition at line 215 of file HeadStyle.php.

prepend ( value )

Override prepend to enforce style creation

Parameters:
mixed$value
Returns:
void

Definition at line 231 of file HeadStyle.php.

set ( value )

Override set to enforce style creation

Parameters:
mixed$value
Returns:
void

Definition at line 247 of file HeadStyle.php.

toString ( indent = null )

Create string representation of placeholder

Parameters:
string | int$indent
Returns:
string

Definition at line 366 of file HeadStyle.php.


Field Documentation

$_mediaTypes [protected]
Initial value:
 array(
        'all', 'aural', 'braille', 'handheld', 'print',
        'projection', 'screen', 'tty', 'tv'
    )

Definition at line 53 of file HeadStyle.php.


The documentation for this class was generated from the following file: