pungpoo / giix

Automatically exported from code.google.com/p/giix
0 stars 0 forks source link

Change hardcoded representingColumnSeparator to a overridable variable #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When filling in the 'representingColumn' function in a with Giix Generated CRUD 
GxActiveRecord, i'd like to change the separator to make my labels readable. 
Therefore it would be usefull to change the '-' in a variable that can be 
overridden from the sub-class.

GxActiveRecord.php:25:
+   /**
+    * @var string the separator used to separate the columns in 
representingColumn
+    */
+   public $representingColumnSeparator = '-';

GxActiveRecord.php:209:
-$part .= ( $this->$representingColumn_item === null ? '' : 
$this->$representingColumn_item) . '-';
+$part .= ( $this->$representingColumn_item === null ? '' : 
$this->$representingColumn_item) . $representingColumnSeparator;

Original issue reported on code.google.com by albertgr...@gmail.com on 25 Nov 2012 at 5:57

Attachments: