lucee.Componentcommandbox.system.util.Executor
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I execute cfm templates in isolation Do not make this a singleton or cache it unless you want to persist its state between executions. That is because the "variables" scope is retained between calls to the "run()" method.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
$fileSystemUtil
|
true
|
false
|
|
any
|
$shell
|
true
|
false
|
|
any
|
$wirebox
|
true
|
false
|
Method Summary | |
---|---|
any
|
eval(string statement, string directory)
eval. |
any
|
getCurrentVariables()
|
any
|
getInstance()
|
any
|
runCode(string code, [boolean script='true'], string directory, [struct vars='[runtime expression]'])
Execute a snipped of code in the context of a directory. |
any
|
runFile(any template, [struct vars='[runtime expression]'])
Execute an existing file. |
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- FileSystemserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- shellserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
eval
statement
- A CFML statement to evaluatedirectory
Execute a snipped of code in the context of a directory
code
- CFML code to runscript
- is the CFML code script or tagsdirectory
- Absolute path to a directory context to run invars
- Struct of vars to set so the code can access themExecute an existing file
template
- Absolute path to a .cfm to executevars
- Struct of vars to set so the template can access them