summaryrefslogtreecommitdiffstats
path: root/lib/class/flag.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/flag.class.php')
-rw-r--r--lib/class/flag.class.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/class/flag.class.php b/lib/class/flag.class.php
index fe2f3047..05d51583 100644
--- a/lib/class/flag.class.php
+++ b/lib/class/flag.class.php
@@ -143,6 +143,28 @@ class Flag {
} // get_flagged
/**
+ * get_approved
+ * This returns an array of approved flagged songs
+ */
+ function get_approved() {
+
+ $sql = "SELECT id FROM flagged WHERE approved='1'";
+ $db_results = mysql_query($sql,dbh());
+
+
+ /* Default the results array */
+ $results = array();
+
+ /* While it */
+ while ($r = mysql_fetch_assoc($db_results)) {
+ $results[] = $r['id'];
+ }
+
+ return $results;
+
+ } // get_approved
+
+ /**
* add
* This adds a flag entry for an item, it takes an id, a type, the flag type
* and a comment and then inserts the mofo
@@ -179,7 +201,7 @@ class Flag {
return true;
- } // reject
+ } // delete_flag
/**
* approve