By using this class for script execution startup, initializing
and shutdown the amount code required to write a new script is
reduced significantly.
It is also recommended to use the eZCLI class in addition to this
class.
What this class will handle is:
- Startup of database
- Startup/shutdown of session
- Debug initialize and display
- Text codec initialize
This class consists of the static functions startup(), initialize()
and shutdown().
A typical usage:
\code
$script = eZScript::instance();
$script->startup();
Read arguments and modify script accordingly
$script->initialize();
Do the actual script here
$script->shutdown(); // Finish execution
\endcode