JetTableAllClasses
Current view: C:\xampp\htdocs\table\jettable\JetTextAreaDataCell.class.php
Date: Fri Dec 1 17:20:38 JST 2006 Executable lines: 11
Code covered: 100.00% Executed lines: 11
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 JetTextAreaDataCell 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 = "<textarea>";                                                           
      24               4 :         foreach($this->attribute as $attributeKey=>$attributeValue){                    
      25               1 :             $text = JetHtmlUtil::joinTagAttribute($text, $attributeKey, $attributeValue);  
      26               1 :         }                                                                               
      27               4 :         $text .= $this->value;                                                          
      28               4 :         $text .= "</textarea>";                                                         
      29               4 :         return $text;                                                                   
      30                 :     }                                                                                
      31                 : }                                                                                 
      32                 : ?>                                                                                

Generated by: PHPUnit 3.0.0 and Xdebug 2.0.0RC1.