Class Zend_View_Helper_HeadStyle

Description

Helper for setting and retrieving stylesheets

Located in /View/Helper/HeadStyle.php (line 35)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_Placeholder_Container_Standalone
      |
      --Zend_View_Helper_HeadStyle
Variable Summary
Method Summary
 void __construct ()
 void append (mixed $value)
 void captureEnd ()
 void captureStart ([ $type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND], [ $attrs = null], mixed $captureType, string $typeOrAttrs)
 stdClass createData (string $content,  $attributes)
 Zend_View_Helper_HeadStyle headStyle ([string $content = null], [string $placement = 'APPEND'], [string|array $attributes = array()])
 string itemToString ( $item, string $indent)
 void offsetSet (string|int $index, mixed $value)
 void prepend (mixed $value)
 void set (mixed $value)
 string toString ([string|int $indent = null])
 boolean _isValid (mixed $value, string $method)
 void __call (string $method, array $args)
Variables
string $_captureAttrs = null (line 62)

Capture type and/or attributes (used for hinting during capture)

  • access: protected
bool $_captureLock (line 68)

Capture lock

  • access: protected
string $_captureType (line 74)

Capture type (append, prepend, set)

  • access: protected
array $_mediaTypes = array(
'all', 'aural', 'braille', 'handheld', 'print',
'projection', 'screen', 'tty', 'tv'
)
(line 53)

Allowed media types

  • access: protected
array $_optionalAttributes = array('lang', 'title', 'media', 'dir') (line 47)

Allowed optional attributes

  • access: protected
string $_regKey = 'Zend_View_Helper_HeadStyle' (line 41)

Registry key for placeholder

  • access: protected

Redefinition of:
Zend_View_Helper_Placeholder_Container_Standalone::$_regKey
Registry key under which container registers itself

Inherited Variables

Inherited from Zend_View_Helper_Placeholder_Container_Standalone

Zend_View_Helper_Placeholder_Container_Standalone::$_autoEscape
Zend_View_Helper_Placeholder_Container_Standalone::$_container
Zend_View_Helper_Placeholder_Container_Standalone::$_registry

Inherited from Zend_View_Helper_Abstract

Zend_View_Helper_Abstract::$view
Methods
Constructor __construct (line 83)

Constructor

Set separator to PHP_EOL.

  • access: public
void __construct ()

Redefinition of:
Zend_View_Helper_Placeholder_Container_Standalone::__construct()
Constructor
append (line 200)

Override append to enforce style creation

  • access: public
void append (mixed $value)
  • mixed $value
captureEnd (line 294)

End capture action and store

  • access: public
void captureEnd ()
captureStart (line 274)

Start capture action

  • access: public
void captureStart ([ $type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND], [ $attrs = null], mixed $captureType, string $typeOrAttrs)
  • mixed $captureType
  • string $typeOrAttrs
  • $type
  • $attrs
createData (line 405)

Create data item for use in stack

  • access: public
stdClass createData (string $content,  $attributes)
  • string $content
  • array $attributes
headStyle (line 99)

Return headStyle object

Returns headStyle helper object; optionally, allows specifying

  • access: public
Zend_View_Helper_HeadStyle headStyle ([string $content = null], [string $placement = 'APPEND'], [string|array $attributes = array()])
  • string $content: Stylesheet contents
  • string $placement: Append, prepend, or set
  • string|array $attributes: Optional attributes to utilize
itemToString (line 322)

Convert content and attributes into valid style tag

  • access: public
string itemToString ( $item, string $indent)
  • stdClass $item: Item to render
  • string $indent: Indentation to use
offsetSet (line 219)

Override offsetSet to enforce style creation

  • access: public
void offsetSet (string|int $index, mixed $value)
  • string|int $index
  • mixed $value

Redefinition of:
Zend_View_Helper_Placeholder_Container_Standalone::offsetSet()
ArrayAccess: offsetSet
prepend (line 237)

Override prepend to enforce style creation

  • access: public
void prepend (mixed $value)
  • mixed $value
set (line 255)

Override set to enforce style creation

  • access: public
void set (mixed $value)
  • mixed $value
toString (line 378)

Create string representation of placeholder

  • access: public
string toString ([string|int $indent = null])
  • string|int $indent

Redefinition of:
Zend_View_Helper_Placeholder_Container_Standalone::toString()
String representation
_isValid (line 182)

Determine if a value is a valid style tag

  • access: protected
boolean _isValid (mixed $value, string $method)
  • mixed $value
  • string $method
__call (line 134)

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

  • throws: Zend_View_Exception When no $content provided or invalid method
  • access: public
void __call (string $method, array $args)
  • string $method
  • array $args

Redefinition of:
Zend_View_Helper_Placeholder_Container_Standalone::__call()
Overload

Inherited Methods

Inherited From Zend_View_Helper_Placeholder_Container_Standalone

 Zend_View_Helper_Placeholder_Container_Standalone::__construct()
 Zend_View_Helper_Placeholder_Container_Standalone::count()
 Zend_View_Helper_Placeholder_Container_Standalone::getAutoEscape()
 Zend_View_Helper_Placeholder_Container_Standalone::getContainer()
 Zend_View_Helper_Placeholder_Container_Standalone::getIterator()
 Zend_View_Helper_Placeholder_Container_Standalone::getRegistry()
 Zend_View_Helper_Placeholder_Container_Standalone::offsetExists()
 Zend_View_Helper_Placeholder_Container_Standalone::offsetGet()
 Zend_View_Helper_Placeholder_Container_Standalone::offsetSet()
 Zend_View_Helper_Placeholder_Container_Standalone::offsetUnset()
 Zend_View_Helper_Placeholder_Container_Standalone::setAutoEscape()
 Zend_View_Helper_Placeholder_Container_Standalone::setContainer()
 Zend_View_Helper_Placeholder_Container_Standalone::setRegistry()
 Zend_View_Helper_Placeholder_Container_Standalone::toString()
 Zend_View_Helper_Placeholder_Container_Standalone::_escape()
 Zend_View_Helper_Placeholder_Container_Standalone::__call()
 Zend_View_Helper_Placeholder_Container_Standalone::__get()
 Zend_View_Helper_Placeholder_Container_Standalone::__isset()
 Zend_View_Helper_Placeholder_Container_Standalone::__set()
 Zend_View_Helper_Placeholder_Container_Standalone::__toString()
 Zend_View_Helper_Placeholder_Container_Standalone::__unset()

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()

Documentation generated on Mon, 21 Jun 2010 15:26:17 -0400 by phpDocumentor 1.4.3