JavaScript
class JavaScript
Properties
protected CallbackGenerator | $callbackGenerator | ||
protected array | $config | ||
protected ConfigOptimizer | $configOptimizer | ||
protected Configurator | $configurator | ||
Encoder | $encoder | ||
array | $exports | ||
FunctionCache | $functionCache | ||
protected HintGenerator | $hintGenerator | ||
protected Minifier | $minifier | ||
XSLT | $rendererGenerator | ||
protected StylesheetCompressor | $stylesheetCompressor | ||
protected string | $xsl |
Methods
Return the cached instance of Minifier (creates one if necessary)
Get a JavaScript parser
Encode a PHP value into an equivalent JavaScript representation
Generate and return the public API
No description
Generate a HINT object that contains informations about the configuration
Return the plugins' config
Return the registeredVars config
Return the root context config
Return the parser's source
Return the JavaScript representation of the stylesheet
Return the tags' config
Inject the parser config into given source
Details
at line 104
__construct(Configurator $configurator)
Constructor
at line 123
Minifier
getMinifier()
Return the cached instance of Minifier (creates one if necessary)
at line 139
string
getParser(array|null $config = null)
Get a JavaScript parser
at line 174
Minifier
setMinifier(string|Minifier $minifier)
Set the cached instance of Minifier
Extra arguments will be passed to the minifier's constructor
at line 208
protected string
encode(mixed $value)
Encode a PHP value into an equivalent JavaScript representation
at line 218
protected string
getExports()
Generate and return the public API
at line 238
protected string
getFunctionCache()
No description
at line 250
protected string
getHints()
Generate a HINT object that contains informations about the configuration
at line 264
protected Dictionary
getPluginsConfig()
Return the plugins' config
at line 349
protected Dictionary
getRegisteredVarsConfig()
Return the registeredVars config
at line 365
protected array
getRootContext()
Return the root context config
at line 375
protected string
getSource()
Return the parser's source
at line 409
protected string
getStylesheet()
Return the JavaScript representation of the stylesheet
at line 419
protected Dictionary
getTagsConfig()
Return the tags' config
at line 443
protected string
injectConfig(string $src)
Inject the parser config into given source