JsonData ​
- Type
- Class
- Namespace
- craft\fields\data
- Inherits
- craft\fields\data\JsonData » yii\base\BaseObject
- Implements
- ArrayAccess, IteratorAggregate, craft\base\Serializable, yii\base\Configurable
- Since
- 5.7.0
JSON field data class.
Public Properties ​
Property | Description |
---|---|
iterator | |
json | |
type | |
value |
iterator
​
- Default value
null
- Access
- Read-only
json
​
- Default value
null
- Access
- Read-only
type
​
- Default value
null
- Access
- Read-only
value
​
- Default value
null
- Access
- Read-only
Public Methods ​
Method | Description |
---|---|
__call() | Calls the named method which is not a class method. |
__construct() | |
__get() | Returns the value of an object property. |
__isset() | Checks if a property is set, i.e. defined and not null. |
__set() | Sets value of an object property. |
__toString() | |
__unset() | Sets an object property to null. |
canGetProperty() | Returns a value indicating whether a property can be read. |
canSetProperty() | Returns a value indicating whether a property can be set. |
className() | Returns the fully qualified name of this class. |
getIterator() | |
getJson() | |
getType() | |
getValue() | |
hasMethod() | Returns a value indicating whether a method is defined. |
hasProperty() | Returns a value indicating whether a property is defined. |
init() | Initializes the object. |
offsetExists() | |
offsetGet() | |
offsetSet() | |
offsetUnset() | |
serialize() |
__construct()
​
Arguments ​
$value
$config
__toString()
​
getIterator()
​
getJson()
​
Arguments ​
$pretty
$indent
getType()
​
getValue()
​
offsetExists()
​
Arguments ​
$offset
offsetGet()
​
Arguments ​
$offset
offsetSet()
​
Arguments ​
$offset
$value
offsetUnset()
​
Arguments ​
$offset