WikiLambda
MediaWiki WikiLambda extension
|
This class represents the wrapper for a ZObject, as stored in MediaWiki. More...
Public Member Functions | |
__construct ( $text) | |
Builds the Content object that can be saved in the Wiki Doesn't validate the ZObject, but checks for syntactical validity. | |
validateFields ( $context) | |
Validate fields and throws a ZErrorException if any of the following validations don't pass successfully: | |
isValid () | |
@inheritDoc | |
getStatus () | |
getErrors () | |
getText () | |
@inheritDoc | |
getObject () | |
getZObject () | |
getInnerZObject () | |
Wrapper for ZPersistentObject getInnerZObject method. | |
getZid () | |
Wrapper for ZPersistentObject getZid method. | |
getTypeString ( $language) | |
String representation of the type of this ZObject. | |
getTypeStringAndLanguage ( $language) | |
Two string representations (and the language code of that representation) of this ZObject. | |
getZType () | |
Wrapper for ZPersistentObject getInternalZType method. | |
getZValue () | |
Wrapper for ZPersistentObject getZValue method. | |
getLabels () | |
Wrapper for ZPersistentObject getLabels method. | |
getLabel ( $language) | |
Wrapper for ZPersistentObject getLabel method. | |
getAliases () | |
Wrapper for ZPersistentObject getAliases method. | |
getTextForSearchIndex () | |
@inheritDoc | |
getWikitextForTransclusion () | |
@inheritDoc | |
getTextForSummary ( $maxLength=250) | |
@inheritDoc | |
getNativeData () | |
@inheritDoc | |
getSize () | |
@inheritDoc | |
copy () | |
@inheritDoc | |
convert ( $toModel, $lossy='') | |
@inheritDoc | |
isCountable ( $hasLinks=null) | |
@inheritDoc | |
This class represents the wrapper for a ZObject, as stored in MediaWiki.
Though its form is intentionally similar to that of a ZObject, representing a Z2/Persistent ZObject, it has several differences to account for the Content hierarchy and how it serves as the bridge between MediaWiki 'real' content and the functional model.
MediaWiki\Extension\WikiLambda\ZObjectContent::__construct | ( | $text | ) |
Builds the Content object that can be saved in the Wiki Doesn't validate the ZObject, but checks for syntactical validity.
string | $text |
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getAliases | ( | ) |
Wrapper for ZPersistentObject getAliases method.
Returns the aliases of the ZPersistentObject.
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getErrors | ( | ) |
MediaWiki\Extension\WikiLambda\ZObjectContent::getInnerZObject | ( | ) |
Wrapper for ZPersistentObject getInnerZObject method.
Returns the inner ZObject.
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getLabel | ( | $language | ) |
Wrapper for ZPersistentObject getLabel method.
Returns the label for a given Language (or its fallback).
Language | $language | Language in which to provide the label. |
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getLabels | ( | ) |
Wrapper for ZPersistentObject getLabels method.
Returns the labels of the ZPersistentObject.
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getObject | ( | ) |
MediaWiki\Extension\WikiLambda\ZObjectContent::getStatus | ( | ) |
MediaWiki\Extension\WikiLambda\ZObjectContent::getTypeString | ( | $language | ) |
String representation of the type of this ZObject.
Language | $language | Language in which to provide the string. |
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getTypeStringAndLanguage | ( | $language | ) |
Two string representations (and the language code of that representation) of this ZObject.
Language | $language | Language in which to provide the string. |
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getZid | ( | ) |
Wrapper for ZPersistentObject getZid method.
Returns the Zid of the persistent object
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getZObject | ( | ) |
MediaWiki\Extension\WikiLambda\ZObjectContent::getZType | ( | ) |
Wrapper for ZPersistentObject getInternalZType method.
Returns the ZType of the internal ZObject.
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::getZValue | ( | ) |
Wrapper for ZPersistentObject getZValue method.
Returns the value of the internal ZObject.
ZErrorException |
MediaWiki\Extension\WikiLambda\ZObjectContent::validateFields | ( | $context | ) |
Validate fields and throws a ZErrorException if any of the following validations don't pass successfully:
MessageLocalizer | $context | The context of the action operation, for localisation of messages |
ZErrorException |