]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/NoticeTitle/Notice_title.php
Updating all Memcached_DataObject extended classes to Managed_DataObject
[quix0rs-gnu-social.git] / plugins / NoticeTitle / Notice_title.php
index b66ea9901b25c766c9052d006d07c55028c5bcdf..17dc8bdd1e2e1b70a15886144bbbc30fbbb06bc1 100644 (file)
@@ -44,8 +44,7 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
  *
  * @see      DB_DataObject
  */
-
-class Notice_title extends Memcached_DataObject
+class Notice_title extends Managed_DataObject
 {
     const MAXCHARS = 255;
 
@@ -53,23 +52,6 @@ class Notice_title extends Memcached_DataObject
     public $notice_id;                         // int(4)  primary_key not_null
     public $title;                             // varchar(255)
 
-    /**
-     * 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 Notice_title object found, or null for no hits
-     *
-     */
-
-    function staticGet($k, $v=null)
-    {
-        return Memcached_DataObject::staticGet('Notice_title', $k, $v);
-    }
-
     /**
      * return table definition for DB_DataObject
      *
@@ -78,7 +60,6 @@ class Notice_title extends Memcached_DataObject
      *
      * @return array array of column definitions
      */
-
     function table()
     {
         return array('notice_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
@@ -90,7 +71,6 @@ class Notice_title extends Memcached_DataObject
      *
      * @return array list of key field names
      */
-
     function keys()
     {
         return array_keys($this->keyTypes());
@@ -101,7 +81,6 @@ class Notice_title extends Memcached_DataObject
      *
      * @return array list mapping field names to key types
      */
-
     function keyTypes()
     {
         return array('notice_id' => 'K');
@@ -112,7 +91,6 @@ class Notice_title extends Memcached_DataObject
      *
      * @return array magic three-false array that stops auto-incrementing.
      */
-
     function sequenceKey()
     {
         return array(false, false, false);
@@ -125,7 +103,6 @@ class Notice_title extends Memcached_DataObject
      *
      * @return string title of the notice, or null if none
      */
-
     static function fromNotice($notice)
     {
         $nt = Notice_title::staticGet('notice_id', $notice->id);