Lines Matching refs:args

217      * @param array                $args     passed arguments to helper
223 public function helperIf($template, $context, $args, $source)
225 $tpl = $template->getEngine()->loadString('{{#if ' . $args . '}}' . $source . '{{/if}}');
227 $tmp = $context->get($args);
249 $args = $this->parseArgs($context, substr($name, 7));
259 if (isset($args[0]) && $args[0]) {
290 * @param array $args passed arguments to helper
296 public function helperEach($template, $context, $args, $source)
298 list($keyname, $slice_start, $slice_end) = $this->extractSlice($args);
385 * @param array $args passed arguments to helper
391 public function helperUnless($template, $context, $args, $source)
393 $tmp = $context->get($args);
412 * @param array $args passed arguments to helper
418 public function helperWith($template, $context, $args, $source)
420 $tmp = $context->get($args);
435 * @param array $args passed arguments to helper
441 public function helperBindAttr($template, $context, $args, $source)
443 return $args;
453 * @param array $args passed arguments to helper
459 public function helperUpper($template, $context, $args, $source)
461 return strtoupper($context->get($args));
471 * @param array $args passed arguments to helper
477 public function helperLower($template, $context, $args, $source)
479 return strtolower($context->get($args));
489 * @param array $args passed arguments to helper
495 public function helperCapitalize($template, $context, $args, $source)
497 return ucfirst($context->get($args));
507 * @param array $args passed arguments to helper
513 public function helperCapitalizeWords($template, $context, $args, $source)
515 return ucwords($context->get($args));
525 * @param array $args passed arguments to helper
531 public function helperReverse($template, $context, $args, $source)
533 return strrev($context->get($args));
543 * @param array $args passed arguments to helper
549 public function helperFormatDate($template, $context, $args, $source)
551 preg_match("/(.*?)\s+(?:(?:\"|\')(.*?)(?:\"|\'))/", $args, $m);
575 * @param array $args passed arguments to helper
581 public function helperInflect($template, $context, $args, $source)
583 preg_match("/(.*?)\s+(?:(?:\"|\')(.*?)(?:\"|\'))\s+(?:(?:\"|\')(.*?)(?:\"|\'))/", $args, $m);
599 * @param array $args passed arguments to helper
605 public function helperDefault($template, $context, $args, $source)
607 preg_match("/(.*?)\s+(?:(?:\"|\')(.*?)(?:\"|\'))/", trim($args), $m);
621 * @param array $args passed arguments to helper
627 public function helperTruncate($template, $context, $args, $source)
629 preg_match("/(.*?)\s+(.*?)\s+(?:(?:\"|\')(.*?)(?:\"|\'))/", trim($args), $m);
647 * @param array $args passed arguments to helper
653 public function helperRaw($template, $context, $args, $source)
668 * @param array $args passed arguments to helper
674 public function helperRepeat($template, $context, $args, $source)
677 return str_repeat($buffer, intval($args));
697 * @param array $args passed arguments to helper
703 public function helperDefine($template, $context, $args, $source)
705 $this->tpl["DEFINE"][$args] = clone($template);
724 * @param array $args passed arguments to helper
730 public function helperInvoke($template, $context, $args, $source)
732 if (! isset($this->tpl["DEFINE"][$args])) {
733 throw new LogicException("Can't INVOKE '{$args}'. '{$args}' was not DEFINE ");
735 return $this->tpl["DEFINE"][$args]->render($context);
778 * Parse avariable from current args
781 * @param array $args passed arguments to helper
784 private function parseArgs($context, $args)
786 $args = preg_replace('/\s+/', ' ', trim($args));
787 $eles = explode(' ', $args);