X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2FSubscription.php;h=ace2fa4c429e70092ee3402713cf0964d27400ea;hb=2cc3136dca5c46051934ca94684c514584184d71;hp=ca2b21c025596dc1143161a1e31825699453cfbe;hpb=3b14b7901c65144835d74b712279d0492c267c0c;p=quix0rs-gnu-social.git diff --git a/classes/Subscription.php b/classes/Subscription.php index ca2b21c025..ace2fa4c42 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -1,18 +1,18 @@ . */ @@ -22,9 +22,9 @@ if (!defined('LACONICA')) { exit(1); } /** * Table Definition for subscription */ -require_once 'DB/DataObject.php'; +require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; -class Subscription extends DB_DataObject +class Subscription extends Memcached_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ @@ -33,12 +33,17 @@ class Subscription extends DB_DataObject public $subscriber; // int(4) primary_key not_null public $subscribed; // int(4) primary_key not_null public $token; // varchar(255) + public $secret; // varchar(255) public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP /* Static get */ - function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Subscription',$k,$v); } + function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Subscription',$k,$v); } /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function &pkeyGet($kv) { + return Memcached_DataObject::pkeyGet('Subscription', $kv); + } }