コード例 #1
0
 /**
  * Add a new cell (TTableCell) to the Table Row
  * @param  $value Cell Content
  * @return The created Table Cell
  */
 public function addCell($value)
 {
     // creates a new Table Cell
     $cell = new TAdiantiTableCell($value);
     parent::add($cell);
     // returns the cell object
     return $cell;
 }
コード例 #2
0
 /**
  * Add a new row (TTableRow object) to the table
  */
 public function addRow()
 {
     // creates a new Table Row
     $row = new TAdiantiTableRow();
     // add this row to the table element
     parent::add($row);
     return $row;
 }
コード例 #3
0
 /**
  * Class Constructor
  * @param $value  TableCell content
  */
 public function __construct($value)
 {
     parent::__construct('td');
     parent::add($value);
 }