URL

Common methods for handling URLs.

version 1
package wikindx4\core\urls
author Mark Grimshaw

 Methods

URL

__construct() 

grab URLs from provided db field value

getUrls(string $field) : array

Function does: unserialize(base64_decode($field))

Parameters

$field

string

Returns

array

reduce the size of long URL to keep web browser display tidy

reduceUrl(string $text, int $limit) : string

Parameters

$text

string

$limit

int

Default is FALSE

Returns

string

 Properties

 

$session