Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
SMW\Exporter\Element\ExpElement Class Reference
Inheritance diagram for SMW\Exporter\Element\ExpElement:
Inheritance graph
[legend]
Collaboration diagram for SMW\Exporter\Element\ExpElement:
Collaboration graph
[legend]

Public Member Functions

 __construct (DataItem $dataItem=null)
 
 getDataItem ()
 
 getHash ()
 
 getSerialization ()
 

Static Public Member Functions

static newFromSerialization (array $serialization)
 

Static Protected Member Functions

static deserialize ( $serialization)
 

Protected Attributes

 $dataItem
 

Additional Inherited Members

- Public Attributes inherited from SMW\Exporter\Element
const TYPE_RESOURCE = 0
 
const TYPE_NSRESOURCE = 1
 
const TYPE_LITERAL = 2
 

Detailed Description

ExpElement is a class for representing single elements that appear in exported data, such as individual resources, data literals, or blank nodes.

A single element for export, e.g. a data literal, instance name, or blank node. This abstract base class declares the basic common functionality of export elements (which is not much, really).

Note
This class should not be instantiated directly.

GNU GPL v2+

Since
2.2
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Exporter\Element\ExpElement::__construct ( DataItem  $dataItem = null)
Since
1.6
Parameters
DataItem | null$dataItem

Member Function Documentation

◆ deserialize()

static SMW\Exporter\Element\ExpElement::deserialize (   $serialization)
staticprotected

◆ getDataItem()

SMW\Exporter\Element\ExpElement::getDataItem ( )

Get a DataItem object that represents the contents of this export element in SMW, or null if no such data item could be found.

Returns
DataItem|null

Implements SMW\Exporter\Element.

◆ getHash()

SMW\Exporter\Element\ExpElement::getHash ( )
Since
2.2
Returns
string

Implements SMW\Exporter\Element.

◆ getSerialization()

SMW\Exporter\Element\ExpElement::getSerialization ( )
Since
2.2
Returns
array

◆ newFromSerialization()

static SMW\Exporter\Element\ExpElement::newFromSerialization ( array  $serialization)
static
Since
2.2
Parameters
array$serialization
Returns
ExpElement

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

About | General disclaimer | Privacy policy