We tried to minimize the number of variables in the global environment.
Some of the global variables are provided through $_obweb, an
instance of obliquidweb class generated by obliquid core.
- $_obweb->tprefix
prefix string for all table names. Default: "sl_"
- $_obweb->mb
Metabase database object
- $_obweb->smframe
Smarty template for the frame
- $_obweb->smblock
Smarty template for the block (slot decoration)
- $_obweb->smslot
Smarty template for the slot
Other variables are instead available through
$_SESSION, the standard PHP array with session data
- $_SESSION["_obtheme"]
current theme (ex: common/theme/rounded)
- $_SESSION["_obthemename"]
name of current theme (ex: rounded)
- $_SESSION["_oblocale"]
current locale (ex: en_GB)
- $_SESSION["_oblang"]
current language (ex: en)
- $_SESSION["_obshortdate"]
Short date in PHP format. see date() for how to format.
Call Locale::shortDate($isodate) to format a date (since 0.7.0).
- $_SESSION["_oblongdate"]
Long date in PHP format. see date() for how to format.
Call Locale::longDate($isodate) to format a date (since 0.7.0)
- $_SESSION["_oberr"]
an error message to show
- $_SESSION["_obsortby"]
sorts users by this fields (ex: surname)
- $_SESSION["_obfgroup"]
shows only users belonging to this id group
- $_SESSION["_obcountry"]
shows only users belonging to this country
- $_SESSION["_obprovincia"]
shows only users belonging to this provincia (Italian district)
- $_SESSION["_obsearch"]
free text search filter (on name, surname, organization and email)
- $_SESSION["_obperson"]
associative array with login info
- $_SESSION["_obperson"]["id_person"]
if it's 0 or not set the user is not logged in, otherwise it contains
the user id
- $_SESSION["_obperson"]["display"]
info to display of the logged person (ex. surname and name)
- $_SESSION["_obsecurity"]
index array of security objects this user has access to
- $_SESSION["_obfcal"]
index array of calendar event types to be shown to filter the displayed
events
- $_SESSION["_obdochome"]
array of search conditions from the previous document search selection
- $_SESSION["_obprjsearch"]
array of search conditions from the previous project search selection