UNA
|
Public Member Functions | |
__clone () | |
TemplPageAddComponent ($sKey) | |
msgBox ($sText, $iTimer=0, $sOnClose="") | |
popupBox ($sName, $sTitle, $sContent, $isHiddenByDefault=false) | |
transBox ($sName, $sContent, $isHiddenByDefault=false, $isPlaceInCenter=false) | |
slideBox ($sName, $sContent, $isHiddenByDefault=false) | |
inlineBox ($sName, $sContent, $isHiddenByDefault=false) | |
simpleBoxContent ($sContent, $bWithIndent=true) | |
getIcon ($sCode, $aAttrs=array()) | |
getFontIconAsHtml ($sIconFont, $sClass='', $sAttrs='') | |
getIconAsHtml ($sCode, $aAttrs=array()) | |
getTemplateIcon ($sName) | |
getTemplateImage ($sName) | |
sysIcon ($sIcon, $sName, $sUrl='', $iWidth=0) | |
getStringWithLimitedLength ($sString, $iWidth=45, $isPopupOnOverflow=false, $bReturnString=true) | |
designBoxContent ($sTitle, $sContent, $iTemplateNum=BX_DB_DEF, $mixedMenu=false, $mixedButtons=array()) | |
designBoxMenu ($mixedMenu, $mixedButtons=array()) | |
getMainLogoUrl () | |
getMainMarkUrl () | |
getMainLogo ($aParams=array()) | |
getManifests () | |
getMetaIcons () | |
getInjectionHead () | |
getInjectionHeader () | |
getInjectionFooter () | |
getPopupAlert () | |
getPopupConfirm () | |
getPopupPrompt () | |
timeForJs ($iUnixTimestamp, $sFormatIdentifier=BX_FORMAT_DATE, $bForceFormat=false) | |
timeForJsFullDate ($sDateUTC, $sFormatIdentifier=BX_FORMAT_DATE, $bForceFormat=false, $bUTC=false) | |
statusOnOff ($mixed, $isMsg=false) | |
videoPlayer ($sUrlPoster, $sUrlMP4, $sUrlMP4Hd='', $aAttrs=false, $sStyles=false, $bDynamicMode=false) | |
Static Public Member Functions | |
static | getInstanceWithTemplate ($oTemplate) |
static | getInstance () |
Protected Attributes | |
$_oTemplate | |
$_sDesignBoxMenuTmplDefault | |
$_sDesignBoxMenuIcon | |
$_sDesignBoxMenuIconType | |
$_sDesignBoxMenuClick | |
BxBaseFunctions::__clone | ( | ) |
Prevent cloning the instance
BxBaseFunctions::designBoxContent | ( | $sTitle, | |
$sContent, | |||
$iTemplateNum = BX_DB_DEF, | |||
$mixedMenu = false, | |||
$mixedButtons = array() ) |
Display design box with specified title, template, content and menu.
$sTitle | - design box title, please note that some templates don't use title. |
$sContent | - design box content. |
$iTemplateNum | - number of design box template, use predefined contants only, default is BX_DB_DEF. |
$mixedMenu | - design box menu, it can be:
|
$mixedButtons | - design box menu representation, it can be:
|
|
static |
Implements iBxDolSingleton.
BxBaseFunctions::getMainLogo | ( | $aParams = array() | ) |
BxBaseFunctions::getMainLogoUrl | ( | ) |
Get logo URL.
BxBaseFunctions::getMainMarkUrl | ( | ) |
Get mark URL.
BxBaseFunctions::getManifests | ( | ) |
Get HTML code for manifests.
BxBaseFunctions::getMetaIcons | ( | ) |
Get HTML code for meta icons.
BxBaseFunctions::getStringWithLimitedLength | ( | $sString, | |
$iWidth = 45, | |||
$isPopupOnOverflow = false, | |||
$bReturnString = true ) |
functions for limiting maximal string length
BxBaseFunctions::popupBox | ( | $sName, | |
$sTitle, | |||
$sContent, | |||
$isHiddenByDefault = false ) |
Get standard popup box with title.
string | $sName | - unique name |
string | $sTitle | - translated title |
string | $sContent | - content of the box |
BxBaseFunctions::timeForJs | ( | $iUnixTimestamp, | |
$sFormatIdentifier = BX_FORMAT_DATE, | |||
$bForceFormat = false ) |
Output time wrapped in <time> tag in HTML. Then time is autoformatted using JS upon page load, this is aumatically converted to user's timezone and updated in realtime in case of short periods of 'from now' time format.
Short version of this function:
$iUnixTimestamp | time as unixtimestamp |
$sFormatIdentifier | output format identifier |
$bForceFormat | force provided format and don't use "from now" time autoformat. |
BxBaseFunctions::timeForJsFullDate | ( | $sDateUTC, | |
$sFormatIdentifier = BX_FORMAT_DATE, | |||
$bForceFormat = false, | |||
$bUTC = false ) |
Same as
BxBaseFunctions::transBox | ( | $sName, | |
$sContent, | |||
$isHiddenByDefault = false, | |||
$isPlaceInCenter = false ) |
Get popup box without title.
string | $sName | - unique name |
string | $sContent | - content of the box |
BxBaseFunctions::videoPlayer | ( | $sUrlPoster, | |
$sUrlMP4, | |||
$sUrlMP4Hd = '', | |||
$aAttrs = false, | |||
$sStyles = false, | |||
$bDynamicMode = false ) |
Ouputs HTML5 video player.
$sUrlPoster | video poster image |
$sUrlMP4 | .mp4 video |
$sUrlMP4Hd | .mp4 video in better quality |
$aAttrs | custom attributes, defaults are: controls="" preload="none" autobuffer="" |
$sStyles | custom styles, defaults are: width:100%; height:auto; |