CJSCore
Table of Contents
Constants
- USE_ADMIN = 'admin'
- USE_PUBLIC = 'public'
Methods
- GetCoreConfig() : mixed
- GetCoreMessages() : mixed
- GetCoreMessagesScript() : mixed
- getExtInfo() : mixed
- GetHTML() : mixed
- GetInlineCoreJs() : string
- When all scripts are moved to the body, we need this code to add special classes (bx-chrome, bx-ie...) to <html> tag.
- GetScriptsList() : mixed
- Init() : mixed
- IsCoreLoaded() : bool
- Returns true if Core JS was inited
- isExtensionLoaded() : bool
- Returns true if JS extension was loaded.
- IsExtRegistered() : mixed
- markExtensionLoaded() : mixed
- RegisterExt() : mixed
- registerExtensionAsLoaded() : string
- ShowTimer() : mixed
Constants
USE_ADMIN
public
mixed
USE_ADMIN
= 'admin'
USE_PUBLIC
public
mixed
USE_PUBLIC
= 'public'
Methods
GetCoreConfig()
public
static GetCoreConfig() : mixed
GetCoreMessages()
public
static GetCoreMessages([mixed $compositeMode = false ]) : mixed
Parameters
- $compositeMode : mixed = false
GetCoreMessagesScript()
public
static GetCoreMessagesScript([mixed $compositeMode = false ]) : mixed
Parameters
- $compositeMode : mixed = false
getExtInfo()
public
static getExtInfo(mixed $ext) : mixed
Parameters
- $ext : mixed
GetHTML()
public
static GetHTML(mixed $arExt) : mixed
Parameters
- $arExt : mixed
GetInlineCoreJs()
When all scripts are moved to the body, we need this code to add special classes (bx-chrome, bx-ie...) to <html> tag.
public
static GetInlineCoreJs() : string
Return values
stringGetScriptsList()
public
static GetScriptsList() : mixed
Init()
public
static Init([mixed $arExt = array() ][, mixed $bReturn = false ]) : mixed
Parameters
- $arExt : mixed = array()
- $bReturn : mixed = false
IsCoreLoaded()
Returns true if Core JS was inited
public
static IsCoreLoaded() : bool
Return values
boolisExtensionLoaded()
Returns true if JS extension was loaded.
public
static isExtensionLoaded(string $code) : bool
Parameters
- $code : string
-
Code of JS extension.
Return values
boolIsExtRegistered()
public
static IsExtRegistered(mixed $ext) : mixed
Parameters
- $ext : mixed
markExtensionLoaded()
public
static markExtensionLoaded(mixed $code) : mixed
Parameters
- $code : mixed
-
- name of extension
RegisterExt()
public
static RegisterExt(mixed $name, mixed $arPaths) : mixed
Parameters
- $name : mixed
- $arPaths : mixed
registerExtensionAsLoaded()
public
static registerExtensionAsLoaded(mixed $extension[, mixed $bReturn = false ]) : string
Parameters
- $extension : mixed
- $bReturn : mixed = false
Return values
stringShowTimer()
public
static ShowTimer(mixed $params) : mixed
Parameters
- $params : mixed