eZ Publish  [trunk]
ezexec.php File Reference

Go to the source code of this file.

Variables

 $cli = eZCLI::instance()
 $options
 $retCode = include( $scriptFile )
 $script
if(count($options['arguments'])< 1) $scriptFile = $options['arguments'][0]
if(!file_exists($scriptFile))
$script->shutdown(1 Could
execute the file was not 
found
if(!file_exists($scriptFile))
$script->shutdown(1 Could
execute the 
script

Variable Documentation

$cli = eZCLI::instance()

Definition at line 14 of file ezexec.php.

$options
Initial value:
 $script->getOptions( "",
                                "[scriptfile]",
                                array() )

Definition at line 26 of file ezexec.php.

$retCode = include( $scriptFile )

Definition at line 41 of file ezexec.php.

Initial value:
 eZScript::instance( array( 'description' => ( "eZ Publish Script Executor\n\n" .
                                                        "Allows execution of simple PHP scripts which uses eZ Publish functionality,\n" .
                                                        "when the script is called all necessary initialization is done\n" .
                                                        "\n" .
                                                        "ezexec.php myscript.php" ),
                                     'use-session' => false,
                                     'use-modules' => true,
                                     'use-extensions' => true ) )

Definition at line 15 of file ezexec.php.

if (count($options['arguments'])< 1) $scriptFile = $options['arguments'][0]

Definition at line 36 of file ezexec.php.

Referenced by eZRunCronjobs\runScript().

if (!file_exists($scriptFile)) $script->shutdown(1 Could execute the file was not found

Definition at line 38 of file ezexec.php.

Referenced by ezpClusterGateway\interrupt().

if (!file_exists($scriptFile)) $script->shutdown(1 Could execute the script