. * * @category Database * @package StatusNet * @author Evan Prodromou * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('STATUSNET')) { exit(1); } /** * A class encapsulating the structure of a table. * * @category Database * @package StatusNet * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class TableDef { /** name of the table */ public $name; /** array of ColumnDef objects for the columns. */ public $columns; /** * Constructor. * * @param string $name name of the table * @param array $columns columns in the table */ function __construct($name=null,$columns=null) { $this->name = $name; $this->columns = $columns; } }