summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
diff options
context:
space:
mode:
authorwei <>2007-01-28 01:22:37 +0000
committerwei <>2007-01-28 01:22:37 +0000
commitace9c57b1c50709bbe8085e9cf99161a4c574be2 (patch)
tree63e9dfb9c4f270e478869f863d36a344f1de5acc /framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
parent97b4d7ca7f7edcedc2d9c113a60d827a967f2c5e (diff)
Fixed TActiveListBox bug. Add more meta for active record. Fix TCallback docs.
Diffstat (limited to 'framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php')
-rw-r--r--framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
index 1e799aac..a51c435d 100644
--- a/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
+++ b/framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php
@@ -26,6 +26,7 @@ class TPgsqlColumnMetaData extends TComponent
private $_default;
private $_length;
private $_notNull=true;
+ private $_property;
private $_isPrimary=null;
@@ -39,8 +40,9 @@ class TPgsqlColumnMetaData extends TComponent
* @param string serial name.
* @param string default value.
*/
- public function __construct($name,$type,$length,$notNull,$serial,$default)
+ public function __construct($property,$name,$type,$length,$notNull,$serial,$default)
{
+ $this->_property=$property;
$this->_name=$name;
$this->_type=$type;
$this->_length=$length;
@@ -57,6 +59,14 @@ class TPgsqlColumnMetaData 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))