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

Public Member Functions

 __construct ($concept, $docu, $queryfeatures, $size, $depth)
 
 getDIType ()
 
 getConceptQuery ()
 
 getDocumentation ()
 
 getQueryFeatures ()
 
 getSize ()
 
 getDepth ()
 
 getSortKey ()
 
 getSerialization ()
 
 setCacheStatus ($status)
 
 setCacheDate ($date)
 
 setCacheCount ($count)
 
 getCacheStatus ()
 
 getCacheDate ()
 
 getCacheCount ()
 
 equals (SMWDataItem $di)
 
- Public Member Functions inherited from SMWDataItem
 getDIType ()
 
 getSortKey ()
 
 equals (SMWDataItem $di)
 
 getSortKeyDataItem ()
 
 getSerialization ()
 
 getHash ()
 
 __toString ()
 
 setOption ($key, $value)
 
 getOption ($key)
 

Static Public Member Functions

static doUnserialize ($serialization)
 
- Static Public Member Functions inherited from SMWDataItem
static newFromSerialization ($diType, $serialization)
 
static getDataItemClassNameForId ($diType)
 

Protected Attributes

 $m_concept
 
 $m_docu
 
 $m_features
 
 $m_size
 
 $m_depth
 
 $cacheStatus
 
 $cacheDate
 
 $cacheCount
 

Additional Inherited Members

- Public Attributes inherited from SMWDataItem
const TYPE_NOTYPE = 0
 Data item ID that can be used to indicate that no data item class is appropriate. More...
 
const TYPE_NUMBER = 1
 Data item ID for SMWDINumber. More...
 
const TYPE_STRING = 2
 
const TYPE_BLOB = 2
 Data item ID for SMWDIBlob. More...
 
const TYPE_BOOLEAN = 4
 Data item ID for SMWDIBoolean. More...
 
const TYPE_URI = 5
 Data item ID for SMWDIUri. More...
 
const TYPE_TIME = 6
 Data item ID for SMWDITimePoint. More...
 
const TYPE_GEO = 7
 Data item ID for SMWDIGeoCoord. More...
 
const TYPE_CONTAINER = 8
 Data item ID for SMWDIContainer. More...
 
const TYPE_WIKIPAGE = 9
 Data item ID for SMWDIWikiPage. More...
 
const TYPE_CONCEPT = 10
 Data item ID for SMWDIConcept. More...
 
const TYPE_PROPERTY = 11
 Data item ID for SMWDIProperty. More...
 
const TYPE_ERROR = 12
 Data item ID for SMWDIError. More...
 

Detailed Description

This class implements Concept data items.

Note
These special data items for storing concept declaration data in SMW should vanish at some point since Container values could encode this data just as well.
Since
1.6
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\DIConcept::__construct (   $concept,
  $docu,
  $queryfeatures,
  $size,
  $depth 
)
Parameters
string$conceptthe concept query string
string$docuuser documentation
integer$queryefeaturesflags about query features
integer$sizeconcept query size
integer$depthconcept query depth

Member Function Documentation

static SMW\DIConcept::doUnserialize (   $serialization)
static

Create a data item from the provided serialization string and type ID.

Returns
DIConcept
SMW\DIConcept::equals ( SMWDataItem  $di)
SMW\DIConcept::getCacheCount ( )

Returns cache count

Since
1.9
Returns
int
SMW\DIConcept::getCacheDate ( )

Returns cache date

Since
1.9
Returns
string
SMW\DIConcept::getCacheStatus ( )

Returns cache status

Since
1.9
Returns
string
SMW\DIConcept::getConceptQuery ( )
SMW\DIConcept::getDepth ( )
SMW\DIConcept::getDIType ( )
SMW\DIConcept::getDocumentation ( )
SMW\DIConcept::getQueryFeatures ( )
SMW\DIConcept::getSerialization ( )
SMW\DIConcept::getSize ( )
SMW\DIConcept::getSortKey ( )
SMW\DIConcept::setCacheCount (   $count)

Sets cache count

Since
1.9
Parameters
int
SMW\DIConcept::setCacheDate (   $date)

Sets cache date

Since
1.9
Parameters
string
SMW\DIConcept::setCacheStatus (   $status)

Sets cache status

Since
1.9
Parameters
string

Member Data Documentation

SMW\DIConcept::$cacheCount
protected
SMW\DIConcept::$cacheDate
protected
SMW\DIConcept::$cacheStatus
protected
SMW\DIConcept::$m_concept
protected
SMW\DIConcept::$m_depth
protected
SMW\DIConcept::$m_docu
protected
SMW\DIConcept::$m_features
protected
SMW\DIConcept::$m_size
protected

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