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

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
33.33 %33.33%
33.33% 1 / 3
25.00 %25.00%
25.00% 1 / 4
 
TModule
100.00 %100.00%
100.00% 1 / 1
33.33 %33.33%
33.33% 1 / 3
25.00 %25.00%
25.00% 1 / 4
 public function init($config)
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 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


       1                 : <?php                                                                  
       2                 : /**                                                                    
       3                 :  * TModule 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: TModule.php 1398 2006-09-08 19:31:03Z xue $           
      10                 :  * @package System                                                     
      11                 :  */                                                                    
      12                 :                                                                        
      13                 : /**                                                                    
      14                 :  * TModule class.                                                      
      15                 :  *                                                                     
      16                 :  * TModule implements the basic methods required by IModule and may be 
      17                 :  * used as the basic class for application modules.                    
      18                 :  *                                                                     
      19                 :  * @author Qiang Xue <qiang.xue@gmail.com>                             
      20                 :  * @version $Id: TModule.php 1398 2006-09-08 19:31:03Z xue $           
      21                 :  * @package System                                                     
      22                 :  * @since 3.0                                                          
      23                 :  */                                                                    
      24                 : abstract class TModule extends TApplicationComponent implements IModule
      25                 : {                                                                      
      26                 : 	/**                                                                   
      27                 : 	 * @var string module id                                              
      28                 : 	 */                                                                   
      29                 : 	private $_id;                                                         
      30                 :                                                                        
      31                 : 	/**                                                                   
      32                 : 	 * Initializes the module.                                            
      33                 : 	 * This method is required by IModule and is invoked by application.  
      34                 : 	 * @param TXmlElement module configuration                            
      35                 : 	 */                                                                   
      36                 : 	public function init($config)                                         
      37                 : 	{                                                                     
      38              42 : 	}                                                                     
      39                 :                                                                        
      40                 : 	/**                                                                   
      41                 : 	 * @return string id of this module                                   
      42                 : 	 */                                                                   
      43                 : 	public function getID()                                               
      44                 : 	{                                                                     
      45               0 : 		return $this->_id;                                                   
      46                 : 	}                                                                     
      47                 :                                                                        
      48                 : 	/**                                                                   
      49                 : 	 * @param string id of this module                                    
      50                 : 	 */                                                                   
      51                 : 	public function setID($value)                                         
      52                 : 	{                                                                     
      53               0 : 		$this->_id=$value;                                                   
      54               0 : 	}                                                                     
      55                 : }                                                                      
      56                 :                                                                        
      57                 : ?>                                                                     

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