helpers.php
Table of Contents
- render() : mixed
- render($component) is an alias to $component->render() but render($component) generates a notice when the $component isn't a component compatible object instead of an fatal error.
- is_component() : bool
- Check if $component is compatible with the Component interface via ducktyping.
- javascript_once() : mixed
- Genereer een <script src=""> tag, mits deze al een keer gegenereerd is.
Functions
render()
render($component) is an alias to $component->render() but render($component) generates a notice when the $component isn't a component compatible object instead of an fatal error.
render(mixed $component) : mixed
Parameters
- $component : mixed
Return values
mixed —is_component()
Check if $component is compatible with the Component interface via ducktyping.
is_component([Component &$component = '__UNDEFINED__' ]) : bool
Parameters
- $component : Component = '__UNDEFINED__'
Return values
bool —javascript_once()
Genereer een <script src=""> tag, mits deze al een keer gegenereerd is.
javascript_once(string $src[, string $identifier = null ]) : mixed
Parameters
- $src : string
- $identifier : string = null