|
| __construct ( $type, $identity, $label) |
| Construct a new ZKey instance.
|
|
| isValid () |
| @inheritDoc
|
|
| getZValue () |
| Get all the data (type, ID and labels) that describe this ZKey.
|
|
| getKeyType () |
| Get the Zid for the type that describes the value of this key.
|
|
| getKeyId () |
| Get the ZKey Id.
|
|
| getKeyLabel () |
| Get the ZMultilingualString that contains the label for this key.
|
|
| __construct ( $type) |
| Construct a new ZObject instance.
|
|
| getValueByKey (string $key) |
| Fetch value of given key from the current ZObject.
|
|
| setValueByKey (string $key, ZObject $value) |
| Set a value of given key in the current ZObject.
|
|
| isBuiltin () |
| Returns whether this ZObject is a builtin class.
|
|
| isTypeReference () |
| Returns whether the object type is a ZReference that points to a type.
|
|
| isTypeFunctionCall () |
| Returns whether the object type is a ZFunctionCall that resolves to a type.
|
|
| getZTypeObject () |
| Returns either the ZReference or the ZFunctionCall that contain the type of this ZObject (Z1K1)
|
|
| getZType () |
| Returns a string with the Zid representing the type of this ZObject.
|
|
| getLinkedZObjects () |
| Return all ZObject Zids that are linked to the current ZObject.
|
|
| getSerialized ( $form=self::FORM_CANONICAL) |
| Convert this ZObject into its serialized canonical representation.
|
|
| getHumanReadable ( $language=null) |
| Convert this ZObject into human readable object by translating all keys and references into the preferred language or its fallbacks.
|
|
| __toString () |
| Over-ride the default __toString() method to serialise ZObjects into a JSON representation.
|
|
|
const | FORM_CANONICAL = 1 |
|
const | FORM_NORMAL = 2 |
|
| $type = null |
|
| $data = [] |
|
| $linkedZObjects = [] |
|
◆ __construct()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::__construct |
( |
| $type, |
|
|
| $identity, |
|
|
| $label ) |
Construct a new ZKey instance.
- Parameters
-
ZObject | $type | ZReference to the type for this key value |
ZObject | $identity | ZString with the key ID |
ZObject | $label | ZMultiLingualString that contains the label of this key |
◆ getDefinition()
static MediaWiki\Extension\WikiLambda\ZObjects\ZKey::getDefinition |
( |
| ) |
|
|
static |
◆ getKeyId()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::getKeyId |
( |
| ) |
|
Get the ZKey Id.
- Returns
- string
◆ getKeyLabel()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::getKeyLabel |
( |
| ) |
|
Get the ZMultilingualString that contains the label for this key.
- Returns
- ZMultiLingualString
◆ getKeyType()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::getKeyType |
( |
| ) |
|
Get the Zid for the type that describes the value of this key.
- Returns
- string
◆ getZValue()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::getZValue |
( |
| ) |
|
◆ isValid()
MediaWiki\Extension\WikiLambda\ZObjects\ZKey::isValid |
( |
| ) |
|
The documentation for this class was generated from the following file: