PHP Class frontend\modules\user\models\UserMeta

Inheritance: extends yii\db\ActiveRecord
Exibir arquivo Open project: iiyii/getyii Class Usage Examples

Public Methods

Method Description
attributeLabels ( )
beforeDelete ( )
beforeSave ( $insert )
behaviors ( )
deleteOne ( $conditions )
getComment ( )
getTopic ( )
getTweet ( )
isUserAction ( integer $type, string $do = '', integer $targetId ) : integer | string 判断指定分类下操作是否存在
rules ( )
saveNewMeta ( $type, $targetId, $do ) : boolean 添加新的动作
tableName ( )

Method Details

attributeLabels() public method

public attributeLabels ( )

beforeDelete() public method

public beforeDelete ( )

beforeSave() public method

public beforeSave ( $insert )

behaviors() public method

public behaviors ( )

deleteOne() public static method

public static deleteOne ( $conditions )

getComment() public method

public getComment ( )

getTopic() public method

public getTopic ( )

getTweet() public method

public getTweet ( )

isUserAction() public method

判断指定分类下操作是否存在
public isUserAction ( integer $type, string $do = '', integer $targetId ) : integer | string
$type integer 话题还是评论
$do string 动作
$targetId integer 话题ID或者评论ID
return integer | string

rules() public method

public rules ( )

saveNewMeta() public method

添加新的动作
public saveNewMeta ( $type, $targetId, $do ) : boolean
$type
$targetId
$do
return boolean

tableName() public static method

public static tableName ( )