PRADO PHP Framework
Current file: /Users/knut/Sites/prado/svn/trunk/framework/TService.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 / 6
0.00 %0.00%
0.00% 0 / 8
 
TService
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 6
0.00 %0.00%
0.00% 0 / 8
 public function init($config)
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
 public function getID()
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
 public function setID($value)
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 2
 public function getEnabled()
0.00 %0.00%
0.00% 0 / 1
0.00 %0.00%
0.00% 0 / 1
 public function setEnabled($value)
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 / 1


       1                 : <?php                                                                                       
       2                 : /**                                                                                         
       3                 :  * TService class file.                                                                     
       4                 :  *                                                                                          
       5                 :  * @author Qiang Xue <qiang.xue@gmail.com>                                                  
       6                 :  * @link http://www.pradosoft.com/                                                          
       7                 :  * @copyright Copyright &copy; 2005 PradoSoft                                               
       8                 :  * @license http://www.pradosoft.com/license/                                               
       9                 :  * @version $Id: TService.php 1693 2007-02-13 04:33:05Z xue $                               
      10                 :  * @package System                                                                          
      11                 :  */                                                                                         
      12                 :                                                                                             
      13                 : /**                                                                                         
      14                 :  * TService class.                                                                          
      15                 :  *                                                                                          
      16                 :  * TService implements the basic methods required by IService and may be                    
      17                 :  * used as the basic class for application services.                                        
      18                 :  *                                                                                          
      19                 :  * @author Qiang Xue <qiang.xue@gmail.com>                                                  
      20                 :  * @version $Id: TService.php 1693 2007-02-13 04:33:05Z xue $                               
      21                 :  * @package System                                                                          
      22                 :  * @since 3.0                                                                               
      23                 :  */                                                                                         
      24                 : abstract class TService extends TApplicationComponent implements IService                   
      25                 : {                                                                                           
      26                 : 	/**                                                                                        
      27                 : 	 * @var string service id                                                                  
      28                 : 	 */                                                                                        
      29                 : 	private $_id;                                                                              
      30                 : 	/**                                                                                        
      31                 : 	 * @var boolean whether the service is enabled                                             
      32                 : 	 */                                                                                        
      33                 : 	private $_enabled=true;                                                                    
      34                 :                                                                                             
      35                 : 	/**                                                                                        
      36                 : 	 * Initializes the service and attaches {@link run} to the RunService event of application.
      37                 : 	 * This method is required by IService and is invoked by application.                      
      38                 : 	 * @param TXmlElement module configuration                                                 
      39                 : 	 */                                                                                        
      40                 : 	public function init($config)                                                              
      41                 : 	{                                                                                          
      42               0 : 	}                                                                                          
      43                 :                                                                                             
      44                 : 	/**                                                                                        
      45                 : 	 * @return string id of this service                                                       
      46                 : 	 */                                                                                        
      47                 : 	public function getID()                                                                    
      48                 : 	{                                                                                          
      49               0 : 		return $this->_id;                                                                        
      50                 : 	}                                                                                          
      51                 :                                                                                             
      52                 : 	/**                                                                                        
      53                 : 	 * @param string id of this service                                                        
      54                 : 	 */                                                                                        
      55                 : 	public function setID($value)                                                              
      56                 : 	{                                                                                          
      57               0 : 		$this->_id=$value;                                                                        
      58               0 : 	}                                                                                          
      59                 :                                                                                             
      60                 : 	/**                                                                                        
      61                 : 	 * @return boolean whether the service is enabled                                          
      62                 : 	 */                                                                                        
      63                 : 	public function getEnabled()                                                               
      64                 : 	{                                                                                          
      65               0 : 		return $this->_enabled;                                                                   
      66                 : 	}                                                                                          
      67                 :                                                                                             
      68                 : 	/**                                                                                        
      69                 : 	 * @param boolean whether the service is enabled                                           
      70                 : 	 */                                                                                        
      71                 : 	public function setEnabled($value)                                                         
      72                 : 	{                                                                                          
      73               0 : 		$this->_enabled=TPropertyValue::ensureBoolean($value);                                    
      74               0 : 	}                                                                                          
      75                 :                                                                                             
      76                 : 	/**                                                                                        
      77                 : 	 * Runs the service.                                                                       
      78                 : 	 */                                                                                        
      79                 : 	public function run()                                                                      
      80                 : 	{                                                                                          
      81               0 : 	}                                                                                          
      82                 : }                                                                                           
      83                 :                                                                                             
      84                 : ?>                                                                                          

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