diff options
author | wei <> | 2007-01-28 01:22:37 +0000 |
---|---|---|
committer | wei <> | 2007-01-28 01:22:37 +0000 |
commit | ace9c57b1c50709bbe8085e9cf99161a4c574be2 (patch) | |
tree | 63e9dfb9c4f270e478869f863d36a344f1de5acc /framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php | |
parent | 97b4d7ca7f7edcedc2d9c113a60d827a967f2c5e (diff) |
Fixed TActiveListBox bug. Add more meta for active record. Fix TCallback docs.
Diffstat (limited to 'framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php')
-rw-r--r-- | framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php index e7e7ceb8..d659851f 100644 --- a/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php +++ b/framework/Data/ActiveRecord/Vendor/TMysqlColumnMetaData.php @@ -25,6 +25,7 @@ class TMysqlColumnMetaData extends TComponent private $_autoIncrement;
private $_default;
private $_notNull=true;
+ private $_property;
private $_isPrimary=null;
@@ -38,8 +39,9 @@ class TMysqlColumnMetaData extends TComponent * @param string serial name.
* @param string default value.
*/
- public function __construct($name,$type,$notNull,$autoIncrement,$default,$primary)
+ public function __construct($property, $name,$type,$notNull,$autoIncrement,$default,$primary)
{
+ $this->_property=$property;
$this->_name=$name;
$this->_type=$type;
$this->_notNull=$notNull;
@@ -56,6 +58,14 @@ class TMysqlColumnMetaData extends TComponent return $this->_name;
}
+ /**
+ * @return string column name, used as active record property name
+ */
+ public function getProperty()
+ {
+ return $this->_property;
+ }
+
public function getPHPType()
{
switch(strtolower($this->_type))
|