[Fusionforge-commits] r7649 - trunk/gforge/common/docman
Roland Mas
lolando at libremir.placard.fr.eu.org
Thu May 14 20:25:14 CEST 2009
Author: lolando
Date: 2009-05-14 20:25:14 +0200 (Thu, 14 May 2009)
New Revision: 7649
Modified:
trunk/gforge/common/docman/DocumentFactory.class.php
Log:
Removed leftover code
Modified: trunk/gforge/common/docman/DocumentFactory.class.php
===================================================================
--- trunk/gforge/common/docman/DocumentFactory.class.php 2009-05-14 18:25:06 UTC (rev 7648)
+++ trunk/gforge/common/docman/DocumentFactory.class.php 2009-05-14 18:25:14 UTC (rev 7649)
@@ -183,57 +183,6 @@
}
return $return;
-
-/*
- if (!$this->stateid) {
- if (session_loggedin()) {
- $perm =& $this->Group->getPermission( session_get_user() );
- if (!$perm || !is_object($perm) || !$perm->isMember()) {
- $public_flag='AND stateid=1';
- } else {
- $public_flag='AND stateid IN (1,4,5)';
- }
- } else {
- $public_flag='AND stateid=1';
- }
- } else {
- if ($this->stateid =='ALL') {
-
- } else {
- $public_flag='AND stateid =\''.$this->stateid.'\'';
- }
- }
-
- if ($this->docgroupid) {
- $docgroupsql="AND doc_group='".$this->docgroupid."'";
- }
-
- if ($this->languageid) {
- $languagesql="AND language_id='".$this->languageid."'";
- }
-
- $sql="SELECT *
- FROM docdata_vw
- WHERE group_id='". $this->Group->getID() ."'
- $public_flag
- $docgroupsql
- $languagesql
- ORDER BY ".$this->sort;
-
- $result = db_query ($sql);
-
- $rows = db_numrows($result);
-
- if (!$result || $rows < 1) {
- $this->setError(_('No Documents Found')." ".db_error());
- return false;
- } else {
- while ($arr =& db_fetch_array($result)) {
- $this->Documents[] = new Document($this->Group, $arr['docid'], $arr);
- }
- }
- return $this->Documents;
-*/
}
/**
More information about the Fusionforge-commits
mailing list