JetTableAllClasses
Current view: C:\xampp\htdocs\table\jettable\JetSelectBoxDataCell.class.php
Date: Fri Dec 1 17:20:38 JST 2006 Executable lines: 4
Code covered: 100.00% Executed lines: 4
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 JetSelectBoxDataCell extends JetDataCell{                                           
      15                 :     private $selectArray;                                                                    
      16                 :                                                                                           
      17                 :     public function __construct($value, $attribute = array(), $selectArray = array()){       
      18               6 :         parent::__construct($value, $attribute);                                                
      19               6 :         $this->selectArray = $selectArray;                                                      
      20               6 :     }                                                                                        
      21                 :                                                                                           
      22                 :     public function getHtml(){                                                               
      23               6 :         return JetHtmlUtil::createSelectBox($this->selectArray, $this->value, $this->attribute);
      24                 :     }                                                                                        
      25                 : }                                                                                         
      26                 : ?>                                                                                        

Generated by: PHPUnit 3.0.0 and Xdebug 2.0.0RC1.