3 * TShellApplication class file
5 * @author Qiang Xue <qiang.xue@gmail.com>
6 * @link http://www.pradosoft.com/
7 * @copyright Copyright © 2005-2014 PradoSoft
8 * @license http://www.pradosoft.com/license/
13 * TShellApplication class.
15 * TShellApplication is the base class for developing command-line PRADO
16 * tools that share the same configurations as their Web application counterparts.
18 * A typical usage of TShellApplication in a command-line PHP script is as follows:
20 * require_once('path/to/prado.php');
21 * $application=new TShellApplication('path/to/application.xml');
22 * $application->run();
23 * // perform command-line tasks here
26 * Since the application instance has access to all configurations, including
27 * path aliases, modules and parameters, the command-line script has nearly the same
28 * accessibility to resources as the PRADO Web applications.
30 * @author Qiang Xue <qiang.xue@gmail.com>
34 class TShellApplication extends TApplication
37 * Runs the application.
38 * This method overrides the parent implementation by initializing
39 * application with configurations specified when it is created.
43 $this->initApplication();