# Class Context

LightnCandy class to handle Context

  LightnCandy\Flags
  LightnCandy\Context

Namespace: LightnCandy
Located at Context.php

Methods summary
`public static array<string,array|string|integer>` | # `create( array<string,array|string|integer> $options )` Create a context from options Create a context from options #### Parameters $options input options #### Returns array<string,array|string|integer> Context from options
`protected static array<string,array|string|integer>` | # `updateHelperTable( array<string,array|string|integer> & $context, array<string,array|string|integer> $options, string $tname = 'helpers' )` update specific custom helper table from options update specific custom helper table from options #### Parameters $context prepared context $options input options $tname helper table name #### Returns array<string,array|string|integer> context with generated helper table #### Expect array() when input array(), array() array('flags' => array('exhlp' => 1), 'helpers' => array('abc' => 1)) when input array('flags' => array('exhlp' => 1)), array('helpers' => array('abc')) array('error' => array('You provide a custom helper named as \'abc\' in options[\'helpers\'], but the function abc() is not defined!'), 'flags' => array('exhlp' => 0)) when input array('error' => array(), 'flags' => array('exhlp' => 0)), array('helpers' => array('abc')) array('flags' => array('exhlp' => 1), 'helpers' => array('\LightnCandy\Runtime::raw' => '\LightnCandy\Runtime::raw')) when input array('flags' => array('exhlp' => 1), 'helpers' => array()), array('helpers' => array('\LightnCandy\Runtime::raw')) array('flags' => array('exhlp' => 1), 'helpers' => array('test' => '\LightnCandy\Runtime::raw')) when input array('flags' => array('exhlp' => 1), 'helpers' => array()), array('helpers' => array('test' => '\LightnCandy\Runtime::raw'))
`public static` | # `merge( array<string,array|string|integer> & $context, array<string,array|string|integer> $tmp )` Merge a context into another Merge a context into another #### Parameters $context master context $tmp another context will be overwrited into master context

Constants inherited from LightnCandy\Flags
`FLAG_ADVARNAME, FLAG_BESTPERFORMANCE, FLAG_ECHO, FLAG_ELSE, FLAG_ERROR_EXCEPTION, FLAG_ERROR_LOG, FLAG_ERROR_SKIPPARTIAL, FLAG_EXTHELPER, FLAG_HANDLEBARS, FLAG_HANDLEBARSJS, FLAG_HANDLEBARSJS_FULL, FLAG_HANDLEBARSLAMBDA, FLAG_HBESCAPE, FLAG_IGNORESTANDALONE, FLAG_INSTANCE, FLAG_JS, FLAG_JSLENGTH, FLAG_JSOBJECT, FLAG_JSTRUE, FLAG_KNOWNHELPERSONLY, FLAG_METHOD, FLAG_MUSTACHE, FLAG_MUSTACHELAMBDA, FLAG_MUSTACHELOOKUP, FLAG_MUSTACHESECTION, FLAG_NAMEDARG, FLAG_NOESCAPE, FLAG_NOHBHELPERS, FLAG_PARENT, FLAG_PARTIALNEWCONTEXT, FLAG_PREVENTINDENT, FLAG_PROPERTY, FLAG_RAWBLOCK, FLAG_RENDER_DEBUG, FLAG_RUNTIMEPARTIAL, FLAG_SLASH, FLAG_SPVARS, FLAG_STANDALONEPHP, FLAG_STRINGPARAMS, FLAG_THIS`