From dadd4f1d9ecd19e6e4617c98e6eca629765f0286 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 28 Apr 2017 13:17:33 +0000 Subject: [PATCH] - dblayeroo: Add a export configuration feature to return an array with all the defined parameters git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3556 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dblayeroo.php b/dblayeroo.php index 204c1ee..006fa1a 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -1183,6 +1183,22 @@ class dblayeroo } /* }}} */ + /** Dump the configuration of the table in an array + */ + public function exportConf () + /* {{{ */ + { + return array ("table" => $this->table, + "tableprefix" => $this->tableprefix, + "fields" => $this->fields, + "primary" => $this->primary, + "unique" => $this->unique, + "foreign" => $this->foreign, + "titles" => $this->titles, + ); + } + /* }}} */ + ///////////////////////////////////// /// MANAGE THE REQUEST BY OOP /// ///////////////////////////////////// @@ -1359,9 +1375,11 @@ class dblayeroo * @deprecated 0.36 */ public function displayColumn ($columnNames = array ()) + /* {{{ */ { return $this->displayAdd ($columnNames); } + /* }}} */ /** Set the columns to display for the next SELECT request. * The columns are ordered by the first added to the last added