]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GroupPrivateMessage/Group_privacy_settings.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / plugins / GroupPrivateMessage / Group_privacy_settings.php
index 9a8e5c045a7eb60d24716be15a44f795f70105b4..771c2ec7824fa888ada964769a9bca3254eb0e84 100644 (file)
@@ -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