1 : <?php
2 : require_once "JetDataCell.class.php";
3 :
4 :
5 :
6 :
7 :
8 :
9 :
10 :
11 :
12 :
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 : ?>
|