[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/frs FRSPackage.class,1.7,1.8
From: |
tom |
Subject: |
[Gforge-commits] gforge/common/frs FRSPackage.class,1.7,1.8 |
Date: |
Thu, 05 Feb 2004 17:06:48 -0600 |
Update of /cvsroot/gforge/gforge/common/frs
In directory db.perdue.net:/tmp/cvs-serv13606/common/frs
Modified Files:
FRSPackage.class
Log Message:
Added getMonitorCount function to support RFE 672
Index: FRSPackage.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/frs/FRSPackage.class,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- FRSPackage.class 12 Feb 2003 17:23:47 -0000 1.7
+++ FRSPackage.class 5 Feb 2004 23:06:45 -0000 1.8
@@ -232,6 +232,21 @@
}
/**
+ * getMonitorCount - Get the count of people monitoring this
package
+ *
+ * @return int the count
+ */
+ function getMonitorCount() {
+ $sql = "select id from filemodule_monitor where filemodule_id =
".$this->getID();
+ $res = db_numrows(db_query($sql));
+ if (!$res) {
+ $this->setError('FRSPackage::getMonitorCount() Error On
querying monitor count: '.db_error());
+ return false;
+ }
+ return $res;
+ }
+
+ /**
* isMonitoring - Is the current user in the list of people monitoring
this package.
*
* @return boolean is_monitoring.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/frs FRSPackage.class,1.7,1.8,
tom <=