. */ /** * @package Doctrine * @url http://www.phpdoctrine.com * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @author Jukka Hassinen * @version $Id$ */ /** * class Doctrine_Schema_Table * Holds information on a database table */ class Doctrine_Schema_Table extends Doctrine_Schema_Object implements Countable, Countable, IteratorAggregate { /** * Unique key fields * @access public */ public $uniqueKeys; /** * Indexed columns * @access public */ public $indexes; /** * Table name * @access public */ public $name; /** * @access public */ public $primaryKeys; /** * Check constraint definition * @access public */ public $check; /** * Character encoding e.g. ISO-8859-1 or UTF-8 etc. * @access public */ public $charset; /** * Description or comment given in the schema * @access public */ public $description; /** * * @return bool * @access public */ public function isValid( ) { } /** * returns an array of Doctrine_Schema_Column objects * * @return array */ public function getColumns() { return $this->children; } /** * @return Doctrine_Schema_Column|false */ public function getColumn($name) { if( ! isset($this->children[$name])) return false; return $this->children[$name]; } /** * * @param Doctrine_Schema_Column column * @return Doctrine_Schema_Table * @access public */ public function addColumn(Doctrine_Schema_Column $column) { $name = $column->getName(); $this->children[$name] = $column; return $this; } }