summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-07 15:34:10 -0400
committerEvan Prodromou <evan@status.net>2010-09-07 15:34:10 -0400
commit2d18963b4c2892ac2adbeb8b98974d63d62bfd1d (patch)
tree68f50b9d02a5b3cd582bfb466770613c275f7d10
parentb6440a206d943f063182f6d766ac425b4887faed (diff)
Fix pkeyget call
Fix the pkeyget call in Twitter_synch_Status
-rw-r--r--plugins/TwitterBridge/Twitter_synch_status.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/TwitterBridge/Twitter_synch_status.php b/plugins/TwitterBridge/Twitter_synch_status.php
index 2be3f8140..2a5f1fd60 100644
--- a/plugins/TwitterBridge/Twitter_synch_status.php
+++ b/plugins/TwitterBridge/Twitter_synch_status.php
@@ -64,13 +64,27 @@ class Twitter_synch_status extends Memcached_DataObject
* @param string $k Key to use to lookup (usually 'foreign_id' for this class)
* @param mixed $v Value to lookup
*
- * @return User_greeting_count object found, or null for no hits
+ * @return Twitter_synch_status object found, or null for no hits
*
*/
function staticGet($k, $v=null)
{
- return Memcached_DataObject::staticGet('Twitter_synch_status', $k, $v);
+ throw new Exception("Use pkeyGet() for this class.");
+ }
+
+ /**
+ * Get an instance by compound primary key
+ *
+ * @param array $kv key-value pair array
+ *
+ * @return Twitter_synch_status object found, or null for no hits
+ *
+ */
+
+ function pkeyGet($kv)
+ {
+ return Memcached_DataObject::pkeyGet('Twitter_synch_status', $kv);
}
/**