HtmlComponentInterface
extends
ComponentInterface
in
Extension interface
Table of Contents
Constants
- ARIKAIM_COMPONENT_TYPE = 'arikaim'
- COMPONENTS_LIBRARY = 4
- EMAIL_COMPONENT_TYPE = 'email'
- EMPTY_COMPONENT_TYPE = 'empty'
- EXTENSION_COMPONENT = 2
- HTML_COMPONENT_TYPE = 'html'
- JS_COMPONENT_TYPE = 'js'
- JSON_COMPONENT_TYPE = 'json'
- PAGE_COMPONENT_TYPE = 'page'
- PRIMARY_TEMLATE = 3
- REACT_COMPONENT_TYPE = 'react'
- RENDER_MODE_EDIT = 1
- RENDER_MODE_VIEW = 0
- STATIC_COMPONENT_TYPE = 'static'
- SVG_COMPONENT_TYPE = 'svg'
- TEMPLATE_COMPONENT = 1
- UNKNOWN_COMPONENT = 0
- VUE_COMPONENT_TYPE = 'vue'
- WIWGET_COMPONENT_TYPE = 'widget'
Methods
- addFile() : void
- Add file
- addIncludedComponent() : void
- Add included component
- clearContent() : void
- Clear content
- getBasePath() : string
- Return base path
- getComponentFile() : string|false
- Get component file
- getComponentType() : string
- Get component type
- getContext() : array<string|int, mixed>
- Get context
- getError() : string|null
- Get error
- getFiles() : array<string|int, mixed>
- Return component files
- getFullName() : string
- Get component full name
- getFullPath() : string
- Get full path
- getHtmlCode() : string
- Get component html code
- getIncludedComponents() : array<string|int, mixed>
- Get included components
- getIncludeFile() : string|null
- Get include file url
- getLanguage() : string
- Get language code
- getLocation() : int
- Get component location
- getName() : string
- Get name
- getOptions() : array<string|int, mixed>
- Get options
- getTemplateFile() : string|false
- Get template file
- getTemplateName() : string|null
- Get template or extension name
- getTemplateUrl() : string
- Get template url
- hasContent() : bool
- Return true if component is not empty
- hasError() : bool
- Return true if component have error
- init() : void
- Init component
- isValid() : bool
- Check if component is valid
- resolve() : bool
- Resolve component
- setComponentType() : void
- Set component type
- setContext() : void
- Set context
- setError() : void
- Set error
- setHtmlCode() : void
- Set html code
- setPrimaryTemplate() : void
- Set primary template name
- toArray() : array<string|int, mixed>
- Convert to array
- url() : string
- Get url
Constants
ARIKAIM_COMPONENT_TYPE
public
mixed
ARIKAIM_COMPONENT_TYPE
= 'arikaim'
COMPONENTS_LIBRARY
public
mixed
COMPONENTS_LIBRARY
= 4
EMAIL_COMPONENT_TYPE
public
mixed
EMAIL_COMPONENT_TYPE
= 'email'
EMPTY_COMPONENT_TYPE
public
mixed
EMPTY_COMPONENT_TYPE
= 'empty'
EXTENSION_COMPONENT
public
mixed
EXTENSION_COMPONENT
= 2
HTML_COMPONENT_TYPE
public
mixed
HTML_COMPONENT_TYPE
= 'html'
JS_COMPONENT_TYPE
public
mixed
JS_COMPONENT_TYPE
= 'js'
JSON_COMPONENT_TYPE
public
mixed
JSON_COMPONENT_TYPE
= 'json'
PAGE_COMPONENT_TYPE
public
mixed
PAGE_COMPONENT_TYPE
= 'page'
PRIMARY_TEMLATE
public
mixed
PRIMARY_TEMLATE
= 3
REACT_COMPONENT_TYPE
public
mixed
REACT_COMPONENT_TYPE
= 'react'
RENDER_MODE_EDIT
public
mixed
RENDER_MODE_EDIT
= 1
RENDER_MODE_VIEW
public
mixed
RENDER_MODE_VIEW
= 0
STATIC_COMPONENT_TYPE
public
mixed
STATIC_COMPONENT_TYPE
= 'static'
SVG_COMPONENT_TYPE
public
mixed
SVG_COMPONENT_TYPE
= 'svg'
TEMPLATE_COMPONENT
public
mixed
TEMPLATE_COMPONENT
= 1
UNKNOWN_COMPONENT
public
mixed
UNKNOWN_COMPONENT
= 0
VUE_COMPONENT_TYPE
public
mixed
VUE_COMPONENT_TYPE
= 'vue'
WIWGET_COMPONENT_TYPE
public
mixed
WIWGET_COMPONENT_TYPE
= 'widget'
Methods
addFile()
Add file
public
addFile(array<string|int, mixed> $file, string $fileType) : void
Parameters
- $file : array<string|int, mixed>
- $fileType : string
addIncludedComponent()
Add included component
public
addIncludedComponent(string $name, string $type[, string|null $id = null ]) : void
Parameters
- $name : string
- $type : string
- $id : string|null = null
clearContent()
Clear content
public
clearContent() : void
getBasePath()
Return base path
public
getBasePath() : string
Return values
stringgetComponentFile()
Get component file
public
getComponentFile(string $fileExt) : string|false
Parameters
- $fileExt : string
Return values
string|falsegetComponentType()
Get component type
public
getComponentType() : string
Return values
stringgetContext()
Get context
public
getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>getError()
Get error
public
getError() : string|null
Return values
string|nullgetFiles()
Return component files
public
getFiles([string $fileType = null ]) : array<string|int, mixed>
Parameters
- $fileType : string = null
Return values
array<string|int, mixed>getFullName()
Get component full name
public
getFullName() : string
Return values
stringgetFullPath()
Get full path
public
getFullPath() : string
Return values
stringgetHtmlCode()
Get component html code
public
getHtmlCode() : string
Return values
stringgetIncludedComponents()
Get included components
public
getIncludedComponents() : array<string|int, mixed>
Return values
array<string|int, mixed>getIncludeFile()
Get include file url
public
getIncludeFile(string $fileType) : string|null
Parameters
- $fileType : string
Return values
string|nullgetLanguage()
Get language code
public
getLanguage() : string
Return values
stringgetLocation()
Get component location
public
getLocation() : int
Return values
intgetName()
Get name
public
getName() : string
Return values
stringgetOptions()
Get options
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getTemplateFile()
Get template file
public
getTemplateFile() : string|false
Return values
string|falsegetTemplateName()
Get template or extension name
public
getTemplateName() : string|null
Return values
string|nullgetTemplateUrl()
Get template url
public
getTemplateUrl() : string
Return values
stringhasContent()
Return true if component is not empty
public
hasContent() : bool
Return values
boolhasError()
Return true if component have error
public
hasError() : bool
Return values
boolinit()
Init component
public
init() : void
isValid()
Check if component is valid
public
isValid() : bool
Return values
boolresolve()
Resolve component
public
resolve([array<string|int, mixed> $params = [] ]) : bool
Parameters
- $params : array<string|int, mixed> = []
Return values
boolsetComponentType()
Set component type
public
setComponentType(string $type) : void
Parameters
- $type : string
setContext()
Set context
public
setContext(array<string|int, mixed> $context) : void
Parameters
- $context : array<string|int, mixed>
setError()
Set error
public
setError(string $code) : void
Parameters
- $code : string
setHtmlCode()
Set html code
public
setHtmlCode(string $code) : void
Parameters
- $code : string
setPrimaryTemplate()
Set primary template name
public
setPrimaryTemplate(string $name) : void
Parameters
- $name : string
toArray()
Convert to array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>url()
Get url
public
url() : string