SGL_OutputHigh level HTML transform methods, 'Template Helpers' in Yahoo speak, 50% html, 50% php.
Located in /SGL/Output.php (line 50)
static string
translate
(string $key, [string $filter = false], [ $aParams = array()], [ $output = null], [ $lang = null])
string
generateCheckboxList
(array $hElements, array $aChecked, string $groupName, [array $options = null])
string
generateRadioList
(array $elements, string $selected, string $groupname, [integer $newline = false], [boolean $inTable = true], [array $options = null])
string
generateSelect
( $aValues, [mixed $selected = null], [boolean $multiple = false], [array $options = null], [ $translate = false], array $array)
string
makeCssOptimizerLink
([array $aCssHelperParams = array()], [mixed $aDefaultThemeFiles = null], [string $themePreloadFile = null])
string
makeUrl
([string $action = ''], [string $mgr = ''], [string $mod = ''], [array $aList = array()], [string $params = ''], [integer $idx = 0])
string
showDateSelector
(array $aDate, string $sFormName, [boolean $bShowTime = true], [bool $asc = true], [int $years = 5])
string
summarise
(string $str, [integer $limit = 50], [ $element = SGL_WORD], [string $appendString = ' ...'])
string
switchRowClass
([boolean $isBold = false], [string $pColor = 'backDark'], [string $sColor = 'backLight'], [ $id = 'default'])
mixed
$aCssFiles
= array() (line 60)
mixed
$aHeaders
= array() (line 61)
mixed
$aJavascriptFiles
= array() (line 58)
mixed
$aOnLoadEvents
= array() (line 53)
mixed
$aOnReadyDomEvents
= array() (line 57)
mixed
$aOnUnloadEvents
= array() (line 55)
mixed
$aRawJavascriptFiles
= array() (line 59)
mixed
$aStatusCodes
= array(
mixed
$httpProtocol
= 'HTTP/1.0' (line 62)
mixed
$onLoad
= '' (line 52)
mixed
$onReadyDom
= '' (line 56)
mixed
$onUnload
= '' (line 54)
array
$_aJsExportVars
= array() (line 123)
static translate (line 149)
Translates source text into target language.
Constructor SGL_Output (line 134)
Constructor __construct (line 125)
addCssFile (line 820)
For adding CSS files to include.
addHeader (line 1100)
addJavascriptFile (line 756)
For adding Javascript files to include.
addOnLoadEvent (line 690)
addOnUnloadEvent (line 699)
assign (line 950)
Makes new var and assign value.
camelise (line 1067)
exportJsVar (line 1426)
Export js var.
formatBytes (line 452)
Wrapper for SGL_String::formatBytes(), Converts bytes to Kb or MB as appropriate.
formatDate (line 468)
Converts date (may be in the ISO, TIMESTAMP or UNIXTIME format) into dd.mm.yyyy.
formatDatePretty (line 483)
Converts date (may be in the ISO, TIMESTAMP or UNIXTIME format) into "Mar 31, 2003 18:29".
generateCheckbox (line 318)
Generate checkbox.
generateCheckboxList (line 285)
Generates sequence checkboxes.
generateRadioList (line 386)
Generates sequence of radio button from array.
generateRadioPair (line 347)
Generates a yes/no radio pair.
generateSelect (line 225)
Generates options for an HTML select object.
getCurrentId (line 1005)
getCurrentManager (line 983)
getCurrentModule (line 972)
getCurrentTemplate (line 994)
getCurrentUrl (line 902)
getDateFormat (line 497)
Gets appropriate date format
getExecutionTime (line 1075)
getExportedJsVars (line 1441)
getHeaders (line 1115)
getJavascriptFiles (line 774)
getLangDirection (line 1401)
getLangDirectionOpposite (line 1409)
getMemoryUsage (line 1091)
getNoExpiryCheckbox (line 527)
Creates a checkbox for infinite Articles (no expiry)
getOnLoadEvents (line 704)
getOnReadyDomEvents (line 730)
getOnUnloadEvents (line 717)
getQueryCount (line 1083)
hasPerms (line 1033)
Check permission at the template level and returns true if permission exists.
Use as follows in any Flexy template:
To get various perm names, select User module then go to 'perms' section.
humanise (line 1062)
increment (line 957)
isAdmin (line 666)
Returns true if current user or passed role ID is that of an admin.
isAdminOrUnassigned (line 679)
Returns true if $rid is 1 or -1.
isAuthenticated (line 684)
isChecked (line 962)
isEqual (line 941)
Returns true if a and b are equal.
isVerticalNav (line 909)
isWin (line 932)
Returns true if client OS is windows.
makeCssLink (line 1050)
makeCssOptimizerLink (line 1213)
Makes CSS optimizer link.
3. {makeCssOptimizerLink(##,##):h} Loads only stylesheets specified in mgr.
makeJsOptimizerLink (line 1135)
Makes optimizer link for JavaScript files.
How to use:
makeUrl (line 850)
Wrapper for SGL_Url::makeLink.
Generates URL for easy access to modules and actions.
msgGet (line 1359)
Get message, which outputs html in default2 style.
msgGetAdmin (line 617)
Prints formatted error message to standard out.
(For default_admin theme)
nl2br (line 1463)
nl2br
outputBody (line 914)
printf (line 1044)
printf function wrapper.
setStatusCode (line 1107)
showDateSelector (line 514)
Wrapper for SGL_Date::showDateSelector(), Generates date/time selector widget.
summarise (line 605)
Wrapper for SGL_String::summarise(), Returns a shortened version of text string.
switchRowClass (line 546)
Generates alternate classes for rows in tables, used to switch row colors.
switchTrueFalse (line 578)
Generates alternate value (false/true) to be used in template
tr (line 210)
_extractVariableValue (line 193)
_getFilesModifiedTime (line 1341)
Identifies latest mod time for specified files array.
Is used to get "revision" number for optimizer link.
Documentation generated on Tue, 23 Feb 2010 18:14:32 +0000 by phpDocumentor 1.4.3