View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 48 | PHPOF2 | Default | public | 2 May 2008 17:37 | 18 Sep 2008 17:13 |
| Reporter | mrosenquist | Assigned To | timj | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Target Version | 0.10.1 | Fixed in Version | 0.10.1 | ||
| Summary | 48: Add the ability to get getTableSingularLabel() to DBRow_SimpleObject | ||||
| Description | Add the ability to get getTableSingularLabel() to DBRow_SimpleObject | ||||
| Tags | No 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;
| ||||
| 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 |