summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-23 20:58:02 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-23 20:58:02 -0500
commit82696b150e6365f2dc40f2626b327d124a6e02a0 (patch)
tree0401dd5c24ff21c22f7ede5d1701e63db53b3591 /classes/Profile.php
parent58c7af21db187cd9823b81b7e84bf33794dc929f (diff)
show dropdown of tags only when tags are available and add tags function to profile
darcs-hash:20081124015802-84dde-d72651ff0c466d15835fe263e96bdd9b34162849.gz
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 794dc1de9..2d6b48217 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -145,4 +145,17 @@ class Profile extends Memcached_DataObject
}
return NULL;
}
+
+ # Get list of tags we tagged other users with
+
+ function getAllTags() {
+ $profile_tag = new Notice_tag();
+ $profile_tag->query('SELECT DISTINCT(tag) FROM profile_tag WHERE tagger = ' . $this->id);
+ $tags = array();
+ while ($profile_tag->fetch()) {
+ $tags[] = $profile_tag->tag;
+ }
+ $profile_tag->free();
+ return $tags;
+ }
}