JetTableAllClasses
Current view: C:\xampp\htdocs\table\jettable\JetLabelDataCell.class.php
Date: Fri Dec 1 17:20:38 JST 2006 Executable lines: 5
Code covered: 100.00% Executed lines: 5
Legend: executed not executed dead code


       1                 : <?php                                                                             
       2                 : require_once "JetDataCell.class.php";                                             
       3                 :                                                                                   
       4                 : /**                                                                               
       5                 :  * ラベル出力<br>                                                                 
       6                 :  * データセルにラベル(単純な文字列)を出力するクラス                             
       7                 :  *                                                                                
       8                 :  * @package    jettable.framework                                                 
       9                 :  * @author     rds <tk@rasign.jp>                                                 
      10                 :  * @license     http://www.opensource.org/licenses/mit-license.php The MIT License
      11                 :  * @version    $Revision: 1.4 $ $Date: 2006/12/01 13:41:52 $                      
      12                 :  * @link       http://jettable.rasign.jp/                                         
      13                 :  */                                                                               
      14                 : class JetLabelDataCell extends JetDataCell{                                       
      15                 :     public function __construct($value, $attribute = array()){                       
      16              27 :         if(empty($value)){                                                              
      17               2 :             $value = "&nbsp;";                                                             
      18                 :         }                                                                               
      19              27 :         parent::__construct($value, $attribute);                                        
      20              27 :     }                                                                                
      21                 :                                                                                   
      22                 :     public function getHtml(){                                                       
      23              27 :         return $this->value;                                                            
      24                 :     }                                                                                
      25                 : }                                                                                 
      26                 :                                                                                   
      27                 : ?>                                                                                

Generated by: PHPUnit 3.0.0 and Xdebug 2.0.0RC1.