CFIVirtualElements
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- CFI constructor.
- addType() : CFIVirtualElements
- Apply a type a virtual_elements
- addTypeAvatar() : CFIVirtualElements
- Add a virtual_elements with type=image
- addTypeCalculate() : CFIVirtualElements
- Add a virtual_elements with type=calculate
- addTypeCheckbox() : CFIVirtualElements
- Add a virtual_elements with type=ico
- addTypeDisplay() : CFIVirtualElements
- Add a virtual_elements with type=display It allow to Display the current CFO
- addTypeDisplayCFO() : CFIVirtualElements
- Apply an update type to virtual_elements with CFO information.
- addTypeIcon() : CFIVirtualElements
- Add a virtual_elements with type=ico
- addTypeImage() : CFIVirtualElements
- Add a virtual_elements with type=image
- addTypeOnClick() : CFIVirtualElements
- Add a virtual_elements with type=onClick
- addTypeUpdateCFO() : CFIVirtualElements
- Apply an update type to virtual_elements with CFO information.
- addTypeValue() : CFIVirtualElements
- Add a virtual_elements with type=value
- button() : CFIVirtualElements
- The virtual element will be shown as a button
- icon() : CFIVirtualElements
- add an attribute ico on the currect virtual_element
- jsCondition() : CFIVirtualElements
- Javascript condition to be evaluated in frontend
- onClick() : CFIVirtualElements
- add an attribute onClick on the currect virtual_element
- title() : $this
- Apply a title to the field
Properties
$field
public
mixed
$field
$core
private
Core7
$core
$index
private
mixed
$index
= 0
Methods
__construct()
CFI constructor.
public
__construct(Core7 &$core, array<string|int, mixed> &$field) : mixed
Parameters
- $core : Core7
- $field : array<string|int, mixed>
addType()
Apply a type a virtual_elements
public
addType(string $type) : CFIVirtualElements
Parameters
- $type : string
-
type of virtual_element. Allowed values: 'calculate',
Return values
CFIVirtualElementsaddTypeAvatar()
Add a virtual_elements with type=image
public
addTypeAvatar(string $src) : CFIVirtualElements
Parameters
- $src : string
-
url of the image
Return values
CFIVirtualElementsaddTypeCalculate()
Add a virtual_elements with type=calculate
public
addTypeCalculate(string $field, string $type) : CFIVirtualElements
Parameters
- $field : string
-
name of the field in the data
- $type : string
-
type of calculation. Allowed values: 'count'
Return values
CFIVirtualElementsaddTypeCheckbox()
Add a virtual_elements with type=ico
public
addTypeCheckbox(string $title, string $value[, bool $checked = false ][, string $onClick = '' ]) : CFIVirtualElements
Parameters
- $title : string
- $value : string
- $checked : bool = false
- $onClick : string = ''
Return values
CFIVirtualElementsaddTypeDisplay()
Add a virtual_elements with type=display It allow to Display the current CFO
public
addTypeDisplay([string $idField = '' ][, string $fields = '' ]) : CFIVirtualElements
Parameters
- $idField : string = ''
-
optinal field name to be used as Id of the entity. You can leave ot empty if it is ds:Object
- $fields : string = ''
-
optional fields separated by ',' to be send to the CFO to only represent those fields to be displayed
Return values
CFIVirtualElementsaddTypeDisplayCFO()
Apply an update type to virtual_elements with CFO information.
public
addTypeDisplayCFO(string $cfo, mixed $id_value[, string $fields = '' ]) : CFIVirtualElements
Parameters
- $cfo : string
-
The CFO information to be added.
- $id_value : mixed
-
The ID value for the update operation.
- $fields : string = ''
-
(Optional) Additional fields to be updated.
Return values
CFIVirtualElementsaddTypeIcon()
Add a virtual_elements with type=ico
public
addTypeIcon(string $icon) : CFIVirtualElements
Parameters
- $icon : string
-
icon the be used (without fal fa- prefix))
Return values
CFIVirtualElementsaddTypeImage()
Add a virtual_elements with type=image
public
addTypeImage(string $src) : CFIVirtualElements
Parameters
- $src : string
-
url of the image
Return values
CFIVirtualElementsaddTypeOnClick()
Add a virtual_elements with type=onClick
public
addTypeOnClick(string $onclick) : CFIVirtualElements
Parameters
- $onclick : string
-
js value to be executed onClick
Return values
CFIVirtualElementsaddTypeUpdateCFO()
Apply an update type to virtual_elements with CFO information.
public
addTypeUpdateCFO(string $cfo, mixed $id_value[, string $fields = '' ]) : CFIVirtualElements
Parameters
- $cfo : string
-
The CFO information to be added.
- $id_value : mixed
-
The ID value for the update operation.
- $fields : string = ''
-
(Optional) Additional fields to be updated.
Return values
CFIVirtualElementsaddTypeValue()
Add a virtual_elements with type=value
public
addTypeValue(string $value) : CFIVirtualElements
Parameters
- $value : string
-
value to apply. The value admits {{variable}} substitute strings
Return values
CFIVirtualElementsbutton()
The virtual element will be shown as a button
public
button([string $color = 'default' ][, string $icon = '' ]) : CFIVirtualElements
Parameters
- $color : string = 'default'
-
optional color (default will be 'default') of the button: info, success, warning, default, primary, sencondary
- $icon : string = ''
-
optional icon
Return values
CFIVirtualElementsicon()
add an attribute ico on the currect virtual_element
public
icon(string $icon) : CFIVirtualElements
Parameters
- $icon : string
-
to be shown (without fal fa- prefix))
Return values
CFIVirtualElementsjsCondition()
Javascript condition to be evaluated in frontend
public
jsCondition(string $js_condition) : CFIVirtualElements
Parameters
- $js_condition : string
-
js condition to be evaluated in the frontend
Return values
CFIVirtualElementsonClick()
add an attribute onClick on the currect virtual_element
public
onClick(string $onclick) : CFIVirtualElements
Parameters
- $onclick : string
-
js value to be executed onClick
Return values
CFIVirtualElementstitle()
Apply a title to the field
public
title(string $title) : $this
Parameters
- $title : string