UpdateValueOnFieldChange implements OnFieldChangeInterface
Updates `TBE_EDITOR` value (the default action), in case a particular field has been changed.
Table of Contents
Interfaces
Properties
- $elementName : string
- $fieldName : string
- $identifier : string
- $tableName : string
Methods
- __construct() : mixed
- __toString() : string
- Backward compatible fallback, returning deprecated JavaScript code for `onclick` element attrs.
- toArray() : array{name: string, data?: string}
- withElementName() : self
- generateInlineJavaScript() : string
Properties
$elementName
protected
string
$elementName
$fieldName
protected
string
$fieldName
$identifier
protected
string
$identifier
$tableName
protected
string
$tableName
Methods
__construct()
public
__construct(string $tableName, string $identifier, string $fieldName, string $elementName) : mixed
Parameters
- $tableName : string
- $identifier : string
- $fieldName : string
- $elementName : string
__toString()
Backward compatible fallback, returning deprecated JavaScript code for `onclick` element attrs.
public
__toString() : string
Return values
stringtoArray()
public
toArray() : array{name: string, data?: string}
Return values
array{name: string, data?: string}withElementName()
public
withElementName(string $elementName) : self
Parameters
- $elementName : string
Return values
selfgenerateInlineJavaScript()
protected
generateInlineJavaScript() : string