X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGroupPrivateMessage%2FGroup_privacy_settings.php;h=771c2ec7824fa888ada964769a9bca3254eb0e84;hb=2a4dc77a633cc78907934fd93200ac16d55be78e;hp=9a8e5c045a7eb60d24716be15a44f795f70105b4;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/plugins/GroupPrivateMessage/Group_privacy_settings.php b/plugins/GroupPrivateMessage/Group_privacy_settings.php index 9a8e5c045a..771c2ec782 100644 --- a/plugins/GroupPrivateMessage/Group_privacy_settings.php +++ b/plugins/GroupPrivateMessage/Group_privacy_settings.php @@ -44,7 +44,7 @@ if (!defined('STATUSNET')) { * * @see DB_DataObject */ -class Group_privacy_settings extends Memcached_DataObject +class Group_privacy_settings extends Managed_DataObject { public $__table = 'group_privacy_settings'; /** ID of the group. */ @@ -70,21 +70,6 @@ class Group_privacy_settings extends Memcached_DataObject const MEMBER = 2; const ADMIN = 4; - /** - * Get an instance by key - * - * This is a utility method to get a single instance with a given key value. - * - * @param string $k Key to use to lookup (usually 'user_id' for this class) - * @param mixed $v Value to lookup - * - * @return User_greeting_count object found, or null for no hits - */ - function staticGet($k, $v=null) - { - return Memcached_DataObject::staticGet('Group_privacy_settings', $k, $v); - } - /** * return table definition for DB_DataObject * @@ -141,7 +126,7 @@ class Group_privacy_settings extends Memcached_DataObject function forGroup($group) { - $gps = Group_privacy_settings::staticGet('group_id', $group->id); + $gps = Group_privacy_settings::getKV('group_id', $group->id); if (empty($gps)) { // make a fake one with defaults