Permalink
Browse files

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

…able
  • Loading branch information...
1 parent f9f22b0 commit 9e7c61a814574c5b0406c52fbec2f9d715b69e11 Didier Huguet committed with laurentj Dec 23, 2011
Showing with 20 additions and 2 deletions.
  1. +1 −0 lib/jelix/CREDITS
  2. +19 −2 lib/jelix/dao/jDaoFactoryBase.class.php
View
@@ -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)
@@ -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
*/
@@ -119,6 +119,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
*

0 comments on commit 9e7c61a

Please sign in to comment.