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 = array()
 

Detailed Description

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

GNU GPL v2+

Since
1.9
Author
mwjames

Constructor & Destructor Documentation

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

Member Function Documentation

SMW\Subobject::addDataValue ( SMWDataValue  $dataValue)
Since
1.9
Parameters
DataValue$dataValue
Exceptions
SubSemanticDataException
SMW\Subobject::addError (   $error)
Since
1.9
Parameters
array | string$error
SMW\Subobject::getContainer ( )

Returns the container data item for the subobject

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

Returns the property data item for the subobject

Since
1.9
Returns
DIProperty
SMW\Subobject::getSemanticData ( )

Returns semantic data container for a subobject

Since
1.9
Returns
SMWContainerSemanticData
SMW\Subobject::getSubject ( )
Since
2.1
Returns
DIWikiPage
SMW\Subobject::getSubobjectId ( )
Since
2.1
Returns
string
SMW\Subobject::getTitle ( )

Returns the Title object

Since
1.9
Returns
Title
SMW\Subobject::setEmptyContainerForId (   $identifier)
Since
2.0
Parameters
string$identifier
Returns
self
Exceptions
InvalidArgumentException
SMW\Subobject::setSemanticData (   $identifier)
Deprecated:
since 2.0

Member Data Documentation

SMW\Subobject::$errors = array()
protected
SMW\Subobject::$semanticData
protected
SMW\Subobject::$title
protected

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