PHP Class Longman\TelegramBot\BotanDB

Inheritance: extends DB
Datei anzeigen Open project: akalongman/php-telegram-bot Class Usage Examples

Public Methods

Method Description
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

Method Details

initializeBotanDb() public static method

Initilize botan shortener table
public static initializeBotanDb ( )

insertShortUrl() public static method

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

selectShortUrl() public static method

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