Zend_Layout_View_Helper_HeadLink

see Creates the following virtual methods:
package Default
inherited_from \Zend\View\Helper\Placeholder\Container\AbstractStandalone

 Methods

Overload method access

__call(mixed $method, mixed $args) : void

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()
inherited_from \Zend\View\Helper\Placeholder\Container\AbstractStandalone::__call()

Parameters

$method

mixed

$args

mixed

Exceptions

\Zend\View\Exception\BadMethodCallException

Overload

__call(string $method, array $args) : mixed
Inherited

Proxy to container methods

Parameters

$method

string

$args

array

Exceptions

\Zend\View\Exception\BadMethodCallException

Returns

mixed

Constructor

__construct() 

Use PHP_EOL as separator

inherited_from \Zend\View\Helper\Placeholder\Container\AbstractStandalone::__construct()

Constructor

__construct() 
Inherited

Overloading: retrieve property

__get(string $key) : mixed
Inherited

Parameters

$key

string

Returns

mixed

headLink() - View Helper Method

__invoke(array $attributes = null, string $placement = \Zend\View\Helper\Placeholder\Container\AbstractContainer::APPEND) : \Zend\View\Helper\HeadLink

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

Parameters

$attributes

array

$placement

string

Returns

\Zend\View\Helper\HeadLink

Overloading: check if property is set

__isset(string $key) : boolean
Inherited

Parameters

$key

string

Returns

boolean

Overloading: set property value

__set(string $key, mixed $value) : void
Inherited

Parameters

$key

string

$value

mixed

Cast to string representation

__toString() : string
Inherited

Returns

string

Overloading: unset property

__unset(string $key) : void
Inherited

Parameters

$key

string

append()

append(array $value) : void

Parameters

$value

array

Exceptions

\Zend\View\Exception\InvalidArgumentException

)

appendAlternate() : 
magic
method )

Returns

)

appendStylesheet() : 
magic
method )

Returns

Countable

count() : integer
Inherited

Returns

integer

Create data item for stack

createData(array $attributes) : \stdClass

Parameters

$attributes

array

Returns

\stdClass

Create item for alternate link item

createDataAlternate(array $args) : \stdClass

Parameters

$args

array

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\stdClass

Create item for a prev relationship (mainly used for pagination)

createDataNext(array $args) : \stdClass

Parameters

$args

array

Returns

\stdClass

Create item for a prev relationship (mainly used for pagination)

createDataPrev(array $args) : \stdClass

Parameters

$args

array

Returns

\stdClass

Create item for stylesheet link item

createDataStylesheet(array $args) : \stdClass | false

Parameters

$args

array

Returns

\stdClassfalseReturns false if stylesheet is a duplicate

Delete a container

deleteContainer() : boolean
Inherited

Returns

boolean

Return whether autoEscaping is enabled or disabled

getAutoEscape() 
Inherited

return bool

Retrieve placeholder container

getContainer() : \Zend\View\Helper\Placeholder\Container\AbstractContainer
Inherited

Returns

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Retrieve the container class

getContainerClass() : string
Inherited

Returns

string

Get Escaper instance

getEscaper(string|null $enc = 'UTF-8') : mixed
Inherited

Lazy-loads one if none available

Parameters

$enc

stringnull

Encoding to use

Returns

mixed

IteratorAggregate: get Iterator

getIterator() : \Iterator
Inherited

Returns

\Iterator

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited
inherited_from \Zend\View\Helper\HelperInterface::getView()

Returns

null\Zend\View\Renderer\RendererInterface

Create HTML link element from data item

itemToString(\stdClass $item) : string

Parameters

$item

\stdClass

Returns

string

ArrayAccess: offsetExists

offsetExists(string|integer $offset) : boolean
Inherited

Parameters

$offset

stringinteger

Returns

boolean

ArrayAccess: offsetGet

offsetGet(string|integer $offset) : mixed
Inherited

Parameters

$offset

stringinteger

Returns

mixed

offsetSet()

offsetSet(string|integer $index, array $value) : void
inherited_from \Zend\View\Helper\Placeholder\Container\AbstractStandalone::offsetSet()

Parameters

$index

stringinteger

$value

array

Exceptions

\Zend\View\Exception\InvalidArgumentException

ArrayAccess: offsetSet

offsetSet(string|integer $offset, mixed $value) : void
Inherited

Parameters

$offset

stringinteger

$value

mixed

)

offsetSetAlternate() : 
magic
method )

Returns

)

offsetSetStylesheet() : 
magic
method )

Returns

ArrayAccess: offsetUnset

offsetUnset(string|integer $offset) : void
Inherited

Parameters

$offset

stringinteger

prepend()

prepend(array $value) : \Zend\View\Helper\HeadLink

Parameters

$value

array

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Helper\HeadLink

)

prependAlternate() : 
magic
method )

Returns

)

prependStylesheet() : 
magic
method )

Returns

set()

set(array $value) : \Zend\View\Helper\HeadLink

Parameters

$value

array

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

\Zend\View\Helper\HeadLink

)

setAlternate() : 
magic
method )

Returns

Set whether or not auto escaping should be used

setAutoEscape(boolean $autoEscape = true) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone
Inherited

Parameters

$autoEscape

boolean

whether or not to auto escape output

Returns

\Zend\View\Helper\Placeholder\Container\AbstractStandalone

Set container on which to operate

setContainer(\Zend\View\Helper\Placeholder\Container\AbstractContainer $container) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone
Inherited

Parameters

$container

\Zend\View\Helper\Placeholder\Container\AbstractContainer

Returns

\Zend\View\Helper\Placeholder\Container\AbstractStandalone

Set the container class to use

setContainerClass(string $name) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone
Inherited

Parameters

$name

string

Exceptions

\Zend\View\Exception\InvalidArgumentException
\Zend\View\Exception\DomainException

Returns

\Zend\View\Helper\Placeholder\Container\AbstractStandalone

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) : \Zend\View\Helper\Placeholder\Container\AbstractStandalone
Inherited

Parameters

$escaper

\Zend\Escaper\Escaper

Returns

\Zend\View\Helper\Placeholder\Container\AbstractStandalone

)

setStylesheet() : 
magic
method )

Returns

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \Zend\View\Helper\HelperInterface::setView()

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

Render link elements as string

toString(string|integer $indent = null) : string
inherited_from \Zend\View\Helper\Placeholder\Container\AbstractStandalone::toString()

Parameters

$indent

stringinteger

Returns

string

String representation

toString() : string
Inherited

Returns

string

Escape a string

escape(string $string) : string
Inherited

Parameters

$string

string

Returns

string

Is the linked stylesheet a duplicate?

isDuplicateStylesheet(string $uri) : boolean

Parameters

$uri

string

Returns

boolean

Check if value is valid

isValid(mixed $value) : boolean

Parameters

$value

mixed

Returns

boolean

 Properties

 

Flag whether to automatically escape output, must also be enforced in the child class if __toString/toString is overridden

$autoEscape : boolean

Default

true
 

$container

$container : \Zend\View\Helper\Placeholder\Container\AbstractContainer

Default

 

Default container class

$containerClass : string

Default

'Zend\View\Helper\Placeholder\Container'
 

$escapers

$escapers : array<mixed,\Zend\Escaper\Escaper>

Default

array()
 

Allowed attributes

$itemKeys : array<mixed,string>

Default

array('charset', 'href', 'hreflang', 'id', 'media', 'rel', 'rev', 'sizes', 'type', 'title', 'extras')
 

Registry key for placeholder

$regKey : string

Default

'Zend_View_Helper_HeadLink'
 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null