]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
lookup a statusnetwork by tag
authorEvan Prodromou <evan@status.net>
Tue, 26 Apr 2011 19:31:25 +0000 (15:31 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 26 Apr 2011 19:31:25 +0000 (15:31 -0400)
classes/Status_network_tag.php

index 2273ecb2e5cf90fb08d96c30ba3ca65996673474..00ff0d85200c8938421b4e9c818fe7455f75f673 100644 (file)
@@ -129,4 +129,15 @@ class Status_network_tag extends Safe_DataObject
         $this->decache();
         return $ret;
     }
+
+    static function withTag($tag)
+    {
+        $snt = new Status_network_tag();
+
+        $snt->tag = $tag;
+
+        $snt->find();
+
+        return $snt;
+    }
 }