PHP Класс Longman\TelegramBot\ConversationDB

Наследование: extends DB
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
initializeConversation ( ) Initilize conversation table
insertConversation ( integer $user_id, integer $chat_id, string $command ) : boolean Insert the conversation in the database
selectConversation ( integer $user_id, integer $chat_id, boolean $limit = null ) : array | boolean Select a conversation from the DB
update ( string $table, array $fields_values, array $where_fields_values ) : boolean Update the conversation in the database
updateConversation ( array $fields_values, array $where_fields_values ) : boolean Update a specific conversation

Описание методов

initializeConversation() публичный статический Метод

Initilize conversation table
public static initializeConversation ( )

insertConversation() публичный статический Метод

Insert the conversation in the database
public static insertConversation ( integer $user_id, integer $chat_id, string $command ) : boolean
$user_id integer
$chat_id integer
$command string
Результат boolean

selectConversation() публичный статический Метод

Select a conversation from the DB
public static selectConversation ( integer $user_id, integer $chat_id, boolean $limit = null ) : array | boolean
$user_id integer
$chat_id integer
$limit boolean
Результат array | boolean

update() публичный статический Метод

Update the conversation in the database
public static update ( string $table, array $fields_values, array $where_fields_values ) : boolean
$table string
$fields_values array
$where_fields_values array
Результат boolean

updateConversation() публичный статический Метод

Update a specific conversation
public static updateConversation ( array $fields_values, array $where_fields_values ) : boolean
$fields_values array
$where_fields_values array
Результат boolean