Semantic MediaWiki and related extensions
Public Member Functions | Protected Attributes | List of all members
SMW\Subobject Class Reference

Public Member Functions

 __construct (Title $title)
 
 getTitle ()
 
 getSubject ()
 
 getSubobjectId ()
 
 getErrors ()
 
 addError ( $error)
 
 setEmptyContainerForId ( $identifier)
 
 setSemanticData ( $identifier)
 
 getSemanticData ()
 
 getProperty ()
 
 getContainer ()
 
 addDataValue (SMWDataValue $dataValue)
 

Protected Attributes

 $title
 
 $semanticData
 
 $errors = []
 

Detailed Description

See also
http://www.semantic-mediawiki.org/wiki/Help:Subobject

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Subobject::__construct ( Title  $title)
Since
1.9
Parameters
Title$title

Member Function Documentation

◆ addDataValue()

SMW\Subobject::addDataValue ( SMWDataValue  $dataValue)
Since
1.9
Parameters
DataValue$dataValue
Exceptions
SubSemanticDataException

◆ addError()

SMW\Subobject::addError (   $error)
Since
1.9
Parameters
array | string$error

◆ getContainer()

SMW\Subobject::getContainer ( )

Returns the container data item for the subobject

Since
1.9
Returns
SMWDIContainer

◆ getErrors()

SMW\Subobject::getErrors ( )
Since
1.9
Returns
array

◆ getProperty()

SMW\Subobject::getProperty ( )

Returns the property data item for the subobject

Since
1.9
Returns
DIProperty

◆ getSemanticData()

SMW\Subobject::getSemanticData ( )

Returns semantic data container for a subobject

Since
1.9
Returns
SMWContainerSemanticData

◆ getSubject()

SMW\Subobject::getSubject ( )
Since
2.1
Returns
DIWikiPage

◆ getSubobjectId()

SMW\Subobject::getSubobjectId ( )
Since
2.1
Returns
string

◆ getTitle()

SMW\Subobject::getTitle ( )

Returns the Title object

Since
1.9
Returns
Title

◆ setEmptyContainerForId()

SMW\Subobject::setEmptyContainerForId (   $identifier)
Since
2.0
Parameters
string$identifier
Returns
self
Exceptions
InvalidArgumentException

◆ setSemanticData()

SMW\Subobject::setSemanticData (   $identifier)
Deprecated:
since 2.0

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

About | General disclaimer | Privacy policy