BabelHelpers extends Base
Class Polyfill
Table of Contents
Constants
- TYPE_CALL_TRACKER = 'call.tracker'
- TYPE_CALL_TRACKER_EDITOR = 'call.tracker.ed'
- TYPE_FORM = 'form'
- TYPE_GLOBAL = 'global'
- TYPE_GUEST = 'guest'
- TYPE_SITE_BUTTON = 'button'
Methods
- build() : bool
- Build.
- checkFileExists() : bool
- Check file exists.
- configure() : void
- Configure. Set extensions and modules to controller.
- delete() : void
- Delete.
- getContent() : string
- Get content.
- getEmbeddedBody() : string
- Get embedded body.
- getEmbeddedFileUrl() : string
- Get embedded body.
- getEmbeddedModule() : Module
- Get embedded module.
- getEmbeddedScript() : string
- Get embedded script.
- getId() : int|null
- Get controller.
- getLoader() : Loader
- Get embedded body.
- getModule() : Module|null
- Get module.
- getTagAttributes() : array<string|int, mixed>
- Get tag attributes.
- hasRow() : mixed
- instance() : static
- Get instance.
- isBuilt() : bool
- Return true if it was built.
- onAfterBuild() : void
- rebuild() : bool
- Rebuild.
- rebuildAgent() : string
- Rebuild agent.
- rebuildAll() : void
- Rebuild all packs.
- setCacheTtl() : $this
- Get embedded body.
- setTagAttribute() : $this
- Set tag attribute.
Constants
TYPE_CALL_TRACKER
public
mixed
TYPE_CALL_TRACKER
= 'call.tracker'
TYPE_CALL_TRACKER_EDITOR
public
mixed
TYPE_CALL_TRACKER_EDITOR
= 'call.tracker.ed'
TYPE_FORM
public
mixed
TYPE_FORM
= 'form'
TYPE_GLOBAL
public
mixed
TYPE_GLOBAL
= 'global'
TYPE_GUEST
public
mixed
TYPE_GUEST
= 'guest'
TYPE_SITE_BUTTON
public
mixed
TYPE_SITE_BUTTON
= 'button'
Methods
build()
Build.
public
build() : bool
Return values
boolcheckFileExists()
Check file exists.
public
final checkFileExists() : bool
Return values
boolconfigure()
Configure. Set extensions and modules to controller.
public
configure() : void
delete()
Delete.
public
delete() : void
getContent()
Get content.
public
getContent() : string
Return values
stringgetEmbeddedBody()
Get embedded body.
public
getEmbeddedBody() : string
Return values
stringgetEmbeddedFileUrl()
Get embedded body.
public
getEmbeddedFileUrl() : string
Return values
stringgetEmbeddedModule()
Get embedded module.
public
getEmbeddedModule() : Module
Return values
ModulegetEmbeddedScript()
Get embedded script.
public
getEmbeddedScript() : string
Return values
stringgetId()
Get controller.
public
getId() : int|null
Return values
int|nullgetLoader()
Get embedded body.
public
getLoader() : Loader
Return values
LoadergetModule()
Get module.
public
getModule(string $name) : Module|null
Parameters
- $name : string
-
Name.
Return values
Module|nullgetTagAttributes()
Get tag attributes.
public
getTagAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>hasRow()
public
hasRow() : mixed
instance()
Get instance.
public
static instance() : static
Return values
staticisBuilt()
Return true if it was built.
public
isBuilt([Date $dateFrom = null ]) : bool
Parameters
- $dateFrom : Date = null
-
Check if file date update is greater Date from parameter.
Return values
boolonAfterBuild()
public
onAfterBuild(Result $result) : void
Parameters
- $result : Result
rebuild()
Rebuild.
public
final static rebuild(int $id) : bool
Parameters
- $id : int
-
ID.
Return values
boolrebuildAgent()
Rebuild agent.
public
static rebuildAgent() : string
Return values
stringrebuildAll()
Rebuild all packs.
public
final static rebuildAll() : void
setCacheTtl()
Get embedded body.
public
setCacheTtl(int $cacheTtl) : $this
Parameters
- $cacheTtl : int
-
Cache ttl.
Return values
$thissetTagAttribute()
Set tag attribute.
public
setTagAttribute(string $key, mixed $value) : $this
Parameters
- $key : string
- $value : mixed