Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (Title $title, ParserOutput $parserOutput) | |
getOption ( $key, $default=null) | |
setOption ( $key, $value) | |
setOrigin ( $origin) | |
getTitle () | |
getSubject () | |
getOutput () | |
setParserOptions (ParserOptions $parserOptions) | |
addExtraParserKey ( $key) | |
isBlocked () | |
hasAnnotationBlock () | |
canUse () | |
getErrors () | |
addError ( $error) | |
setSemanticData (SemanticData $semanticData) | |
setData (SemanticData $semanticData) | |
getSemanticData () | |
getData () | |
setEmptySemanticData () | |
importFromParserOutput (ParserOutput $parserOutput=null) | |
copyToParserOutput () | |
pushSemanticDataToParserOutput () | |
markParserOutput () | |
setSemanticDataStateToParserOutputProperty () | |
addDataValue (DataValue $dataValue) | |
updateStore ( $opts=[]) | |
addLimitReport ( $key, $value) | |
Static Public Member Functions | |
static | hasSemanticData (ParserOutput $parserOutput) |
Public Attributes | |
const | DATA_ID = 'smwdata' |
const | CACHE_NAMESPACE = 'smw:update' |
const | OPT_FORCED_UPDATE = 'smw:opt.forced.update' |
const | OPT_CREATE_UPDATE_JOB = 'smw:opt.create.update.job' |
const | OPT_CHANGE_PROP_UPDATE = 'smw:opt.change.prop.update' |
const | NO_QUERY_DEPENDENCY_TRACE = 'no.query.dependency.trace' |
const | ANNOTATION_BLOCK = 'smw-blockannotation' |
Handling semantic data exchange with a ParserOutput object
Provides access to a semantic data container that is generated either from the ParserOutput or is a newly created container
GNU GPL v2+
SMW\ParserData::__construct | ( | Title | $title, |
ParserOutput | $parserOutput | ||
) |
Title | $title | |
ParserOutput | $parserOutput |
SMW\ParserData::addDataValue | ( | DataValue | $dataValue | ) |
SMW\ParserData::addError | ( | $error | ) |
SMW\ParserData::addExtraParserKey | ( | $key | ) |
SMW\ParserData::addLimitReport | ( | $key, | |
$value | |||
) |
string | $key | |
string | $value |
SMW\ParserData::canUse | ( | ) |
SMW\ParserData::copyToParserOutput | ( | ) |
SMW\ParserData::getData | ( | ) |
SMW\ParserData::getErrors | ( | ) |
Returns collected errors occurred during processing
SMW\ParserData::getOption | ( | $key, | |
$default = null |
|||
) |
string | $key | |
mixed | $default |
SMW\ParserData::getOutput | ( | ) |
SMW\ParserData::getSemanticData | ( | ) |
SMW\ParserData::getSubject | ( | ) |
SMW\ParserData::getTitle | ( | ) |
SMW\ParserData::hasAnnotationBlock | ( | ) |
|
static |
ParserOutput | $parserOutput |
SMW\ParserData::importFromParserOutput | ( | ParserOutput | $parserOutput = null | ) |
ParserOutput|null |
SMW\ParserData::isBlocked | ( | ) |
SMW\ParserData::markParserOutput | ( | ) |
SMW\ParserData::pushSemanticDataToParserOutput | ( | ) |
SMW\ParserData::setData | ( | SemanticData | $semanticData | ) |
SMW\ParserData::setEmptySemanticData | ( | ) |
SMW\ParserData::setOption | ( | $key, | |
$value | |||
) |
string | $key | |
string | $value |
SMW\ParserData::setOrigin | ( | $origin | ) |
string | $origin |
SMW\ParserData::setParserOptions | ( | ParserOptions | $parserOptions | ) |
ParserOptions | $parserOptions |
SMW\ParserData::setSemanticData | ( | SemanticData | $semanticData | ) |
SemanticData | $semanticData |
SMW\ParserData::setSemanticDataStateToParserOutputProperty | ( | ) |
SMW\ParserData::updateStore | ( | $opts = [] | ) |
This method is not for public use
const SMW\ParserData::ANNOTATION_BLOCK = 'smw-blockannotation' |
Indicates that no #ask dependency tracking should occur
const SMW\ParserData::CACHE_NAMESPACE = 'smw:update' |
Identifies the cache namespace for update markers
const SMW\ParserData::DATA_ID = 'smwdata' |
Identifies the extension data
const SMW\ParserData::NO_QUERY_DEPENDENCY_TRACE = 'no.query.dependency.trace' |
Indicates that no #ask dependency tracking should occur
const SMW\ParserData::OPT_CHANGE_PROP_UPDATE = 'smw:opt.change.prop.update' |
Indicates that an update was caused by a change propagation request
const SMW\ParserData::OPT_CREATE_UPDATE_JOB = 'smw:opt.create.update.job' |
Option whether creation of iteratibe update jobs are allowed
const SMW\ParserData::OPT_FORCED_UPDATE = 'smw:opt.forced.update' |
Option that allows to force an update even in cases where an update marker exists