Lines Matching refs:context
223 public function helperIf($template, $context, $args, $source) argument
227 $tmp = $context->get($args);
238 $buffer = $template->render($context);
249 $args = $this->parseArgs($context, substr($name, 7));
261 $buffer = $template->render($context);
268 return $this->renderElse($template, $context);
272 return $this->renderElse($template, $context);
296 public function helperEach($template, $context, $args, $source) argument
299 $tmp = $context->get($keyname);
307 return $this->renderElse($template, $context);
318 $context->pushIndex($key);
322 $context->pushData([
330 $context->pushKey($key);
334 $context->pushData([
339 $context->push($var);
341 $buffer .= $tpl->render($context);
342 $context->pop();
344 $context->popIndex();
346 $context->popKey();
350 $context->popData();
356 return $this->renderElse($template, $context);
367 private function renderElse($template, $context) argument
372 return $template->render($context);
391 public function helperUnless($template, $context, $args, $source) argument
393 $tmp = $context->get($args);
396 $buffer = $template->render($context);
401 return $this->renderElse($template, $context);
418 public function helperWith($template, $context, $args, $source) argument
420 $tmp = $context->get($args);
421 $context->push($tmp);
422 $buffer = $template->render($context);
423 $context->pop();
441 public function helperBindAttr($template, $context, $args, $source) argument
459 public function helperUpper($template, $context, $args, $source) argument
461 return strtoupper($context->get($args));
477 public function helperLower($template, $context, $args, $source) argument
479 return strtolower($context->get($args));
495 public function helperCapitalize($template, $context, $args, $source) argument
497 return ucfirst($context->get($args));
513 public function helperCapitalizeWords($template, $context, $args, $source) argument
515 return ucwords($context->get($args));
531 public function helperReverse($template, $context, $args, $source) argument
533 return strrev($context->get($args));
549 public function helperFormatDate($template, $context, $args, $source) argument
555 $date = $context->get($keyname);
581 public function helperInflect($template, $context, $args, $source) argument
587 $value = $context->get($keyname);
605 public function helperDefault($template, $context, $args, $source) argument
610 $value = $context->get($keyname);
627 public function helperTruncate($template, $context, $args, $source) argument
633 $value = substr($context->get($keyname), 0, $limit);
634 if ($ellipsis && strlen($context->get($keyname)) > $limit) {
653 public function helperRaw($template, $context, $args, $source) argument
674 public function helperRepeat($template, $context, $args, $source) argument
676 $buffer = $template->render($context);
703 public function helperDefine($template, $context, $args, $source) argument
730 public function helperInvoke($template, $context, $args, $source) argument
735 return $this->tpl["DEFINE"][$args]->render($context);
784 private function parseArgs($context, $args) argument
794 $val = $context->get($ele);