Lines Matching full:context
3 * Handlebars context
4 * Context for a template
23 class Context class
31 * @var array stack for context only top stack is available
56 * Mustache rendering Context constructor.
58 * @param mixed $context Default rendering context (default: null)
59 …* @param array $options Options for the context. It may contain the following: (default: empty arr…
64 public function __construct($context = null, $options = []) argument
66 if ($context !== null) {
67 $this->stack = [$context];
73 … 'Context Constructor "' . Handlebars::OPTION_ENABLE_DATA_VARIABLES . '" option must be a boolean'
81 * Push a new Context frame onto the stack.
83 * @param mixed $value Object or array to use for context
130 * Pop the last Context frame from the stack.
132 * @return mixed Last Context frame (object or array)
174 * Get the last Context frame.
176 * @return mixed Last Context frame (object or array)
204 * Change the current context to one of current context members
206 * @param string $variableName name of variable or a callable on current context
219 * Get a avariable from current context
223 * @param string $variableName variavle name to get from current context
247 'can not find variable in context'
262 'can not find variable in context'
300 'Can not find variable in context'
320 'Can not find variable in context'
340 'Can not find variable in context'
378 throw new InvalidArgumentException('can not find variable in context');