[Fusionforge-commits] r11910 - in trunk/src/common/docman: . views

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Wed Dec 29 13:47:01 CET 2010


Author: nerville
Date: 2010-12-29 13:47:01 +0100 (Wed, 29 Dec 2010)
New Revision: 11910

Modified:
   trunk/src/common/docman/DocumentFactory.class.php
   trunk/src/common/docman/DocumentGroupFactory.class.php
   trunk/src/common/docman/views/tree.php
Log:
cleanup

Modified: trunk/src/common/docman/DocumentFactory.class.php
===================================================================
--- trunk/src/common/docman/DocumentFactory.class.php	2010-12-28 18:48:08 UTC (rev 11909)
+++ trunk/src/common/docman/DocumentFactory.class.php	2010-12-29 12:47:01 UTC (rev 11910)
@@ -323,7 +323,7 @@
 	}
 
 	/**
-	 * getFromStorage - Retrieve documents from storage API
+	 * __getFromStorage - Retrieve documents from storage API
 	 *
 	 * @return	boolean	success or not
 	 * @access	private
@@ -345,16 +345,13 @@
 	}
 
 	/**
-	 * getFromDB - Retrieve documents from database.
+	 * __getFromDB - Retrieve documents from database.
 	 * you can limit query to speed up: warning, once $this->documents is retrieve, it's cached.
 	 *
-	 * @param	int	limit of documents return: default: 0 meaning : no limits
-	 * @param	array	list of columns to order the query: default: title
-	 * @param	boolean	sort : DESC(false) | ASC (true) : default ASC
 	 * @return	boolean	success or not
 	 * @access	private
 	 */
-	private function __getFromDB($limit = 0, $order = array('title'), $sort = true) {
+	private function __getFromDB() {
 		$this->Documents = array();
 		$qpa = db_construct_qpa();
 		$qpa = db_construct_qpa($qpa, 'SELECT * FROM docdata_vw WHERE group_id = $1 ',

Modified: trunk/src/common/docman/DocumentGroupFactory.class.php
===================================================================
--- trunk/src/common/docman/DocumentGroupFactory.class.php	2010-12-28 18:48:08 UTC (rev 11909)
+++ trunk/src/common/docman/DocumentGroupFactory.class.php	2010-12-29 12:47:01 UTC (rev 11910)
@@ -72,7 +72,7 @@
 	/**
 	 * getNested - Return an array of DocumentGroup objects arranged for nested views.
 	 *
-	 * @param	int	The stateid of DocumentGroup.
+	 * @param	int	The stateid of DocumentGroup : default is public (1).
 	 * @return	array	The array of DocumentGroup.
 	 */
 	function &getNested($stateid = 1) {
@@ -105,7 +105,7 @@
 	/**
 	 * getDocumentGroups - Return an array of DocumentGroup objects.
 	 *
-	 * @param	int	The stateid of DocumentGroups
+	 * @param	int	The stateid of DocumentGroups : default is public (1).
 	 * @return	array	The array of DocumentGroup.
 	 */
 	function &getDocumentGroups($stateid = 1) {

Modified: trunk/src/common/docman/views/tree.php
===================================================================
--- trunk/src/common/docman/views/tree.php	2010-12-28 18:48:08 UTC (rev 11909)
+++ trunk/src/common/docman/views/tree.php	2010-12-29 12:47:01 UTC (rev 11910)
@@ -63,8 +63,8 @@
 
 	var treeIndex = ctDraw('myMenuID', myMenu, ctThemeXP1, 'ThemeXP', 0, 1);
 	ctExposeTreeIndex(treeIndex, <?php echo $idExposeTreeIndex ?>);
-	var openItem = ctGetSelectedItem(treeIndex)
-	ctOpenFolder(openItem)
+	var openItem = ctGetSelectedItem(treeIndex);
+	ctOpenFolder(openItem);
 </script>
 
 <?php




More information about the Fusionforge-commits mailing list