]> git.sur5r.net Git - bacula/bacula/blob - gui/baculum/framework/TShellApplication.php
baculum: Tweak escape config file values
[bacula/bacula] / gui / baculum / framework / TShellApplication.php
1 <?php
2 /**
3  * TShellApplication class file
4  *
5  * @author Qiang Xue <qiang.xue@gmail.com>
6  * @link http://www.pradosoft.com/
7  * @copyright Copyright &copy; 2005-2014 PradoSoft
8  * @license http://www.pradosoft.com/license/
9  * @package System
10  */
11
12 /**
13  * TShellApplication class.
14  *
15  * TShellApplication is the base class for developing command-line PRADO
16  * tools that share the same configurations as their Web application counterparts.
17  *
18  * A typical usage of TShellApplication in a command-line PHP script is as follows:
19  * <code>
20  * require_once('path/to/prado.php');
21  * $application=new TShellApplication('path/to/application.xml');
22  * $application->run();
23  * // perform command-line tasks here
24  * </code>
25  *
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.
29  *
30  * @author Qiang Xue <qiang.xue@gmail.com>
31  * @package System
32  * @since 3.1.0
33  */
34 class TShellApplication extends TApplication
35 {
36         /**
37          * Runs the application.
38          * This method overrides the parent implementation by initializing
39          * application with configurations specified when it is created.
40          */
41         public function run()
42         {
43                 $this->initApplication();
44         }
45 }
46