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

Public Member Functions

 __construct ()
 Constructor.
 
 headLink (array $attributes=null, $placement=Zend_View_Helper_Placeholder_Container_Abstract::APPEND)
 headLink() - View Helper Method
 
 __call ($method, $args)
 Overload method access.
 
 append ($value)
 append()
 
 offsetSet ($index, $value)
 offsetSet()
 
 prepend ($value)
 prepend()
 
 set ($value)
 set()
 
 itemToString (stdClass $item)
 Create HTML link element from data item.
 
 toString ($indent=null)
 Render link elements as string.
 
 createData (array $attributes)
 Create data item for stack.
 
 createDataStylesheet (array $args)
 Create item for stylesheet link item.
 
 createDataAlternate (array $args)
 Create item for alternate link item.
 
- 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)
 Check if value is valid.
 
 _isDuplicateStylesheet ($uri)
 Is the linked stylesheet a duplicate?
 
 _applyExtras ($attributes)
 Apply any overrides specified in the 'extras' array.
 
- Protected Member Functions inherited from Zend_View_Helper_Placeholder_Container_Standalone
 _escape ($string)
 Escape a string.
 

Protected Attributes

 $_itemKeys
 
 $_regKey = 'Zend_View_Helper_HeadLink'
 
- 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.

Use PHP_EOL as separator

Returns
void

Member Function Documentation

__call (   $method,
  $args 
)

Overload method access.

Creates the following virtual methods:

  • appendStylesheet($href, $media, $conditionalStylesheet, $extras)
  • offsetSetStylesheet($index, $href, $media, $conditionalStylesheet, $extras)
  • prependStylesheet($href, $media, $conditionalStylesheet, $extras)
  • setStylesheet($href, $media, $conditionalStylesheet, $extras)
  • appendAlternate($href, $type, $title, $extras)
  • offsetSetAlternate($index, $href, $type, $title, $extras)
  • prependAlternate($href, $type, $title, $extras)
  • setAlternate($href, $type, $title, $extras)

Items that may be added in the future:

  • Navigation? need to find docs on this
    • public function appendStart()
    • public function appendContents()
    • public function appendPrev()
    • public function appendNext()
    • public function appendIndex()
    • public function appendEnd()
    • public function appendGlossary()
    • public function appendAppendix()
    • public function appendHelp()
    • public function appendBookmark()
  • Other?
    • public function appendCopyright()
    • public function appendChapter()
    • public function appendSection()
    • public function appendSubsection()
Parameters
mixed$method
mixed$args
Returns
void
_applyExtras (   $attributes)
protected

Apply any overrides specified in the 'extras' array.

Parameters
array$attributes
Returns
array
_isDuplicateStylesheet (   $uri)
protected

Is the linked stylesheet a duplicate?

Parameters
string$uri
Returns
bool
_isValid (   $value)
protected

Check if value is valid.

Parameters
mixed$value
Returns
boolean
append (   $value)

append()

Parameters
array$value
Returns
void
createData ( array  $attributes)

Create data item for stack.

Parameters
array$attributes
Returns
stdClass
createDataAlternate ( array  $args)

Create item for alternate link item.

Parameters
array$args
Returns
stdClass
createDataStylesheet ( array  $args)

Create item for stylesheet link item.

Parameters
array$args
Returns
stdClass|false Returns fals if stylesheet is a duplicate
headLink ( array  $attributes = null,
  $placement = Zend_View_Helper_Placeholder_Container_Abstract::APPEND 
)

headLink() - View Helper Method

Returns current object instance. Optionally, allows passing array of values to build link.

Returns
Zend_View_Helper_HeadLink
itemToString ( stdClass  $item)

Create HTML link element from data item.

Parameters
stdClass$item
Returns
string
offsetSet (   $index,
  $value 
)

offsetSet()

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

prepend()

Parameters
array$value
Returns
Zend_Layout_ViewHelper_HeadLink
set (   $value)

set()

Parameters
array$value
Returns
Zend_Layout_ViewHelper_HeadLink
toString (   $indent = null)

Render link elements as string.

Parameters
string | int$indent
Returns
string

Member Data Documentation

$_itemKeys
protected
Initial value:
= array(
'charset',
'href',
'hreflang',
'id',
'media',
'rel',
'rev',
'type',
'title',
'extras',
'sizes',
)
$_regKey = 'Zend_View_Helper_HeadLink'
protected