Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_View_Helper_HeadStyle Class Reference

Public Member Functions

 __construct ()
 Constructor.
 
 headStyle ($content=null, $placement= 'APPEND', $attributes=array())
 Return headStyle object.
 
 __call ($method, $args)
 Overload method calls.
 
 append ($value)
 Override append to enforce style creation.
 
 offsetSet ($index, $value)
 Override offsetSet to enforce style creation.
 
 prepend ($value)
 Override prepend to enforce style creation.
 
 set ($value)
 Override set to enforce style creation.
 
 captureStart ($type=Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $attrs=null)
 Start capture action.
 
 captureEnd ()
 End capture action and store.
 
 itemToString (stdClass $item, $indent)
 Convert content and attributes into valid style tag.
 
 toString ($indent=null)
 Create string representation of placeholder.
 
 createData ($content, array $attributes)
 Create data item for use in stack.
 
- Public Member Functions inherited from Zend_View_Helper_Placeholder_Container_Standalone
 __construct ()
 Constructor.
 
 getRegistry ()
 Retrieve registry.
 
 setRegistry (Zend_View_Helper_Placeholder_Registry $registry)
 Set registry object.
 
 setAutoEscape ($autoEscape=true)
 Set whether or not auto escaping should be used.
 
 getAutoEscape ()
 Return whether autoEscaping is enabled or disabled.
 
 setContainer (Zend_View_Helper_Placeholder_Container_Abstract $container)
 Set container on which to operate.
 
 getContainer ()
 Retrieve placeholder container.
 
 __set ($key, $value)
 Overloading: set property value.
 
 __get ($key)
 Overloading: retrieve property.
 
 __isset ($key)
 Overloading: check if property is set.
 
 __unset ($key)
 Overloading: unset property.
 
 __call ($method, $args)
 Overload.
 
 toString ()
 String representation.
 
 __toString ()
 Cast to string representation.
 
 count ()
 Countable.
 
 offsetExists ($offset)
 ArrayAccess: offsetExists.
 
 offsetGet ($offset)
 ArrayAccess: offsetGet.
 
 offsetSet ($offset, $value)
 ArrayAccess: offsetSet.
 
 offsetUnset ($offset)
 ArrayAccess: offsetUnset.
 
 getIterator ()
 IteratorAggregate: get Iterator.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Member Functions

 _isValid ($value)
 Determine if a value is a valid style tag.
 
- Protected Member Functions inherited from Zend_View_Helper_Placeholder_Container_Standalone
 _escape ($string)
 Escape a string.
 

Protected Attributes

 $_regKey = 'Zend_View_Helper_HeadStyle'
 
 $_optionalAttributes = array('lang', 'title', 'media', 'dir')
 
 $_mediaTypes
 
 $_captureAttrs = null
 
 $_captureLock
 
 $_captureType
 
- Protected Attributes inherited from Zend_View_Helper_Placeholder_Container_Standalone
 $_container
 
 $_registry
 
 $_regKey
 
 $_autoEscape = true
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_Abstract
 $view = null
 

Constructor & Destructor Documentation

__construct ( )

Constructor.

Set separator to PHP_EOL.

Returns
void

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
_isValid (   $value)
protected

Determine if a value is a valid style tag.

Parameters
mixed$value
string$method
Returns
boolean
append (   $value)

Override append to enforce style creation.

Parameters
mixed$value
Returns
void
captureEnd ( )

End capture action and store.

Returns
void
captureStart (   $type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND,
  $attrs = null 
)

Start capture action.

Parameters
mixed$captureType
string$typeOrAttrs
Returns
void
createData (   $content,
array  $attributes 
)

Create data item for use in stack.

Parameters
string$content
array$attributes
Returns
stdClass
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
itemToString ( stdClass  $item,
  $indent 
)

Convert content and attributes into valid style tag.

Parameters
stdClass$itemItem to render
string$indentIndentation to use
Returns
string
offsetSet (   $index,
  $value 
)

Override offsetSet to enforce style creation.

Parameters
string | int$index
mixed$value
Returns
void
prepend (   $value)

Override prepend to enforce style creation.

Parameters
mixed$value
Returns
void
set (   $value)

Override set to enforce style creation.

Parameters
mixed$value
Returns
void
toString (   $indent = null)

Create string representation of placeholder.

Parameters
string | int$indent
Returns
string

Member Data Documentation

$_captureAttrs = null
protected
$_captureLock
protected
$_captureType
protected
$_mediaTypes
protected
Initial value:
= array(
'all', 'aural', 'braille', 'handheld', 'print',
'projection', 'screen', 'tty', 'tv'
)
$_optionalAttributes = array('lang', 'title', 'media', 'dir')
protected
$_regKey = 'Zend_View_Helper_HeadStyle'
protected