00001 <?php
00002 
00003 
00004 
00005 
00006 
00007 
00008 class DAOTweets extends DataObjectTimestampedCached implements ISelfDescribing {
00009         public $id;
00010         public $id_twitter;
00011         public $username;
00012         public $title;
00013         public $message;
00014         public $message_html;
00015         
00016         protected function create_table_object() {
00017             return new DBTable(
00018                 'tweets',
00019                         array_merge(array(
00020                                 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00021                                 new DBFieldText('id_twitter', 20, null, DBField::NOT_NULL),
00022                                 new DBFieldText('username', 20, null, DBField::NOT_NULL),
00023                                 new DBFieldText('title', 140, null, DBField::NOT_NULL),
00024                                 new DBFieldText('message', 140, null, DBField::NOT_NULL),
00025                                 new DBFieldText('message_html', DBFieldText::BLOB_LENGTH_SMALL, null, DBField::NOT_NULL),
00026                         ), $this->get_timestamp_field_declarations()),
00027                         'id'            
00028             );
00029         }
00030 
00031         
00032         
00033         
00034         
00035 
00036 
00037 
00038 
00039 
00040         public function get_title() {
00041                 return $this->title;
00042         }
00043 
00044 
00045 
00046 
00047 
00048 
00049         public function get_description() {
00050                 return '';
00051         }       
00052 }