View Issue Details

IDProjectCategoryView StatusLast Update
48PHPOF2Defaultpublic18 Sep 2008 17:13
Reportermrosenquist Assigned Totimj  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.10.1Fixed in Version0.10.1 
Summary48: Add the ability to get getTableSingularLabel() to DBRow_SimpleObject
DescriptionAdd the ability to get getTableSingularLabel() to DBRow_SimpleObject
TagsNo tags attached.
Attached Files
Simple.php.patch (855 bytes)   
--- /home/mrosenquist/.wadf/pear_local/rcophth-prtflio/php/PHPOF2/DBRow/Simple.php	2008-09-18 15:24:37.000000000 +0100
+++ Simple.php	2008-09-18 16:59:40.000000000 +0100
@@ -26,9 +26,12 @@
 	public  $_labels=array();
 	private $_descriptive_name = null;
 	private $_table_name;
+	private $_table_name_singular;
 	
 	public function __construct(PHPOF2_DBRow &$row) {
+		$this->_created_by = get_class($row);
 		$this->_table_name = $row->table->getTableLabel();
+		$this->_table_name_singular = $row->table->getTableSingularLabel();
 		try {
 			$this->_descriptive_name = $row->getDescriptiveName();
 		} catch (Exception $e) {
@@ -46,6 +49,11 @@
 		return $this->_table_name;
 	}
 	
+	public function getTableSingularLabel()
+	{
+		return $this->_table_name_singular;
+	}
+	
 	public function getDescriptiveName()
 	{
 		return $this->_descriptive_name;
Simple.php.patch (855 bytes)   

Activities

timj

18 Sep 2008 17:13

manager   ~115

Fixed in SVN r1306

Issue History

Date Modified Username Field Change
2 May 2008 17:37 guest New Issue
18 Sep 2008 17:00 mrosenquist File Added: Simple.php.patch
18 Sep 2008 17:11 timj Reporter guest => mrosenquist
18 Sep 2008 17:11 timj Assigned To => timj
18 Sep 2008 17:11 timj Status new => assigned
18 Sep 2008 17:11 timj Target Version => 0.10.1
18 Sep 2008 17:13 timj Status assigned => resolved
18 Sep 2008 17:13 timj Fixed in Version => 0.10.1
18 Sep 2008 17:13 timj Resolution open => fixed
18 Sep 2008 17:13 timj Note Added: 115
18 Sep 2008 17:13 timj Status resolved => closed