Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HeadMeta Class Reference

Zend. More...

Public Member Functions

 __construct ()
 Constructor.
 
 __invoke ($content=null, $keyValue=null, $keyType= 'name', $modifiers=[], $placement=Placeholder\Container\AbstractContainer::APPEND)
 Retrieve object instance; optionally add meta tag.
 
 __call ($method, $args)
 Overload method access.
 
 toString ($indent=null)
 Render placeholder as string.
 
 createData ($type, $typeValue, $content, array $modifiers)
 Create data item for inserting into stack.
 
 itemToString (stdClass $item)
 Build meta HTML string.
 
 append ($value)
 Append.
 
 offsetSet ($index, $value)
 OffsetSet.
 
 offsetUnset ($index)
 OffsetUnset.
 
 prepend ($value)
 Prepend.
 
 set ($value)
 Set.
 
 setCharset ($charset)
 Create an HTML5-style meta charset tag.
 
- Public Member Functions inherited from AbstractStandalone
 __construct ()
 Constructor.
 
 __call ($method, $args)
 Overload.
 
 __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.
 
 __toString ()
 Cast to string representation.
 
 toString ()
 String representation.
 
 setAutoEscape ($autoEscape=true)
 Set whether or not auto escaping should be used.
 
 getAutoEscape ()
 Return whether autoEscaping is enabled or disabled.
 
 setContainer (AbstractContainer $container)
 Set container on which to operate.
 
 getContainer ()
 Retrieve placeholder container.
 
 deleteContainer ()
 Delete a container.
 
 setContainerClass ($name)
 Set the container class to use.
 
 getContainerClass ()
 Retrieve the container class.
 
 setEscaper (Escaper $escaper)
 Set Escaper instance.
 
 getEscaper ($enc= 'UTF-8')
 Get Escaper instance.
 
 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 AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Member Functions

 normalizeType ($type)
 Normalize type attribute of meta.
 
 isValid ($item)
 Determine if item is valid.
 
- Protected Member Functions inherited from AbstractStandalone
 escape ($string)
 Escape a string.
 

Protected Attributes

 $typeKeys = ['name', 'http-equiv', 'charset', 'property', 'itemprop']
 
 $requiredKeys = ['content']
 
 $modifierKeys = ['lang', 'scheme']
 
 $regKey = 'Zend_View_Helper_HeadMeta'
 
- Protected Attributes inherited from AbstractStandalone
 $autoEscape = true
 
 $container
 
 $containerClass = 'Zend\View\Helper\Placeholder\Container'
 
 $escapers = []
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

Zend.

See Also
http://www.w3.org/TR/xhtml1/dtds.html

Allows the following 'virtual' methods: HeadMeta appendName($keyValue, $content, $modifiers = array()) HeadMeta offsetGetName($index, $keyValue, $content, $modifiers = array()) HeadMeta prependName($keyValue, $content, $modifiers = array()) HeadMeta setName($keyValue, $content, $modifiers = array()) HeadMeta appendHttpEquiv($keyValue, $content, $modifiers = array()) HeadMeta offsetGetHttpEquiv($index, $keyValue, $content, $modifiers = array()) HeadMeta prependHttpEquiv($keyValue, $content, $modifiers = array()) HeadMeta setHttpEquiv($keyValue, $content, $modifiers = array()) HeadMeta appendProperty($keyValue, $content, $modifiers = array()) HeadMeta offsetGetProperty($index, $keyValue, $content, $modifiers = array()) HeadMeta prependProperty($keyValue, $content, $modifiers = array()) HeadMeta setProperty($keyValue, $content, $modifiers = array())

Constructor & Destructor Documentation

__construct ( )

Constructor.

Set separator to PHP_EOL

Member Function Documentation

__call (   $method,
  $args 
)

Overload method access.

Parameters
string$method
array$args
Exceptions
Exception\BadMethodCallException
Returns
HeadMeta
__invoke (   $content = null,
  $keyValue = null,
  $keyType = 'name',
  $modifiers = [],
  $placement = Placeholder\Container\AbstractContainer::APPEND 
)

Retrieve object instance; optionally add meta tag.

Parameters
string$content
string$keyValue
string$keyType
array$modifiers
string$placement
Returns
HeadMeta
append (   $value)

Append.

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

Create data item for inserting into stack.

Parameters
string$type
string$typeValue
string$content
array$modifiers
Returns
stdClass
isValid (   $item)
protected

Determine if item is valid.

Parameters
mixed$item
Returns
bool
itemToString ( stdClass  $item)

Build meta HTML string.

Parameters
stdClass$item
Exceptions
Exception\InvalidArgumentException
Returns
string
normalizeType (   $type)
protected

Normalize type attribute of meta.

Parameters
string$typetype in CamelCase
Exceptions
Exception\DomainException
Returns
string
offsetSet (   $index,
  $value 
)

OffsetSet.

Parameters
string | int$index
string$value
Exceptions
Exception\InvalidArgumentException
Returns
void
offsetUnset (   $index)

OffsetUnset.

Parameters
string | int$index
Exceptions
Exception\InvalidArgumentException
Returns
void
prepend (   $value)

Prepend.

Parameters
string$value
Exceptions
Exception\InvalidArgumentException
Returns
void
set (   $value)

Set.

Parameters
string$value
Exceptions
Exception\InvalidArgumentException
Returns
void
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
HeadMeta Provides a fluent interface
toString (   $indent = null)

Render placeholder as string.

Parameters
string | int$indent
Returns
string

Member Data Documentation

$modifierKeys = ['lang', 'scheme']
protected
$regKey = 'Zend_View_Helper_HeadMeta'
protected
$requiredKeys = ['content']
protected
$typeKeys = ['name', 'http-equiv', 'charset', 'property', 'itemprop']
protected