메소드 | 설명 | |
---|---|---|
afterDelete ( ) | ||
attributeDescriptions ( ) : array | ||
attributeLabels ( ) : array | ||
beforeSave ( ) : boolean | ||
beforeValidate ( ) : boolean | ||
behaviors ( ) : array | ||
get ( $id, array $with = ['posts', 'membersCount', 'createUser'] ) : mixed | ||
getBySlug ( $id, array $with = ['posts', 'membersCount', 'createUser'] ) : mixed | ||
getByUrl ( string $url = null ) : self | Условие для получения блога по url | |
getList ( ) : mixed | ||
getListForUser ( $userId ) : array | mixed | ||
getMemberStatusList ( ) : array | ||
getMembersList ( ) : UserToBlog | ||
getMembershipListForUser ( $user ) : mixed | ||
getPostStatusList ( ) : array | ||
getPosts ( ) : Post | ||
getPrivateBlogsForUser ( $userId ) : mixed | ||
getStatus ( ) : string | ||
getStatusList ( ) : array | ||
getType ( ) : string | ||
getTypeList ( ) : array | ||
getUserMembership ( $userId ) : CActiveRecord | ||
hasUserInStatus ( $userId, $status ) : mixed | ||
isOwner ( $userId ) : boolean | ||
isPrivate ( ) : boolean | ||
join ( $userId ) : boolean | ||
leave ( $userId ) : boolean | integer | ||
model ( string $className = __CLASS__ ) : Blog | Returns the static model of the specified AR class. | |
relations ( ) : array | ||
rules ( ) : array | ||
scopes ( ) : array | ||
search ( ) : CActiveDataProvider | ||
tableName ( ) : string | ||
userIn ( $userId, integer $status = UserToBlog::STATUS_ACTIVE ) : boolean | integer |
public attributeDescriptions ( ) : array | ||
리턴 | array | customized attribute descriptions (name=>description) |
public attributeLabels ( ) : array | ||
리턴 | array | customized attribute labels (name=>label) |
public getUserMembership ( $userId ) : CActiveRecord | ||
$userId | ||
리턴 | CActiveRecord |
public hasUserInStatus ( $userId, $status ) : mixed | ||
$userId | ||
$status | ||
리턴 | mixed |