X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FSubscription_queue.php;h=ea0e906d43fca01c1208eeafc1508fc556d135ab;hb=753019baf27281370e91084d3766e59fa80b66f1;hp=8626f0674b26e28e3bca7b18b3b2c5fe5425e702;hpb=1a9a8ea73032b0ded09a8ea9a4c0511401507090;p=quix0rs-gnu-social.git diff --git a/classes/Subscription_queue.php b/classes/Subscription_queue.php index 8626f0674b..ea0e906d43 100644 --- a/classes/Subscription_queue.php +++ b/classes/Subscription_queue.php @@ -14,10 +14,6 @@ class Subscription_queue extends Managed_DataObject public $subscribed; public $created; - /* Pkey get */ - function pkeyGet($k) - { return Memcached_DataObject::pkeyGet('Subscription_queue',$k); } - /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -66,8 +62,8 @@ class Subscription_queue extends Managed_DataObject */ public function complete() { - $subscriber = Profile::staticGet('id', $this->subscriber); - $subscribed = Profile::staticGet('id', $this->subscribed); + $subscriber = Profile::getKV('id', $this->subscriber); + $subscribed = Profile::getKV('id', $this->subscribed); $sub = Subscription::start($subscriber, $subscribed, Subscription::FORCE); if ($sub) { $this->delete(); @@ -80,8 +76,8 @@ class Subscription_queue extends Managed_DataObject */ public function abort() { - $subscriber = Profile::staticGet('id', $this->subscriber); - $subscribed = Profile::staticGet('id', $this->subscribed); + $subscriber = Profile::getKV('id', $this->subscriber); + $subscribed = Profile::getKV('id', $this->subscribed); if (Event::handle('StartCancelSubscription', array($subscriber, $subscribed))) { $this->delete(); Event::handle('EndCancelSubscription', array($subscriber, $subscribed)); @@ -94,8 +90,8 @@ class Subscription_queue extends Managed_DataObject */ public function notify() { - $other = Profile::staticGet('id', $this->subscriber); - $listenee = User::staticGet('id', $this->subscribed); + $other = Profile::getKV('id', $this->subscriber); + $listenee = User::getKV('id', $this->subscribed); mail_subscribe_pending_notify_profile($listenee, $other); } }