A set of static utilities for assisting with admin requests
package |
CMS |
---|---|
version |
$Revision$ |
license |
GPL |
since | 2.0 |
author |
Robert Campbell |
is_valid_itemname(string $str) : boolean|string
For use by various modules and the core. The name must begin with an alphanumeric character (but some extended characters are allowed). And must be followed by the same alphanumeric characters note the name is not necessarily guaranteed to be usable in smarty without backticks.
string
$strThe string to test
boolean|string
FALSE on error or the validated string.
get_generic_url(string $in_url) : string
This is useful for things like bookmarks and homepages.
string
$in_urlThe input URL that has the session key in it.
string
A URL that is converted to a generic form.
get_session_url(string $in_url) : string
string
$in_urlThe generic url. usually retrieved from a preference or from the database
string
A URL that has a session key in it.
fetch_latest_cmsms_ver() : string
This method does a remote request to the version check URL at most once per day.
string
site_needs_updating() : boolean
boolean
ITEMNAME_REGEX