Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ticket #1263 - new methods jDaoFactoryBase::getTables and getPrimaryT…

…able
  • Loading branch information...
commit 9e7c61a814574c5b0406c52fbec2f9d715b69e11 1 parent f9f22b0
Didier Huguet authored laurentj committed
Showing with 20 additions and 2 deletions.
  1. +1 −0  lib/jelix/CREDITS
  2. +19 −2 lib/jelix/dao/jDaoFactoryBase.class.php
View
1  lib/jelix/CREDITS
@@ -93,6 +93,7 @@ Emmanuel Hesry (aka m@noo)
Didier Huguet (aka isepman)
- tpl plugin: modifier truncatehtml (#760)
+ - jDaoFactoryBase: methods getTables, getPrimaryTable (#1263)
Charles R. (aka Hugokernel)
View
21 lib/jelix/dao/jDaoFactoryBase.class.php
@@ -10,7 +10,7 @@
* @contributor Mickael Fradin
* @contributor Christophe Thiriot
* @contributor Yannick Le Guédart
- * @contributor Steven Jehannet
+ * @contributor Steven Jehannet, Didier Huguet
* @copyright 2005-2011 Laurent Jouanneau
* @copyright 2007 Loic Mathaud
* @copyright 2007-2009 Julien Issler
@@ -19,7 +19,7 @@
* @copyright 2009 Mickael Fradin
* @copyright 2009 Christophe Thiriot
* @copyright 2010 Yannick Le Guédart
- * @copyright 2010 Steven Jehannet
+ * @copyright 2010 Steven Jehannet, 2010 Didier Huguet
* @link http://www.jelix.org
* @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/
@@ -120,6 +120,23 @@ function __construct($conn){
}
/**
+ * @since 1.3.2
+ * @return array informations on tables
+ * @see $_tables
+ */
+ public function getTables() {
+ return $this->_tables;
+ }
+
+ /**
+ * @since 1.3.2
+ * @return string the id (alias or realname) of the primary table
+ */
+ public function getPrimaryTable() {
+ return $this->_primaryTable;
+ }
+
+ /**
* informations on all properties
*
* keys are property name, and values are an array like that :
Please sign in to comment.
Something went wrong with that request. Please try again.