X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile_block.php;h=b30e3b244e8ebdf9f6b1c487c949f77ecabb89e4;hb=67801a556610f89a60106c0074c42947967f3adf;hp=85062834629f1665e2aefec216b8fa85eef814ff;hpb=9948523c33ea0d02681ff1e0cd4fcb839dc9df96;p=quix0rs-gnu-social.git diff --git a/classes/Profile_block.php b/classes/Profile_block.php index 8506283462..b30e3b244e 100644 --- a/classes/Profile_block.php +++ b/classes/Profile_block.php @@ -35,10 +35,6 @@ class Profile_block extends Managed_DataObject public $blocked; // int(4) primary_key not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP - /* Static get */ - function staticGet($k,$v=null) - { return Memcached_DataObject::staticGet('Profile_block',$k,$v); } - /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -58,10 +54,9 @@ class Profile_block extends Managed_DataObject ); } - function get($blocker, $blocked) + static function exists(Profile $blocker, Profile $blocked) { - return Memcached_DataObject::pkeyGet('Profile_block', - array('blocker' => $blocker, - 'blocked' => $blocked)); - } + return Profile_block::pkeyGet(array('blocker' => $blocker->id, + 'blocked' => $blocked->id)); + } }