Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Exporter\ElementFactory Class Reference

Public Member Functions

 registerDataItemEncoder ($dataItemType,\Closure $dataItemEncoder)
 
 newByDataItem (DataItem $dataItem)
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames
Markus Krötzsch

Member Function Documentation

SMW\Exporter\ElementFactory::newByDataItem ( DataItem  $dataItem)

Create an Element that encodes the data for the given dataitem object. This method is meant to be used when exporting a dataitem as a subject or object.

Parameters
DataItem$dataItem
Returns
Element|null
Exceptions
RuntimeException
SMW\Exporter\ElementFactory::registerDataItemEncoder (   $dataItemType,
\Closure  $dataItemEncoder 
)
Since
2.2
Parameters
integer$dataItemType
Closure$dataItemEncoder

The documentation for this class was generated from the following file: