]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
save title and description of bookmark
authorEvan Prodromou <evan@status.net>
Sat, 18 Dec 2010 07:39:24 +0000 (02:39 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 18 Dec 2010 07:39:24 +0000 (02:39 -0500)
plugins/Bookmark/Notice_bookmark.php

index 772fad528b2fe99bae8b924e85d82d07fcf8a788..6a49421fb5c38ec5ebc76778d94497f01fd9b82f 100644 (file)
@@ -47,6 +47,8 @@ class Notice_bookmark extends Memcached_DataObject
 {
     public $__table = 'notice_bookmark'; // table name
     public $notice_id;                   // int(4)  primary_key not_null
+       public $title;                       // varchar(255)
+       public $description;                 // text
 
     /**
      * Get an instance by key
@@ -76,7 +78,9 @@ class Notice_bookmark extends Memcached_DataObject
 
     function table()
     {
-        return array('notice_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL);
+        return array('notice_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
+                     'title' => DB_DATAOBJECT_STR,
+                                        'description' => DB_DATAOBJECT_STR);
     }
 
     /**