PHP Class common\models\PostComment

Inheritance: extends common\components\db\ActiveRecord
Afficher le fichier Open project: iiyii/getyii Class Usage Examples

Méthodes publiques

Свойство Type Description
$atUsers

Méthodes publiques

Méthode Description
afterSave ( $insert, $changedAttributes )
attributeLabels ( )
beforeSave ( $insert )
findComment ( $id ) : array | null | ActiveRecord | static 通过ID获取指定评论
findCommentList ( $postId ) : static 评论列表
findDeletedComment ( $id ) : array | null | ActiveRecord 获取已经删除过的评论
findModel ( $id, string $condition = '' ) : array | null | ActiveRecord | static 通过ID获取指定评论
getLike ( )
getPost ( )
getTopic ( )
getUser ( )
isCurrent ( ) : boolean 自己写的评论
rules ( )
tableName ( )

Method Details

afterSave() public méthode

public afterSave ( $insert, $changedAttributes )

attributeLabels() public méthode

public attributeLabels ( )

beforeSave() public méthode

public beforeSave ( $insert )

findComment() public static méthode

通过ID获取指定评论
public static findComment ( $id ) : array | null | ActiveRecord | static
$id
Résultat array | null | yii\db\ActiveRecord | static

findCommentList() public static méthode

评论列表
public static findCommentList ( $postId ) : static
$postId
Résultat static

findDeletedComment() public static méthode

获取已经删除过的评论
public static findDeletedComment ( $id ) : array | null | ActiveRecord
$id
Résultat array | null | yii\db\ActiveRecord

findModel() public static méthode

通过ID获取指定评论
public static findModel ( $id, string $condition = '' ) : array | null | ActiveRecord | static
$id
$condition string
Résultat array | null | yii\db\ActiveRecord | static

getLike() public méthode

public getLike ( )

getPost() public méthode

public getPost ( )

getTopic() public méthode

public getTopic ( )

getUser() public méthode

public getUser ( )

isCurrent() public méthode

自己写的评论
public isCurrent ( ) : boolean
Résultat boolean

rules() public méthode

public rules ( )

tableName() public static méthode

public static tableName ( )

Property Details

$atUsers public_oe property

public $atUsers