diff --git a/dblayer.php b/dblayer.php index 786e630..4c61235 100644 --- a/dblayer.php +++ b/dblayer.php @@ -61,6 +61,8 @@ class dblayer extends PDO private $dsn = null; /** The field group delimiter */ private $sep = ""; + /** Titles */ + public $titles = array (); // TODO !! /** Create Table creation from $this->fields with engine abstraction @@ -784,8 +786,16 @@ class dblayer extends PDO if (count ($this->fields) === 0) throw new Exception (dgettext("domframework", "No Field defined"), 500); $arr = array (); - foreach ($this->fields as $field=>$v) - $arr[$field] = $field; + if (count ($this->titles) !== 0) + { + foreach ($this->titles as $field=>$v) + $arr[$field] = $field; + } + else + { + foreach ($this->fields as $field=>$v) + $arr[$field] = $field; + } return $arr; }