Semantic MediaWiki and related extensions
|
Static Public Member Functions | |
static | makeAnonymousContainer ( $noDuplicates=true, $skipAnonymousCheck=false) |
Additional Inherited Members | |
Public Attributes inherited from SMW\SemanticData | |
const | OPT_LAST_MODIFIED = 'opt.last.modified' |
const | OPT_CHECK_REMNANT_ENTITIES = 'opt.check.remnant.entities' |
const | PROC_USER = 'proc.user' |
const | PROC_DELETE = 'proc.delete' |
$stubObject | |
$subContainerDepthCounter = 0 | |
Protected Attributes inherited from SMW\SemanticData | |
$mPropVals = [] | |
$mProperties = [] | |
$mHasVisibleProps = false | |
$mHasVisibleSpecs = false | |
$mNoDuplicates | |
$mSubject | |
$subSemanticData | |
$errors = [] | |
$options | |
$extensionData = [] | |
$sequenceMap = [] | |
$countMap = [] | |
Static Protected Attributes inherited from SMW\SemanticData | |
static | $mPropertyPrefix = '' |
Subclass of SemanticData that is used to store the data in SMWDIContainer objects. It is special since the subject that the stored property-value pairs refer may or may not be specified explicitly. This can be tested with hasAnonymousSubject(). When trying to access the subject in anonymous state, an Exception will be thrown.
Anonymous container data items are used when no page context is available, e.g. when specifying such a value in a search form where the parent page is not known.
Besides this change, the subclass mainly is needed to restore the disabled serialization of SemanticData.
See also the documentation of SMWDIContainer.
GNU GPL v2+
SMW\DataModel\ContainerSemanticData::__sleep | ( | ) |
Restore complete serialization which is disabled in SemanticData.
SMW\DataModel\ContainerSemanticData::copyDataFrom | ( | SemanticData | $semanticData = null | ) |
Change the object to become an exact copy of the given SemanticData object. This is used to make other types of SemanticData into an SMWContainerSemanticData. To copy objects of the same type, PHP clone() should be used.
SemanticData | null | $semanticData |
SMW\DataModel\ContainerSemanticData::getSubject | ( | ) |
Return subject to which the stored semantic annotation refer to, or throw an exception if the subject is anonymous (if the data has not been contextualized with setMasterPage() yet).
DataItemException |
SMW\DataModel\ContainerSemanticData::hasAnonymousSubject | ( | ) |
Check if the subject of this container is an anonymous object. See the documenation of the class for details.
|
static |
Construct a data container that refers to an anonymous subject. See the documentation of the class for details.
boolean | $noDuplicates | stating if duplicate data should be avoided |
SMW\DataModel\ContainerSemanticData::skipAnonymousCheck | ( | ) |
Skip the check as it is required for some "search pattern match" activity to temporarily to access the container without raising an exception.