|
| | __construct ($helpers=null) |
| | Helper Collection constructor.
|
| |
| | __get ($name) |
| | Magic accessor.
|
| |
| | __isset ($name) |
| | Magic isset().
|
| |
| | __set ($name, $helper) |
| | Magic mutator.
|
| |
| | __unset ($name) |
| | Magic unset().
|
| |
| | add ($name, $helper) |
| | Add a helper to this collection.
|
| |
| | clear () |
| | Clear the helper collection.
|
| |
| | get ($name) |
| | Get a helper by name.
|
| |
| | has ($name) |
| | Check whether a given helper is present in the collection.
|
| |
| | isEmpty () |
| | Check whether the helper collection is empty.
|
| |
| | remove ($name) |
| | Check whether a given helper is present in the collection.
|
| |
◆ __construct()
| Mustache_HelperCollection::__construct |
( |
| $helpers = null | ) |
|
Helper Collection constructor.
Optionally accepts an array (or Traversable) of $name => $helper pairs.
- Exceptions
-
- Parameters
-
| array | Traversable | $helpers | (default: null) |
◆ __get()
| Mustache_HelperCollection::__get |
( |
| $name | ) |
|
◆ __isset()
| Mustache_HelperCollection::__isset |
( |
| $name | ) |
|
◆ __set()
| Mustache_HelperCollection::__set |
( |
| $name, |
|
|
| $helper ) |
◆ __unset()
| Mustache_HelperCollection::__unset |
( |
| $name | ) |
|
◆ add()
| Mustache_HelperCollection::add |
( |
| $name, |
|
|
| $helper ) |
◆ clear()
| Mustache_HelperCollection::clear |
( |
| ) |
|
Clear the helper collection.
Removes all helpers from this collection
◆ get()
| Mustache_HelperCollection::get |
( |
| $name | ) |
|
Get a helper by name.
- Exceptions
-
- Parameters
-
- Return values
-
◆ has()
| Mustache_HelperCollection::has |
( |
| $name | ) |
|
Check whether a given helper is present in the collection.
- Parameters
-
- Return values
-
| bool | True if helper is present |
◆ isEmpty()
| Mustache_HelperCollection::isEmpty |
( |
| ) |
|
Check whether the helper collection is empty.
- Return values
-
| bool | True if the collection is empty |
◆ remove()
| Mustache_HelperCollection::remove |
( |
| $name | ) |
|
Check whether a given helper is present in the collection.
- Exceptions
-
- Parameters
-
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/HelperCollection.php