JetTableAllClasses
Current view: C:\xampp\htdocs\table\jettable\JetTextBoxDataCell.class.php
Date: Fri Dec 1 17:20:38 JST 2006 Executable lines: 9
Code covered: 100.00% Executed lines: 9
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 JetTextBoxDataCell extends JetDataCell{                                     
      15                 :     public function __construct($value, $attribute = array()){                       
      16               4 :         if(empty($value)){                                                              
      17               1 :             $value = "";                                                                   
      18                 :         }                                                                               
      19               4 :         parent::__construct($value, $attribute);                                        
      20               4 :     }                                                                                
      21                 :                                                                                   
      22                 :     public function getHtml(){                                                       
      23               4 :         $text = "<input type=\"text\" value=\"" . $this->value . "\">";                 
      24               4 :         foreach($this->attribute as $attributeKey=>$attributeValue){                    
      25               1 :             $text = JetHtmlUtil::joinTagAttribute($text, $attributeKey, $attributeValue);  
      26               1 :         }                                                                               
      27               4 :         return $text;                                                                   
      28                 :     }                                                                                
      29                 : }                                                                                 
      30                 : ?>                                                                                

Generated by: PHPUnit 3.0.0 and Xdebug 2.0.0RC1.