Semantic MediaWiki and related extensions
|
Public Member Functions | |
version ( $version) | |
serialize ( $queryResult) | |
isSerializerFor ( $queryResult) | |
Static Public Member Functions | |
static | getSerialization (DataItem $dataItem, $printRequest=null) |
Class for serializing SMWDataItem and SMWQueryResult objects to a context independent object consisting of arrays and associative arrays, which can be fed directly to json_encode, the MediaWiki API, and similar serializers.
This class is distinct from SMWSerializer and the SMWExpData object it takes, in that here semantic context is lost.
GNU GPL v2+
|
static |
Get the serialization for the provided data item.
SMWDataItem | $dataItem |
SMW\Serializers\QueryResultSerializer::isSerializerFor | ( | $queryResult | ) |
SMW\Serializers\QueryResultSerializer::serialize | ( | $queryResult | ) |
OutOfBoundsException |
SMW\Serializers\QueryResultSerializer::version | ( | $version | ) |
integer | $version |