PHP 클래스 frontend\modules\tweet\models\Tweet

상속: extends common\models\Post
파일 보기 프로젝트 열기: iiyii/getyii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$atUsers

공개 메소드들

메소드 설명
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 ( )

메소드 상세

afterSave() 공개 메소드

public afterSave ( $insert, $changedAttributes )

beforeSave() 공개 메소드

public beforeSave ( $insert )

findDeletedTweet() 공개 정적인 메소드

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

findModel() 공개 정적인 메소드

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

findTweet() 공개 정적인 메소드

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

getLike() 공개 메소드

public getLike ( )

rules() 공개 메소드

public rules ( )

프로퍼티 상세

$atUsers 공개적으로 프로퍼티

public $atUsers