PHP Class bubasuma\simplechat\db\Conversation

Since: 2.0
Author: Buba Suma ([email protected])
Inheritance: extends yii\db\ActiveRecord
Afficher le fichier Open project: bubasuma/yii2-simplechat Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
baseQuery ( integer $userId ) : ConversationQuery

Method Details

attributes() public méthode

public attributes ( )

baseQuery() protected static méthode

protected static baseQuery ( integer $userId ) : ConversationQuery
$userId integer
Résultat ConversationQuery

beforeDelete() public méthode

public beforeDelete ( )

beforeSave() public méthode

public beforeSave ( $insert )

beforeValidate() public méthode

public beforeValidate ( )

find() public static méthode

public static find ( ) : ConversationQuery
Résultat ConversationQuery

get() public static méthode

Since: 2.0
public static get ( integer $userId, integer $limit, boolean $history = true, integer $key = null ) : DataProvider
$userId integer
$limit integer
$history boolean
$key integer
Résultat bubasuma\simplechat\DataProvider

getDeleteUrl() public méthode

public getDeleteUrl ( )

getLastMessage() public méthode

public getLastMessage ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getLoadUrl() public méthode

public getLoadUrl ( )

getNewMessages() public méthode

public getNewMessages ( ) : ActiveQuery
Résultat yii\db\ActiveQuery

getReadUrl() public méthode

public getReadUrl ( )

getSendUrl() public méthode

public getSendUrl ( )

getUnreadUrl() public méthode

public getUnreadUrl ( )

populateRecord() public static méthode

public static populateRecord ( $record, $row )

read() public static méthode

public static read ( $userId, $contactId ) : array
$userId
$contactId
Résultat array the number of rows updated

recent() public static méthode

public static recent ( integer $userId ) : static
$userId integer
Résultat static

remove() public static méthode

public static remove ( string $userId, string $contactId ) : array
$userId string
$contactId string
Résultat array the number of rows updated

tableName() public static méthode

public static tableName ( )

unread() public static méthode

public static unread ( $userId, $contactId ) : array
$userId
$contactId
Résultat array