From ace9c57b1c50709bbe8085e9cf99161a4c574be2 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 28 Jan 2007 01:22:37 +0000 Subject: Fixed TActiveListBox bug. Add more meta for active record. Fix TCallback docs. --- framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'framework/Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php') 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)) -- cgit v1.2.3