Public Method Details |
xlate |
public void xlate(string $text)
|
|
-- I think that this could probably be replaced with sprintf() and variable swapping, but there might be some reason to keep this method... If only for the fact that it's more elegant. Takes a variable number of arguments, the first is the string to translate, subsequent ones are values to replace {*} tags with. This funtion preserves order relationship between tags & arguments so that if tags are re-organized in translated text (very possible), it will still replace the correct values.
|
Parameter |
|
string |
$text |
|
|
The text to be translated. |
|
Returns |
void |
|
get_search_terms |
public void get_search_terms(string $search_data, [ string $prefix, string $suffix ])
|
|
|
Parameter |
|
string |
$search_data |
|
|
the string of keywords |
|
|
string |
$prefix |
= >>null<< |
|
add to beginning of each term (e.g. '%') |
|
|
string |
$suffix |
= >>null<< |
|
add to end of each term (e.g. '%') |
|
Returns |
void |
|
array_thread |
public array array_thread(string $key, array $data)
|
|
|
Parameter |
|
string |
$key |
|
|
The key we want to extract. |
|
|
array |
$data |
|
|
The input array. |
|
Returns |
array A 1-dim array with same number of elements of input array. |
|
get_plugins |
public void get_plugins(string $type)
|
|
OAM: is this only used in dbasis?
|
Parameter |
|
string |
$type |
|
|
The plugin type we are looking for -- corresponds to filesystem directory. |
|
Returns |
void |
|
get_time_quarters |
public string get_time_quarters()
|
|
|
Returns |
string ISO -formatted date to the previous 15 minute increment |
|
encode_section_link |
public string encode_section_link(string $value)
|
|
form in the URL_PATH of a section. Note that this involves a three step encoding: Step 1: base64 encodes the entire string Step 2: replaces the base64 '/' character with hash/pound sign '#' Step 3: prepends an identifying label '*64' To decode an encoded link we use the decode_section_link() function
|
Parameter |
|
string |
$value |
|
|
URL to be encoded. Can be absolute or relative |
|
Returns |
string encoded version of input using modified base64 encoding |
|
decode_section_link |
public mixed decode_section_link(string $value)
|
|
function. This essentially reverses the effect of running the encoding function. It will return the decoded version of the input string or false if the input string is not marked as an encoded URL (eg. has the *64_ prefix
|
Parameter |
|
string |
$value |
|
|
version of the string |
|
Returns |
mixed decoded version of input string or false if input is not encoded |
|