Methods

All methods in the Solar_Php class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

addArgv()

Add a command-line argument for the code.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

getExitCode()

Gets the exit code from the separate process.

getLastLine()

Gets the last line of output from the separate process.

getOutput()

Gets all lines of output from the separate process.

locale()

Looks up class-specific locale strings based on a key.

run()

Runs the named file as the PHP code for the process.

runCode()

Runs the given string as the PHP code for the process.

runSolar()

Runs a file as a Solar script.

runSolarCode()

Runs a code string as a Solar script.

setArgv()

Set all command-line arguments for the code at one time; clears all previous argument values.

setEcho()

Turns execution process output on and off.

setIniArray()

Sets an array of php.ini values, overriding the php.ini file.

setIniFile()

Sets the location of the php.ini file to use.

setIniVal()

Sets one php.ini value, overriding the php.ini file.

setPhp()

Sets the PHP command to call at the command line.

setSolarConfig()

When calling Solar::start() in the new process, use this as the $config value.

Protected

_buildCode()

Builds a code string appropriate for the PHP command-line call.

_buildCommand()

Builds the command-line invocation of PHP.

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_buildSolarCode()

Wraps the given code string in extra code to load, start, and stop Solar.

_exception()

Convenience method for returning exceptions with localized text.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

_run()

Support method to actually run the code and retain information about the run.

Private

None.



Local