X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FToken.php;h=1fabd72f13a70a1b89a2f62b8bd916f4d425403c;hb=cb8160dd8c7dc3ecfa0df3da1f6d5e9f3a6abcd0;hp=cd14fbfffff4b6e74deed3d2e592f51ecc7f9017;hpb=4b656f47dff2bd6eed4dcfad060b8434d052d883;p=quix0rs-gnu-social.git diff --git a/classes/Token.php b/classes/Token.php index cd14fbffff..1fabd72f13 100644 --- a/classes/Token.php +++ b/classes/Token.php @@ -2,9 +2,9 @@ /** * Table Definition for token */ -require_once 'DB/DataObject.php'; +require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; -class Token extends DB_DataObject +class Token extends Memcached_DataObject { ###START_AUTOCODE /* the code below is auto generated do not remove the above tag */ @@ -14,12 +14,13 @@ class Token extends DB_DataObject public $tok; // char(32) primary_key not_null public $secret; // char(32) not_null public $type; // tinyint(1) not_null - public $state; // tinyint(1) + public $state; // tinyint(1) public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP /* Static get */ - function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Token',$k,$v); } + function staticGet($k,$v=null) + { return Memcached_DataObject::staticGet('Token',$k,$v); } /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE