summaryrefslogtreecommitdiff
path: root/framework/Db/schema/TDbTableSchema.php
diff options
context:
space:
mode:
authorrojaro <>2009-07-13 13:56:07 +0000
committerrojaro <>2009-07-13 13:56:07 +0000
commitb4b2c7e5e2eadd48b344538823dcf5645939ba44 (patch)
tree7e10a68d038fe37d71f7f7a8552136cecfb38183 /framework/Db/schema/TDbTableSchema.php
parentd6ef8e39d858de50107950180ea111349e4b0d6f (diff)
- removed old schema directory
- some cleanups
Diffstat (limited to 'framework/Db/schema/TDbTableSchema.php')
-rwxr-xr-xframework/Db/schema/TDbTableSchema.php76
1 files changed, 0 insertions, 76 deletions
diff --git a/framework/Db/schema/TDbTableSchema.php b/framework/Db/schema/TDbTableSchema.php
deleted file mode 100755
index 338ba96b..00000000
--- a/framework/Db/schema/TDbTableSchema.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/**
- * TDbTableSchema class file.
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @link http://www.yiiframework.com/
- * @copyright Copyright &copy; 2008-2009 Yii Software LLC
- * @license http://www.yiiframework.com/license/
- */
-
-/**
- * TDbTableSchema is the base class for representing the metadata of a database table.
- *
- * It may be extended by different DBMS driver to provide DBMS-specific table metadata.
- *
- * TDbTableSchema provides the following information about a table:
- * <ul>
- * <li>{@link name}</li>
- * <li>{@link rawName}</li>
- * <li>{@link columns}</li>
- * <li>{@link primaryKey}</li>
- * <li>{@link foreignKeys}</li>
- * <li>{@link sequenceName}</li>
- * </ul>
- *
- * @author Qiang Xue <qiang.xue@gmail.com>
- * @version $Id$
- * @package system.db.schema
- * @since 1.0
- */
-class TDbTableSchema extends TComponent
-{
- /**
- * @var string name of this table.
- */
- public $name;
- /**
- * @var string raw name of this table. This is the quoted version of table name with optional schema name. It can be directly used in SQLs.
- */
- public $rawName;
- /**
- * @var string|array primary key name of this table. If composite key, an array of key names is returned.
- */
- public $primaryKey;
- /**
- * @var string sequence name for the primary key. Null if no sequence.
- */
- public $sequenceName;
- /**
- * @var array foreign keys of this table. The array is indexed by column name. Each value is an array of foreign table name and foreign column name.
- */
- public $foreignKeys=array();
- /**
- * @var array column metadata of this table. Each array element is a TDbColumnSchema object, indexed by column names.
- */
- public $columns=array();
-
- /**
- * Gets the named column metadata.
- * This is a convenient method for retrieving a named column even if it does not exist.
- * @param string column name
- * @return TDbColumnSchema metadata of the named column. Null if the named column does not exist.
- */
- public function getColumn($name)
- {
- return isset($this->columns[$name]) ? $this->columns[$name] : null;
- }
-
- /**
- * @return array list of column names
- */
- public function getColumnNames()
- {
- return array_keys($this->columns);
- }
-}