Lines Matching refs:helper

5  * a collection of helper function. normally a function like
57 * Create new helper container class
61 * (or traversable) or helper is not a callable
65 foreach($this->builtinHelpers as $helper) {
66 $helperName = $this->underscoreToCamelCase($helper);
67 $this->add($helper, [$this, "helper{$helperName}"]);
76 foreach ($helpers as $name => $helper) {
77 $this->add($name, $helper);
83 * Add a new helper to helpers
85 * @param string $name helper name
86 * @param callable $helper a function as a helper
88 * @throws \InvalidArgumentException if $helper is not a callable
91 public function add($name, $helper)
93 if (!is_callable($helper)) {
96 $this->helpers[$name] = $helper;
100 * Check if $name helper is available
102 * @param string $name helper name
112 * Get a helper. __magic__ method :)
114 * @param string $name helper name
117 * @return callable helper function
122 throw new InvalidArgumentException('Unknown helper :' . $name);
128 * Check if $name helper is available __magic__ method :)
130 * @param string $name helper name
141 * Add a new helper to helpers __magic__ method :)
143 * @param string $name helper name
144 * @param callable $helper a function as a helper
148 public function __set($name, $helper)
150 $this->add($name, $helper);
155 * Unset a helper
157 * @param string $name helper name to remove
166 * Check whether a given helper is present in the collection.
168 * @param string $name helper name
169 * @throws \InvalidArgumentException if the requested helper is not present.
175 throw new InvalidArgumentException('Unknown helper: ' . $name);
181 * Clear the helper collection.
193 * Check whether the helper collection is empty.
203 * Create handler for the 'if' helper.
217 * @param array $args passed arguments to helper
219 * within helper
278 * Create handler for the 'each' helper.
290 * @param array $args passed arguments to helper
292 * within helper
377 * Create handler for the 'unless' helper.
385 * @param array $args passed arguments to helper
387 * within helper
406 * Create handler for the 'with' helper.
412 * @param array $args passed arguments to helper
414 * within helper
429 * Create handler for the 'bindAttr' helper.
435 * @param array $args passed arguments to helper
437 * within helper
453 * @param array $args passed arguments to helper
455 * within helper
471 * @param array $args passed arguments to helper
473 * within helper
489 * @param array $args passed arguments to helper
491 * within helper
507 * @param array $args passed arguments to helper
509 * within helper
525 * @param array $args passed arguments to helper
527 * within helper
543 * @param array $args passed arguments to helper
545 * within helper
575 * @param array $args passed arguments to helper
577 * within helper
599 * @param array $args passed arguments to helper
601 * within helper
621 * @param array $args passed arguments to helper
623 * within helper
647 * @param array $args passed arguments to helper
649 * within helper
668 * @param array $args passed arguments to helper
670 * within helper
697 * @param array $args passed arguments to helper
699 * within helper
724 * @param array $args passed arguments to helper
726 * within helper
740 * Change underscore helper name to CamelCase
781 * @param array $args passed arguments to helper