X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FSubscription.php;h=deb01eb47c3c224341557331ea16cc2867f02bec;hb=f951b9169392b4a31f2b7eb4fb6eb37235ded8f8;hp=93b46b6f880e5940ca5e621f09a252ba4b30cf1b;hpb=0fa97d6e2e296c780db78b7e88d283670adf1226;p=quix0rs-gnu-social.git diff --git a/classes/Subscription.php b/classes/Subscription.php index 93b46b6f88..deb01eb47c 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -1,10 +1,30 @@ . + */ + +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 */ @@ -13,11 +33,12 @@ 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