Method | Description | |
---|---|---|
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 | ||
return | array | customized attribute descriptions (name=>description) |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public getListForUser ( $userId ) : array | mixed | ||
$userId | ||
return | array | mixed |
public getMembershipListForUser ( $user ) : mixed | ||
$user | ||
return | mixed |
public getPrivateBlogsForUser ( $userId ) : mixed | ||
$userId | ||
return | mixed |
public getUserMembership ( $userId ) : CActiveRecord | ||
$userId | ||
return | CActiveRecord |
public hasUserInStatus ( $userId, $status ) : mixed | ||
$userId | ||
$status | ||
return | mixed |