rebuild DB_DataObject classes for new structure
darcs-hash:20080709200711-84dde-b6a9e403ab50ef5a6497a25a756ed63c373f0402.gz
This commit is contained in:
parent
63f1fb4259
commit
816262d488
@ -34,9 +34,11 @@ class Notice extends DB_DataObject
|
|||||||
public $profile_id; // int(4) not_null
|
public $profile_id; // int(4) not_null
|
||||||
public $uri; // varchar(255) unique_key
|
public $uri; // varchar(255) unique_key
|
||||||
public $content; // varchar(140)
|
public $content; // varchar(140)
|
||||||
|
public $rendered; // text()
|
||||||
public $url; // varchar(255)
|
public $url; // varchar(255)
|
||||||
public $created; // datetime() not_null
|
public $created; // datetime() not_null
|
||||||
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
|
public $reply_to; // int(4)
|
||||||
|
|
||||||
/* Static get */
|
/* Static get */
|
||||||
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
|
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
|
||||||
|
@ -31,12 +31,12 @@ class Profile extends DB_DataObject
|
|||||||
|
|
||||||
public $__table = 'profile'; // table name
|
public $__table = 'profile'; // table name
|
||||||
public $id; // int(4) primary_key not_null
|
public $id; // int(4) primary_key not_null
|
||||||
public $nickname; // varchar(64) not_null
|
public $nickname; // varchar(64) multiple_key not_null
|
||||||
public $fullname; // varchar(255)
|
public $fullname; // varchar(255) multiple_key
|
||||||
public $profileurl; // varchar(255)
|
public $profileurl; // varchar(255)
|
||||||
public $homepage; // varchar(255)
|
public $homepage; // varchar(255) multiple_key
|
||||||
public $bio; // varchar(140)
|
public $bio; // varchar(140) multiple_key
|
||||||
public $location; // varchar(255)
|
public $location; // varchar(255) multiple_key
|
||||||
public $created; // datetime() not_null
|
public $created; // datetime() not_null
|
||||||
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ class Reply extends DB_DataObject
|
|||||||
public $__table = 'reply'; // table name
|
public $__table = 'reply'; // table name
|
||||||
public $notice_id; // int(4) primary_key not_null
|
public $notice_id; // int(4) primary_key not_null
|
||||||
public $profile_id; // int(4) primary_key not_null
|
public $profile_id; // int(4) primary_key not_null
|
||||||
public $replied_id; // int(4)
|
|
||||||
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
|
public $replied_id; // int(4)
|
||||||
|
|
||||||
/* Static get */
|
/* Static get */
|
||||||
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Reply',$k,$v); }
|
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Reply',$k,$v); }
|
||||||
|
@ -56,9 +56,11 @@ id = 129
|
|||||||
profile_id = 129
|
profile_id = 129
|
||||||
uri = 2
|
uri = 2
|
||||||
content = 2
|
content = 2
|
||||||
|
rendered = 34
|
||||||
url = 2
|
url = 2
|
||||||
created = 142
|
created = 142
|
||||||
modified = 384
|
modified = 384
|
||||||
|
reply_to = 1
|
||||||
|
|
||||||
[notice__keys]
|
[notice__keys]
|
||||||
id = N
|
id = N
|
||||||
@ -108,8 +110,8 @@ uri = U
|
|||||||
[reply]
|
[reply]
|
||||||
notice_id = 129
|
notice_id = 129
|
||||||
profile_id = 129
|
profile_id = 129
|
||||||
replied_id = 1
|
|
||||||
modified = 384
|
modified = 384
|
||||||
|
replied_id = 1
|
||||||
|
|
||||||
[reply__keys]
|
[reply__keys]
|
||||||
notice_id = K
|
notice_id = K
|
||||||
|
Loading…
Reference in New Issue
Block a user