PRADO PHP Framework
Current file: /Users/knut/Sites/prado/svn/trunk/framework/TShellApplication.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 2
 
TShellApplication
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 2
 public function run()
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 2


       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; 2007 PradoSoft                                       
       8                 :  * @license http://www.pradosoft.com/license/                                       
       9                 :  * @version $Id: TShellApplication.php 1680 2007-02-07 19:04:38Z xue $              
      10                 :  * @package System                                                                  
      11                 :  */                                                                                 
      12                 :                                                                                     
      13                 : /**                                                                                 
      14                 :  * TShellApplication class.                                                         
      15                 :  *                                                                                  
      16                 :  * TShellApplication is the base class for developing command-line PRADO            
      17                 :  * tools that share the same configurations as their Web application counterparts.  
      18                 :  *                                                                                  
      19                 :  * A typical usage of TShellApplication in a command-line PHP script is as follows: 
      20                 :  * <code>                                                                           
      21                 :  * require_once('path/to/prado.php');                                               
      22                 :  * $application=new TShellApplication('path/to/application.xml');                   
      23                 :  * $application->run();                                                             
      24                 :  * // perform command-line tasks here                                               
      25                 :  * </code>                                                                          
      26                 :  *                                                                                  
      27                 :  * Since the application instance has access to all configurations, including       
      28                 :  * path aliases, modules and parameters, the command-line script has nearly the same
      29                 :  * accessibility to resources as the PRADO Web applications.                        
      30                 :  *                                                                                  
      31                 :  * @author Qiang Xue <qiang.xue@gmail.com>                                          
      32                 :  * @version $Id: TShellApplication.php 1680 2007-02-07 19:04:38Z xue $              
      33                 :  * @package System                                                                  
      34                 :  * @since 3.1.0                                                                     
      35                 :  */                                                                                 
      36                 : class TShellApplication extends TApplication                                        
      37                 : {                                                                                   
      38                 : 	/**                                                                                
      39                 : 	 * Runs the application.                                                           
      40                 : 	 * This method overrides the parent implementation by initializing                 
      41                 : 	 * application with configurations specified when it is created.                   
      42                 : 	 */                                                                                
      43                 : 	public function run()                                                              
      44                 : 	{                                                                                  
      45               0 : 		$this->initApplication();                                                         
      46               0 : 	}                                                                                  
      47                 : }                                                                                   
      48                 :                                                                                     
      49                 : ?>                                                                                  

Generated by PHPUnit 3.2.0 and Xdebug 2.0.2 at Thu Dec 6 20:12:45 CET 2007.