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

Public Member Functions

 __construct ()
 Constructor.
 
 headMeta ($content=null, $keyValue=null, $keyType= 'name', $modifiers=array(), $placement=Zend_View_Helper_Placeholder_Container_Abstract::APPEND)
 Retrieve object instance; optionally add meta tag.
 
 __call ($method, $args)
 Overload method access.
 
 setCharset ($charset)
 Create an HTML5-style meta charset tag.
 
 append ($value)
 Append.
 
 offsetSet ($index, $value)
 OffsetSet.
 
 offsetUnset ($index)
 OffsetUnset.
 
 prepend ($value)
 Prepend.
 
 set ($value)
 Set.
 
 itemToString (stdClass $item)
 Build meta HTML string.
 
 toString ($indent=null)
 Render placeholder as string.
 
 createData ($type, $typeValue, $content, array $modifiers)
 Create data item for inserting into 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

 _normalizeType ($type)
 
 _isValid ($item)
 Determine if item is valid.
 
- Protected Member Functions inherited from Zend_View_Helper_Placeholder_Container_Standalone
 _escape ($string)
 Escape a string.
 

Protected Attributes

 $_typeKeys = array('name', 'http-equiv', 'charset', 'property')
 
 $_requiredKeys = array('content')
 
 $_modifierKeys = array('lang', 'scheme')
 
 $_regKey = 'Zend_View_Helper_HeadMeta'
 
- 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 access.

Allows the following 'virtual' methods:

  • appendName($keyValue, $content, $modifiers = array())
  • offsetGetName($index, $keyValue, $content, $modifers = array())
  • prependName($keyValue, $content, $modifiers = array())
  • setName($keyValue, $content, $modifiers = array())
  • appendHttpEquiv($keyValue, $content, $modifiers = array())
  • offsetGetHttpEquiv($index, $keyValue, $content, $modifers = array())
  • prependHttpEquiv($keyValue, $content, $modifiers = array())
  • setHttpEquiv($keyValue, $content, $modifiers = array())
  • appendProperty($keyValue, $content, $modifiers = array())
  • offsetGetProperty($index, $keyValue, $content, $modifiers = array())
  • prependProperty($keyValue, $content, $modifiers = array())
  • setProperty($keyValue, $content, $modifiers = array())
Parameters
string$method
array$args
Returns
Zend_View_Helper_HeadMeta
_isValid (   $item)
protected

Determine if item is valid.

Parameters
mixed$item
Returns
boolean
_normalizeType (   $type)
protected
append (   $value)

Append.

Parameters
string$value
Returns
void
Exceptions
Zend_View_Exception
createData (   $type,
  $typeValue,
  $content,
array  $modifiers 
)

Create data item for inserting into stack.

Parameters
string$type
string$typeValue
string$content
array$modifiers
Returns
stdClass
headMeta (   $content = null,
  $keyValue = null,
  $keyType = 'name',
  $modifiers = array(),
  $placement = Zend_View_Helper_Placeholder_Container_Abstract::APPEND 
)

Retrieve object instance; optionally add meta tag.

Parameters
string$content
string$keyValue
string$keyType
array$modifiers
string$placement
Returns
Zend_View_Helper_HeadMeta
itemToString ( stdClass  $item)

Build meta HTML string.

Parameters
string$type
string$typeValue
string$content
array$modifiers
Returns
string
offsetSet (   $index,
  $value 
)

OffsetSet.

Parameters
string | int$index
string$value
Returns
void
Exceptions
Zend_View_Exception
offsetUnset (   $index)

OffsetUnset.

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

Prepend.

Parameters
string$value
Returns
void
Exceptions
Zend_View_Exception
set (   $value)

Set.

Parameters
string$value
Returns
void
Exceptions
Zend_View_Exception
setCharset (   $charset)

Create an HTML5-style meta charset tag.

Something like <meta charset="utf-8">

Not valid in a non-HTML5 doctype

Parameters
string$charset
Returns
Zend_View_Helper_HeadMeta Provides a fluent interface
toString (   $indent = null)

Render placeholder as string.

Parameters
string | int$indent
Returns
string

Member Data Documentation

$_modifierKeys = array('lang', 'scheme')
protected
$_regKey = 'Zend_View_Helper_HeadMeta'
protected
$_requiredKeys = array('content')
protected
$_typeKeys = array('name', 'http-equiv', 'charset', 'property')
protected