compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
{card:label=AbstractEntity}
{code}
||AbstractEntity||
abstract class ZendDbSchema_Db_Schema_AbstractEntity
extends ZendDbSchema_Db_Schema_AbstractSchema
{code}


{card:label=Database}
{code}
class ZendDbSchema_Db_Schema_Database
extends ZendDbSchema_Db_Schema_AbstractEntity
{
const CHARSET_KEY = 'charset';

/**
* Set schema validator
*
* @param ZendDbSchema_Validate_Db_Schema_AbstractDatabase $validator
* @return self
*/
public function setValidator(Zend_Validate_Interface $validator);

/**
* @see ZendDbSchema_Db_Schema_AbstractEntity::_getAlterSql()
*/
protected function _getAlterSql();

/**
* @see ZendDbSchema_Db_Schema_AbstractEntity::_getCreateSql()
*/
protected function _getCreateSql();

/**
* @see ZendDbSchema_Db_Schema_AbstractSchema::_getDropSql()
*/
protected function _getDropSql();

/**
* Reload database schema
*
* @return boolen
*/
protected function _doReload();

/**
* Set charset
*
* @param string $name
* @return self
*/
public function setCharset($charset);

/**
* Get charset
*
* @return string
*/
public function getCharset();
}
{code}

{card:label=Table}
{code}
class ZendDbSchema_Db_Schema_Table extends ZendDbSchema_Db_Schema_AbstractEntity
{
const CHARSET_KEY = 'charset';

const COLUMNS_KEY = 'columns';
const INDEXES_KEY = 'indexes';
const FOREIGNS_KEY = 'foreigns';
const PRIMARY_KEY = 'primary';

/**
* @var string
*/
protected $_columnsManagerClass = 'ZendDbSchema_Db_Schema_Table_DefinitionManager_Column';

/**
* @var string
*/
protected $_indexesManagerClass = 'ZendDbSchema_Db_Schema_Table_DefinitionManager_Index';

/**
* @var string
*/
protected $_foreignsManagerClass = 'ZendDbSchema_Db_Schema_Table_DefinitionManager_ForeignKey';

/**
* @var string
*/
protected $_columnClass = 'ZendDbSchema_Db_Schema_Table_Column';

/**
* @var string
*/
protected $_indexClass = 'ZendDbSchema_Db_Schema_Table_Index';

/**
* @var string
*/
protected $_foreignClass = 'ZendDbSchema_Db_Schema_Table_ForeignKey';

/**
* @var string
*/
protected $_primaryKeyClass = 'ZendDbSchema_Db_Schema_Table_PrimaryKey';

/**
* Table columns schema
*
* @var ZendDbSchema_Db_Schema_Table_DefinitionManager_Column
*/
protected $_columns;

/**
* Table columns schema
*
* @var ZendDbSchema_Db_Schema_Table_DefinitionManager_Index
*/
protected $_indexes;

/**
* Table columns schema
*
* @var ZendDbSchema_Db_Schema_Table_DefinitionManager_Index
*/
protected $_foreigns;

/**
* Primary keys
*
* @var ZendDbSchema_Db_Schema_Table_PrimaryKey
*/
protected $_primary;

/**
* Set schema validator
*
* @param ZendDbSchema_Validate_Db_Schema_AbstractTable $validator
* @return self
*/
public function setValidator(Zend_Validate_Interface $validator);

/**
* Get column classname
*
* @return string
*/
public function getColumnClass();

/**
* Get index classname
*
* @return string
*/
public function getIndexClass();

/**
* Get foreign key classname
*
* @return string
*/
public function getForeignClass();

/**
* Set schema from array
*
* @param array $schema
* @return self
*/
public function setFromArray(array $schema);

/**
* To array
*
* @return array
*/
public function toArray();

/**
* Get columns
*
* @return ZendDbSchema_Db_Schema_Table_DefinitionManager_Column
*/
public function columns();

/**
* Get or replace primary key
*
* @param ZendDbSchema_Db_Schema_Table_PrimaryKey $primary
* @return ZendDbSchema_Db_Schema_Table_PrimaryKey
*/
public function primary(ZendDbSchema_Db_Schema_Table_PrimaryKey $primary = null);

/**
* Get indexes
*
* @return ZendDbSchema_Db_Schema_Table_DefinitionManager_Index
*/
public function indexes();

/**
* Get forign keys
*
* @return ZendDbSchema_Db_Schema_Table_DefinitionManager_Foreign
*/
public function foreigns();

/**
* Get sql query
*
* @param boolen $alter
* @return string
*/
public function toSql($alter = false);

/**
* Is dirty schema or param
*
* @param string|null $param
* @return boolean
*/
public function isDirty($param = null);

/**
* Add table definition
*
* @param ZendDbSchema_Db_Schema_Table_AbstractDefinition $item
* @return ZendDbSchema_Db_Schema_Table
*/
public function add(ZendDbSchema_Db_Schema_Table_AbstractDefinition $item);

/**
* @see ZendDbSchema_Db_Schema_AbstractEntity::_getAlterSql()
*/
protected function _getAlterSql();

/**
* @see ZendDbSchema_Db_Schema_AbstractEntity::_getCreateSql()
*/
protected function _getCreateSql();

/**
* @see ZendDbSchema_Db_Schema_AbstractSchema::_getDropSql()
*/
protected function _getDropSql();

/**
* Refresh table schema
*
* @return boolen
*/
protected function _doReload();
}
{code}
{deck}