Public Member Functions | Protected Member Functions | Protected Attributes

Zend_View_Helper_HeadLink Class Reference

Inheritance diagram for Zend_View_Helper_HeadLink:
Zend_View_Helper_Placeholder_Container_Standalone Zend_View_Helper_Abstract Zend_View_Helper_Interface

Public Member Functions

 __construct ()
 headLink (array $attributes=null, $placement=Zend_View_Helper_Placeholder_Container_Abstract::APPEND)
 __call ($method, $args)
 append ($value)
 offsetSet ($index, $value)
 prepend ($value)
 set ($value)
 itemToString (stdClass $item)
 toString ($indent=null)
 createData (array $attributes)
 createDataStylesheet (array $args)
 createDataAlternate (array $args)

Protected Member Functions

 _isValid ($value)
 _isDuplicateStylesheet ($uri)

Protected Attributes

 $_itemKeys = array('charset', 'href', 'hreflang', 'media', 'rel', 'rev', 'type', 'title', 'extras')
 $_regKey = 'Zend_View_Helper_HeadLink'

Detailed Description

Definition at line 36 of file HeadLink.php.


Constructor & Destructor Documentation

__construct (  )

Constructor

Use PHP_EOL as separator

Returns:
void

Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.

Definition at line 57 of file HeadLink.php.


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

Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.

Definition at line 126 of file HeadLink.php.

_isDuplicateStylesheet ( uri ) [protected]

Is the linked stylesheet a duplicate?

Parameters:
string$uri
Returns:
bool

Definition at line 381 of file HeadLink.php.

_isValid ( value ) [protected]

Check if value is valid

Parameters:
mixed$value
Returns:
boolean

Definition at line 173 of file HeadLink.php.

append ( value )

append()

Parameters:
array$value
Returns:
void

Definition at line 195 of file HeadLink.php.

createData ( array $  attributes )

Create data item for stack

Parameters:
array$attributes
Returns:
stdClass

Definition at line 325 of file HeadLink.php.

createDataAlternate ( array $  args )

Create item for alternate link item

Parameters:
array$args
Returns:
stdClass

Definition at line 397 of file HeadLink.php.

createDataStylesheet ( array $  args )

Create item for stylesheet link item

Parameters:
array$args
Returns:
stdClass|false Returns fals if stylesheet is a duplicate

Definition at line 337 of file HeadLink.php.

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

Definition at line 71 of file HeadLink.php.

itemToString ( stdClass $  item )

Create HTML link element from data item

Parameters:
stdClass$item
Returns:
string

Definition at line 261 of file HeadLink.php.

offsetSet ( index,
value 
)

offsetSet()

Parameters:
string | int$index
array$value
Returns:
void

Reimplemented from Zend_View_Helper_Placeholder_Container_Standalone.

Definition at line 212 of file HeadLink.php.

prepend ( value )

prepend()

Parameters:
array$value
Returns:
Zend_Layout_ViewHelper_HeadLink

Definition at line 228 of file HeadLink.php.

set ( value )

set()

Parameters:
array$value
Returns:
Zend_Layout_ViewHelper_HeadLink

Definition at line 244 of file HeadLink.php.

toString ( indent = null )

Render link elements as string

Parameters:
string | int$indent
Returns:
string

Definition at line 304 of file HeadLink.php.


The documentation for this class was generated from the following file: