Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Parser\AnnotationProcessor Class Reference

Public Member Functions

 __construct (SemanticData $semanticData, DataValueFactory $dataValueFactory=null)
 
 setCanAnnotate ( $canAnnotate)
 
 canAnnotate ()
 
 release ()
 
 getSemanticData ()
 
 newDataValueByText ( $propertyName, $valueString, $caption=false, DIWikiPage $contextPage=null)
 
 newDataValueByItem (DataItem $dataItem, DIProperty $property=null, $caption=false, $contextPage=null)
 

Detailed Description

To allow for an in-memory processing of existing SemanticData references during an annotation process, encupsulate the DataValueFactory to ensure the relevant instance reference is set and is available while building a DataValue object instance.

https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/3901

GNU GPL v2+

Since
3.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Parser\AnnotationProcessor::__construct ( SemanticData  $semanticData,
DataValueFactory  $dataValueFactory = null 
)
Since
3.1
Parameters
SemanticData$semanticData
DataValueFactory | null$dataValueFactory

Member Function Documentation

◆ canAnnotate()

SMW\Parser\AnnotationProcessor::canAnnotate ( )
Since
3.1
Returns
boolean

◆ getSemanticData()

SMW\Parser\AnnotationProcessor::getSemanticData ( )
Since
3.1
Returns
SemanticData

◆ newDataValueByItem()

SMW\Parser\AnnotationProcessor::newDataValueByItem ( DataItem  $dataItem,
DIProperty  $property = null,
  $caption = false,
  $contextPage = null 
)
Since
3.1
Returns
DataValue

◆ newDataValueByText()

SMW\Parser\AnnotationProcessor::newDataValueByText (   $propertyName,
  $valueString,
  $caption = false,
DIWikiPage  $contextPage = null 
)
Since
3.1
Returns
DataValue

◆ release()

SMW\Parser\AnnotationProcessor::release ( )
Since
3.1

◆ setCanAnnotate()

SMW\Parser\AnnotationProcessor::setCanAnnotate (   $canAnnotate)
Since
3.1
Parameters
boolean$canAnnotate

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

About | General disclaimer | Privacy policy