PHP Class frontend\modules\tweet\models\Tweet

Inheritance: extends common\models\Post
Datei anzeigen Open project: iiyii/getyii Class Usage Examples

Public Properties

Property Type Description
$atUsers

Public Methods

Method Description
afterSave ( $insert, $changedAttributes )
beforeSave ( $insert )
findDeletedTweet ( $id ) : array | null | ActiveRecord 获取已经删除过的动弹
findModel ( $id, string $condition = '' ) : array | null | ActiveRecord | static 通过ID获取指定话题
findTweet ( $id ) : array | Topic | null | ActiveRecord 通过ID获取指定动弹
getLike ( )
rules ( )

Method Details

afterSave() public method

public afterSave ( $insert, $changedAttributes )

beforeSave() public method

public beforeSave ( $insert )

findDeletedTweet() public static method

获取已经删除过的动弹
public static findDeletedTweet ( $id ) : array | null | ActiveRecord
$id
return array | null | yii\db\ActiveRecord

findModel() public static method

通过ID获取指定话题
public static findModel ( $id, string $condition = '' ) : array | null | ActiveRecord | static
$id
$condition string
return array | null | yii\db\ActiveRecord | static

findTweet() public static method

通过ID获取指定动弹
public static findTweet ( $id ) : array | Topic | null | ActiveRecord
$id
return array | Topic | null | yii\db\ActiveRecord

getLike() public method

public getLike ( )

rules() public method

public rules ( )

Property Details

$atUsers public_oe property

public $atUsers