From 79c01bec4e99cd50a34f1e8c9f5849673535e90d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 26 Apr 2011 15:31:25 -0400 Subject: [PATCH] lookup a statusnetwork by tag --- classes/Status_network_tag.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } } -- 2.39.5