Property | Type | Description | |
---|---|---|---|
$_auth | Array to hold values loaded from the DB | ||
$_baseDir | |||
$_baseUrl | (e.g. /home/www/site1/pommo/) | ||
$_config | (e.g. http://s.com/pommo/) - null = autodetect | ||
$_dateformat | log + debug verbosity (1(most)-3(less|default)) | ||
$_dbo | True if language is not english | ||
$_debug | Writable dir (/home/www/site/pommo/cache/) | ||
$_default_subscriber_sort | debug status (bool) | ||
$_escaping | holds the authentication object | ||
$_hasConfigFile | 1: YYYY/MM/DD, 2: MM/DD/YYYY, 3: DD/MM/YYYY | ||
$_hostname | Tells us if config.php exists | ||
$_hostport | (e.g. www.site1.com) - null = autodetect | ||
$_http | bool - true if accessed via HTTPS | ||
$_l10n | the "session" language (if set) | ||
$_language | "http(s)://hostname(:port)" full connection string | ||
$_logger | functions will use htmlspecialchars | ||
$_section | holds the database object | ||
$_session | Current section | ||
$_slanguage | language to translate to (via Pommo::_T()) | ||
$_ssl | (e.g. 80) - null = autodetect | ||
$_verbosity | should be used to sort the subscribers when managing them? | ||
$_workDir | holds the logger (messaging) object |
Method | Description | |
---|---|---|
_T ( $msg ) | * _T Translation (l10n) Function | |
_TP ( $msg, $plural, $count ) | * _TP Takes care of plurals when translating | |
debug ( $text ) | ||
get ( $name = FALSE ) | * get Gets value from Pommo::$_session array | |
init ( $args = [] ) | * init called by page to load page state, populate config, and track authentication. | |
kill ( $msg = NULL, $backtrace = FALSE ) | * kill Used to terminate a script | |
logErrors ( ) | * logErrors error log, E_ERROR trapping | |
preInit ( $baseDir ) | * preInit populates poMMo's core with values from config.php. | |
redirect ( $url, $msg = NULL, $kill = true ) | * redirect Redirect to pommo page | |
reloadConfig ( ) | * reloadConfig Loads config base | |
set ( $value ) | * set Saves value in Pommo::$_session array | |
startSession ( $name = null ) | * startSession Starts a new session | |
toggleEscaping ( $toggle = TRUE ) | * toogleEscaping Changes the escaping status |
Method | Description | |
---|---|---|
__construct ( ) | * __construct Does nothing since everything is static |
public _TP ( $msg, $plural, $count ) | ||
$plural | ||
$count |
public static get ( $name = FALSE ) | ||
$name |
public static init ( $args = [] ) |
public static kill ( $msg = NULL, $backtrace = FALSE ) | ||
$backtrace |
static public logErrors ( ) |
public static redirect ( $url, $msg = NULL, $kill = true ) | ||
$url | ||
$msg | ||
$kill |
static public startSession ( $name = null ) |
public toggleEscaping ( $toggle = TRUE ) |
public static $_config |
public static $_dateformat |
public static $_default_subscriber_sort |
public static $_hasConfigFile |
public static $_language |
public static $_slanguage |
public static $_verbosity |