Class HeadTitle

Summary

Fully Qualified Name: Laminas\View\Helper\HeadTitle
Extends: AbstractStandalone

Description

Helper for setting and retrieving title element for HTML head.

Duck-types against Laminas\I18n\Translator\TranslatorAwareInterface.

Methods

Name Description Defined By
__call() Overload AbstractStandalone
__construct() Constructor AbstractStandalone
__get() Overloading: retrieve property AbstractStandalone
__invoke() Retrieve placeholder for title element and optionally set state HeadTitle
__isset() Overloading: check if property is set AbstractStandalone
__set() Overloading: set property value AbstractStandalone
__toString() Cast to string representation AbstractStandalone
__unset() Overloading: unset property AbstractStandalone
count() Countable AbstractStandalone
deleteContainer() Delete a container AbstractStandalone
getAutoEscape() Return whether autoEscaping is enabled or disabled AbstractStandalone
getContainer() Retrieve placeholder container AbstractStandalone
getContainerClass() Retrieve the container class AbstractStandalone
getDefaultAttachOrder() Get the default attach order, if any. HeadTitle
getEscaper() Get Escaper instance AbstractStandalone
getIterator() IteratorAggregate: get Iterator AbstractStandalone
getView() Get the view object AbstractHelper
offsetExists() ArrayAccess: offsetExists AbstractStandalone
offsetGet() ArrayAccess: offsetGet AbstractStandalone
offsetSet() ArrayAccess: offsetSet AbstractStandalone
offsetUnset() ArrayAccess: offsetUnset AbstractStandalone
renderTitle() Render title string HeadTitle
setAutoEscape() Set whether or not auto escaping should be used AbstractStandalone
setContainer() Set container on which to operate AbstractStandalone
setContainerClass() Set the container class to use AbstractStandalone
setDefaultAttachOrder() Set a default order to add titles HeadTitle
setEscaper() Set Escaper instance AbstractStandalone
setView() Set the View object AbstractHelper
toString() Render title (wrapped by title tag) HeadTitle

Method Details

__call()

Overload

Proxy to container methods

Parameter Name Type Description
$method string
$args array

Returns: mixed

__construct()

Constructor

Returns:

__get()

Overloading: retrieve property

Parameter Name Type Description
$key string

Returns: mixed

__invoke()

Retrieve placeholder for title element and optionally set state

Parameter Name Type Description
$title string
$setType string

Returns: \HeadTitle

__isset()

Overloading: check if property is set

Parameter Name Type Description
$key string

Returns: bool

__set()

Overloading: set property value

Parameter Name Type Description
$key string
$value mixed

Returns: void

__toString()

Cast to string representation

Returns: string

__unset()

Overloading: unset property

Parameter Name Type Description
$key string

Returns: void

count()

Countable

Returns: int

deleteContainer()

Delete a container

Returns: bool

getAutoEscape()

Return whether autoEscaping is enabled or disabled

return bool

Returns:

getContainer()

Retrieve placeholder container

Returns: \AbstractContainer

getContainerClass()

Retrieve the container class

Returns: string

getDefaultAttachOrder()

Get the default attach order, if any.

Returns: mixed

getEscaper()

Get Escaper instance

Lazy-loads one if none available

Parameter Name Type Description
$enc string|null Encoding

Returns: mixed

getIterator()

IteratorAggregate: get Iterator

Returns: \Iterator

getView()

Get the view object

Returns: null|\Renderer

offsetExists()

ArrayAccess: offsetExists

Parameter Name Type Description
$offset string|int

Returns: bool

offsetGet()

ArrayAccess: offsetGet

Parameter Name Type Description
$offset string|int

Returns: mixed

offsetSet()

ArrayAccess: offsetSet

Parameter Name Type Description
$offset string|int
$value mixed

Returns: void

offsetUnset()

ArrayAccess: offsetUnset

Parameter Name Type Description
$offset string|int

Returns: void

renderTitle()

Render title string

Returns: string

setAutoEscape()

Set whether or not auto escaping should be used

Parameter Name Type Description
$autoEscape bool whether

Returns: \AbstractStandalone

setContainer()

Set container on which to operate

Parameter Name Type Description
$container \AbstractContainer

Returns: \AbstractStandalone

setContainerClass()

Set the container class to use

Parameter Name Type Description
$name string

Returns: \Laminas\View\Helper\Placeholder\Container\AbstractStandalone

setDefaultAttachOrder()

Set a default order to add titles

Parameter Name Type Description
$setType string

Returns: \HeadTitle

setEscaper()

Set Escaper instance

Parameter Name Type Description
$escaper \Escaper

Returns: \AbstractStandalone

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

toString()

Render title (wrapped by title tag)

Parameter Name Type Description
$indent string|null

Returns: string

Top