PHP 클래스 Longman\TelegramBot\ConversationDB

상속: extends DB
파일 보기 프로젝트 열기: akalongman/php-telegram-bot 1 사용 예제들

공개 메소드들

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