<?php
/**
 * Table
 *
 * @version    5.5
 * @author     Pablo Dall'Oglio
 * @copyright  Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
 * @license    http://www.adianti.com.br/framework-license
 */
class TAdiantiTable extends TAdiantiElement
{
    /**
     * Class Constructor
     */
    public function __construct()
    {
        parent::__construct('table');
    }

    /**
     * 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;
    }
}
?>
