The followings are the available columns in table 'tbl_post':
package | Default |
---|
addComment( $comment): boolean
This method will set status and post_id of the comment accordingly.
boolean
whether the comment is saved successfully
afterDelete()
afterFind()
afterSave()
attributeLabels(): array
array
customized attribute labels (name=>label)
beforeSave(): boolean
boolean
whether the record should be saved.
getTagLinks(): array
array
a list of links that point to the post list filtered by every tag of this post
getUrl(): string
string
the URL that shows the detail of the post
model( $className = __CLASS__): static
static
the static model class
normalizeTags( $attribute, $params)
relations(): array
array
relational rules.
rules(): array
array
validation rules for model attributes.
search(): \CActiveDataProvider
\CActiveDataProvider
the data provider that can return the needed posts.
tableName(): string
string
the associated database table name
STATUS_DRAFT
STATUS_PUBLISHED
STATUS_ARCHIVED
_oldTags :
id :integer
integer
title :string
string
content :string
string
status :integer
integer
create_time :integer
integer
update_time :integer
integer