Méthode | 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 |
public static initializeBotanDb ( ) |
public static insertShortUrl ( $user_id, $url, $short_url ) : boolean | ||
$user_id | ||
$url | ||
$short_url | ||
Résultat | boolean |
public static selectShortUrl ( $user_id, $url ) : array | boolean | ||
$user_id | ||
$url | ||
Résultat | array | boolean |