Form extends Base
Class Form
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
- addCheckResourcesAgent() : void
- Add check resources agent.
- build() : bool
- Build.
- checkFileExists() : bool
- Check file exists.
- checkResourcesFileExistsAgent() : string
- Check resources file exists.
- configure() : void
- Configure. Set extensions and modules to controller.
- configureFormEmbeddedScript() : mixed
- 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.
- rebuildResources() : string
- Rebuild resources.
- rebuildResourcesAgent() : string
- Rebuild resources agent.
- setAdditionalFormOptions() : mixed
- setAdditionalOptions() : mixed
- 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
addCheckResourcesAgent()
Add check resources agent.
public
static addCheckResourcesAgent() : void
build()
Build.
public
build() : bool
Return values
boolcheckFileExists()
Check file exists.
public
final checkFileExists() : bool
Return values
boolcheckResourcesFileExistsAgent()
Check resources file exists.
public
static checkResourcesFileExistsAgent() : string
Return values
stringconfigure()
Configure. Set extensions and modules to controller.
public
configure() : void
configureFormEmbeddedScript()
public
configureFormEmbeddedScript([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
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(int $formId) : static
Parameters
- $formId : int
-
Form ID.
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(int $formId) : string
Parameters
- $formId : int
-
Form ID.
Return values
stringrebuildAll()
Rebuild all packs.
public
final static rebuildAll() : void
rebuildResources()
Rebuild resources.
public
static rebuildResources() : string
Return values
stringrebuildResourcesAgent()
Rebuild resources agent.
public
static rebuildResourcesAgent() : string
Return values
stringsetAdditionalFormOptions()
public
setAdditionalFormOptions([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
setAdditionalOptions()
public
setAdditionalOptions([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
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