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
*/
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();
*/
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));
*/
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);
}
}