save title and description of bookmark
This commit is contained in:
parent
85d54cbdb7
commit
563f067508
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user