Property | Type | Description | |
---|---|---|---|
$tags | tags list |
Method | Description | |
---|---|---|
afterDelete ( ) | ||
afterFind ( ) | ||
allPosts ( ) : CActiveDataProvider | ||
attributeLabels ( ) : array | ||
beforeSave ( ) : boolean | ||
beforeValidate ( ) : boolean | ||
behaviors ( ) : array | ||
createPublicPost ( array $post ) : boolean | ||
deleteUserPost ( $postId, $userId ) : integer | ||
findUserPost ( $postId, $userId ) : CActiveRecord | ||
get ( $id, array $with = [] ) : mixed | ||
getAccessType ( ) : string | ||
getAccessTypeList ( ) : array | ||
getArchive ( null $blogId = null, integer $cache = 3600 ) : mixed | ||
getByTag ( $tag, array $with = ['blog', 'createUser', 'commentsCount'] ) : mixed | ||
getCategories ( ) : mixed | ||
getCommentCount ( ) : integer | mixed | ||
getCommentStatus ( ) : string | ||
getCommentStatusList ( ) : array | ||
getForBlog ( $blogId ) : Post | ||
getForCategory ( $categoryId ) : Post | ||
getForUser ( $user ) : Post | ||
getLink ( $params = [] ) : mixed | ||
getQuote ( integer $limit = 500 ) : string | ||
getStatus ( ) : string | ||
getStatusList ( ) : array | ||
getStream ( integer $limit = 10, $cacheTime ) : mixed | ||
getTitle ( ) : mixed | string | ||
isDraft ( ) : boolean | ||
isPublished ( ) : boolean | ||
limit ( integer $count = null ) : self | Условие для получения определённого количества записей: | |
model ( string $className = __CLASS__ ) : Post | Returns the static model of the specified AR class. | |
publish ( ) : boolean | ||
relations ( ) : array | ||
rules ( ) : array | ||
scopes ( ) : array | ||
search ( ) : CActiveDataProvider | Retrieves a list of models based on the current search/filter conditions. | |
sortByPubDate ( string $typeSort = 'ASC' ) : self | Условие для сортировки по дате | |
tableName ( ) : string |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public createPublicPost ( array $post ) : boolean | ||
$post | array | |
return | boolean |
public deleteUserPost ( $postId, $userId ) : integer | ||
$postId | ||
$userId | ||
return | integer |
public findUserPost ( $postId, $userId ) : CActiveRecord | ||
$postId | ||
$userId | ||
return | CActiveRecord |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public sortByPubDate ( string $typeSort = 'ASC' ) : self | ||
$typeSort | string | - типо сортировки |
return | self |