PHP 클래스 Longman\TelegramBot\BotanDB

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

공개 메소드들

메소드 설명
initializeBotanDb ( ) Initilize botan shortener table
insertShortUrl ( $user_id, $url, $short_url ) : boolean Insert shortened URL into the database
selectShortUrl ( $user_id, $url ) : array | boolean Select cached shortened URL from the database

메소드 상세

initializeBotanDb() 공개 정적인 메소드

Initilize botan shortener table
public static initializeBotanDb ( )

insertShortUrl() 공개 정적인 메소드

Insert shortened URL into the database
public static insertShortUrl ( $user_id, $url, $short_url ) : boolean
$user_id
$url
$short_url
리턴 boolean

selectShortUrl() 공개 정적인 메소드

Select cached shortened URL from the database
public static selectShortUrl ( $user_id, $url ) : array | boolean
$user_id
$url
리턴 array | boolean