X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPoll%2FPoll_response.php;h=b466e9f592ac84ac3a3b82986e12facafed480ca;hb=c36608b233800e02217b45d5e1eeed21ca3b9034;hp=2518ac2bebd057f8a35e9b6b5a070c8cd99e6238;hpb=59043dca7fb6f974b11797c4d0f20e5b78b0611d;p=quix0rs-gnu-social.git diff --git a/plugins/Poll/Poll_response.php b/plugins/Poll/Poll_response.php index 2518ac2beb..b466e9f592 100644 --- a/plugins/Poll/Poll_response.php +++ b/plugins/Poll/Poll_response.php @@ -52,22 +52,6 @@ class Poll_response extends Managed_DataObject public $selection; // int -> choice # public $created; // datetime - /** - * Get an instance by key - * - * This is a utility method to get a single instance with a given key value. - * - * @param string $k Key to use to lookup (usually 'user_id' for this class) - * @param mixed $v Value to lookup - * - * @return User_greeting_count object found, or null for no hits - * - */ - function staticGet($k, $v=null) - { - return Memcached_DataObject::staticGet('Poll_response', $k, $v); - } - /** * Get an instance by compound key * @@ -118,7 +102,7 @@ class Poll_response extends Managed_DataObject * * @return Poll_response found response or null */ - function getByNotice($notice) + static function getByNotice($notice) { return self::staticGet('uri', $notice->uri); }