|
| __construct ( $functionCall, $keys=[]) |
| Create a new typed error instance.
|
|
| isValid () |
| @inheritDoc
|
|
| getSerialized ( $form=self::FORM_CANONICAL) |
| @inheritDoc
|
|
| getErrorType () |
| Returns the Zid of the errortype that represents this ZTypedError instance.
|
|
| __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.
|
|
| getZValue () |
| Return the untyped content of this ZObject.
|
|
| getLinkedZObjects () |
| Return all ZObject Zids that are linked to the current ZObject.
|
|
| 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.
|
|
|
static | getDefinition () |
| @inheritDoc
|
|
static | buildType ( $errorType) |
| Build the function call that defines the type of this Typed Error.
|
|
|
const | FORM_CANONICAL = 1 |
|
const | FORM_NORMAL = 2 |
|
| $type = null |
|
| $data = [] |
|
| $linkedZObjects = [] |
|
◆ __construct()
MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::__construct |
( |
| $functionCall, |
|
|
| $keys = [] ) |
Create a new typed error instance.
- Parameters
-
ZFunctionCall | $functionCall | |
ZObject[] | $keys | |
◆ buildType()
static MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::buildType |
( |
| $errorType | ) |
|
|
static |
Build the function call that defines the type of this Typed Error.
- Parameters
-
- Returns
- ZFunctionCall
◆ getDefinition()
static MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::getDefinition |
( |
| ) |
|
|
static |
◆ getErrorType()
MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::getErrorType |
( |
| ) |
|
Returns the Zid of the errortype that represents this ZTypedError instance.
- Returns
- string The zid of the ZErrorType
◆ getSerialized()
MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::getSerialized |
( |
| $form = self::FORM_CANONICAL | ) |
|
◆ isValid()
MediaWiki\Extension\WikiLambda\ZObjects\ZTypedError::isValid |
( |
| ) |
|
The documentation for this class was generated from the following file: