PHP 클래스 bubasuma\simplechat\db\Conversation

부터: 2.0
저자: Buba Suma ([email protected])
상속: extends yii\db\ActiveRecord
파일 보기 프로젝트 열기: bubasuma/yii2-simplechat 1 사용 예제들

공개 메소드들

메소드 설명
attributes ( )
beforeDelete ( )
beforeSave ( $insert )
beforeValidate ( )
find ( ) : ConversationQuery
get ( integer $userId, integer $limit, boolean $history = true, integer $key = null ) : DataProvider
getDeleteUrl ( )
getLastMessage ( ) : ActiveQuery
getLoadUrl ( )
getNewMessages ( ) : ActiveQuery
getReadUrl ( )
getSendUrl ( )
getUnreadUrl ( )
populateRecord ( $record, $row )
read ( $userId, $contactId ) : array
recent ( integer $userId ) : static
remove ( string $userId, string $contactId ) : array
tableName ( )
unread ( $userId, $contactId ) : array

보호된 메소드들

메소드 설명
baseQuery ( integer $userId ) : ConversationQuery

메소드 상세

attributes() 공개 메소드

public attributes ( )

baseQuery() 보호된 정적인 메소드

protected static baseQuery ( integer $userId ) : ConversationQuery
$userId integer
리턴 ConversationQuery

beforeDelete() 공개 메소드

public beforeDelete ( )

beforeSave() 공개 메소드

public beforeSave ( $insert )

beforeValidate() 공개 메소드

public beforeValidate ( )

find() 공개 정적인 메소드

public static find ( ) : ConversationQuery
리턴 ConversationQuery

get() 공개 정적인 메소드

부터: 2.0
public static get ( integer $userId, integer $limit, boolean $history = true, integer $key = null ) : DataProvider
$userId integer
$limit integer
$history boolean
$key integer
리턴 bubasuma\simplechat\DataProvider

getDeleteUrl() 공개 메소드

public getDeleteUrl ( )

getLastMessage() 공개 메소드

public getLastMessage ( ) : ActiveQuery
리턴 yii\db\ActiveQuery

getLoadUrl() 공개 메소드

public getLoadUrl ( )

getNewMessages() 공개 메소드

public getNewMessages ( ) : ActiveQuery
리턴 yii\db\ActiveQuery

getReadUrl() 공개 메소드

public getReadUrl ( )

getSendUrl() 공개 메소드

public getSendUrl ( )

getUnreadUrl() 공개 메소드

public getUnreadUrl ( )

populateRecord() 공개 정적인 메소드

public static populateRecord ( $record, $row )

read() 공개 정적인 메소드

public static read ( $userId, $contactId ) : array
$userId
$contactId
리턴 array the number of rows updated

recent() 공개 정적인 메소드

public static recent ( integer $userId ) : static
$userId integer
리턴 static

remove() 공개 정적인 메소드

public static remove ( string $userId, string $contactId ) : array
$userId string
$contactId string
리턴 array the number of rows updated

tableName() 공개 정적인 메소드

public static tableName ( )

unread() 공개 정적인 메소드

public static unread ( $userId, $contactId ) : array
$userId
$contactId
리턴 array