From a2f8c5da171d23790811677affd7ca5301a995a5 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 16 Feb 2010 23:30:08 -0800 Subject: New Conversation DO to handle remote notices as conversation roots --- classes/Conversation.php | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ classes/statusnet.ini | 9 +++++++++ 2 files changed, 58 insertions(+) create mode 100755 classes/Conversation.php (limited to 'classes') diff --git a/classes/Conversation.php b/classes/Conversation.php new file mode 100755 index 000000000..929b06c14 --- /dev/null +++ b/classes/Conversation.php @@ -0,0 +1,49 @@ +. + * + * @category Data + * @package StatusNet + * @author Zach Copley + * @copyright 2010 StatusNet Inc. + * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 + * @link http://status.net/ + */ + +require_once INSTALLDIR . '/classes/Memcached_DataObject.php'; + +class Conversation extends Memcached_DataObject +{ + ###START_AUTOCODE + /* the code below is auto generated do not remove the above tag */ + + public $__table = 'conversation'; // table name + public $id; // int(4) primary_key not_null + public $uri; // varchar(225) unique_key not_null + public $created; // datetime not_null + public $modified; // timestamp not_null default_CURRENT_TIMESTAMP + + /* Static get */ + function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Session',$k,$v); } + + /* the code above is auto generated do not remove the tag below */ + ###END_AUTOCODE +} + diff --git a/classes/statusnet.ini b/classes/statusnet.ini index 5f8da7cf5..7a9ae07e7 100644 --- a/classes/statusnet.ini +++ b/classes/statusnet.ini @@ -47,6 +47,15 @@ modified = 384 [consumer__keys] consumer_key = K +[conversation] +id = 129 +uri = 130 +created = 142 +modified = 384 + +[conversation__keys] +id = N + [deleted_notice] id = 129 profile_id = 129 -- cgit v1.2.3-54-g00ecf