SGLProvides a set of static utility methods used by most modules.
Located in /SGL.php (line 47)
static boolean
logMessage
(mixed $message, [string $file = null], [integer $line = null], [integer $priority = PEAR_LOG_INFO])
static object
raiseError
(string $msg, [int $type = null], [int $behaviour = null], [ $getTranslation = false])
static getCurrentCharset (line 75)
Returns current encoding, ie, utf-8.
static getCurrentLang (line 58)
Returns the 2 letter language code, ie, de for German
static isMinimalInstall (line 477)
Returns true if a minimal version of Seagull has been installed.
static loadRegionList (line 324)
Loads region list for current language. If not found, loads region list for default language (English). Put found data into $GLOBALS.
All region lists should be UTF-8 encoded.
static logMessage (line 100)
Log a message to the global Seagull log backend.
Note that the method can be safely called by simply omitting the deprecated parameters (but doesn't have to be).
static moduleIsEnabled (line 489)
Returns true if a module is installed, ie has a record in the module table.
static raiseError (line 184)
A static method to invoke errors.
static _toCurrentCharset (line 377)
Convert string to current charset from utf-8.
displayMaintenancePage (line 400)
displayStaticPage (line 384)
import (line 305)
Returns true on success, false if resource was not found.
isPhp5 (line 234)
objectCopy (line 267)
objectHasState (line 249)
Returns false if no properties are set.
Simplistic if ($prop) test is intentional, method will return false for props such as 0, "0", "", null, array(), etc.
raiseMsg (line 213)
runningFromCLI (line 280)
Determines current server API, ie, are we running from commandline or webserver.
setNoticeBehaviour (line 295)
Documentation generated on Tue, 23 Feb 2010 18:14:33 +0000 by phpDocumentor 1.4.3