PHP Класс bubasuma\simplechat\db\Conversation

С версии: 2.0
Автор: Buba Suma ([email protected])
Наследование: extends yii\db\ActiveRecord
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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