PHP Class Pagekit\View\Helper\DataHelper

Inheritance: implements Pagekit\View\Helper\HelperInterface
Afficher le fichier Open project: pagekit/pagekit

Protected Properties

Свойство Type Description
$data array
$encodingOptions integer 15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT

Méthodes publiques

Méthode Description
__invoke ( $name, $value ) Add shortcut.
add ( string $name, mixed $value ) : self Adds a data value to an existing key name.
get ( null | string $name = null ) : array Gets the data values or a value by name.
getName ( )
register ( View $view )
render ( ) : string Renders the data tags.

Method Details

__invoke() public méthode

Add shortcut.
See also: add()
public __invoke ( $name, $value )

add() public méthode

Adds a data value to an existing key name.
public add ( string $name, mixed $value ) : self
$name string
$value mixed
Résultat self

get() public méthode

Gets the data values or a value by name.
public get ( null | string $name = null ) : array
$name null | string
Résultat array

getName() public méthode

public getName ( )

register() public méthode

public register ( View $view )
$view Pagekit\View\View

render() public méthode

Renders the data tags.
public render ( ) : string
Résultat string

Property Details

$data protected_oe property

protected array $data
Résultat array

$encodingOptions protected_oe property

15 === JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT
protected int $encodingOptions
Résultat integer