From: Evan Prodromou Date: Tue, 26 Apr 2011 19:31:25 +0000 (-0400) Subject: lookup a statusnetwork by tag X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79c01bec4e99cd50a34f1e8c9f5849673535e90d;p=quix0rs-gnu-social.git lookup a statusnetwork by tag --- diff --git a/classes/Status_network_tag.php b/classes/Status_network_tag.php index 2273ecb2e5..00ff0d8520 100644 --- a/classes/Status_network_tag.php +++ b/classes/Status_network_tag.php @@ -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; + } }