$data
$data : array
Data model for CustomFieldValues.
__construct(array $data = array())
Constructor.
| array | $data |
setField( $key, $value) : $this
Set a a data value by key.
| $key | ||
| $value |
getField( $key, $defaultValue = null) : mixed
Get a data value by key.
| $key | ||
| $defaultValue |
hasField( $key) : boolean
Check if the data has a field by key.
| $key |
removeField( $key) : $this
Remove a data value by key.
| $key |
getData() : array
Get the data array.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293hasData() : boolean
Check if data array is populated with anything.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293getValues() : array
Get all values for all modules.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/gidriss/miva/tools/api-sdk/sdk-tools/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293getValue( $code, $module = 'customfields') : string
Get a value for a module by its code.
| $code | ||
| $module |
hasValue( $code, $module = 'customfields') : boolean
Check if a value for code and module exists.
| $code | ||
| $module |
hasModule( $module) : boolean
Check if a specific module is defined.
| $module |
getModule( $module) : array
Get a specific modules custom field values.
| $module |
setValues(array $values) : $this
Set custom field values.
| array | $values |
addValue( $field, $value, $module = 'customfields') : $this
Add a custom field value.
| $field | ||
| $value | ||
| $module |