]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Sample/User_greeting_count.php
Updating all Memcached_DataObject extended classes to Managed_DataObject
[quix0rs-gnu-social.git] / plugins / Sample / User_greeting_count.php
index 8128343d817f338660cf12dd27af019bc10ff91f..6c7bcf4911d31f56e6050b151c2457990adc30e0 100644 (file)
@@ -52,27 +52,12 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
  *
  * @see      DB_DataObject
  */
-class User_greeting_count extends Memcached_DataObject
+class User_greeting_count extends Managed_DataObject
 {
     public $__table = 'user_greeting_count'; // table name
     public $user_id;                         // int(4)  primary_key not_null
     public $greeting_count;                  // int(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('User_greeting_count', $k, $v);
-    }
-
     /**
      * return table definition for DB_DataObject
      *