User:WolfgangFahl/Workdocumentation 2015-12-31 WF

From semantic-mediawiki.org
Jump to: navigation, search
WolfgangFahlUser:WolfgangFahl/Workdocumentation 2015-12-31 WF

tag parsing

User:WolfgangFahl/Workdocumentation_2015-12-25_WF

Need my own fork

Fork on github to get:


neso:SemanticMediaWiki wf$ git remote add smw https://github.com/SemanticMediaWiki/SemanticMediaWiki
neso:SemanticMediaWiki wf$ git fetch smw pull/794/head
From https://github.com/SemanticMediaWiki/SemanticMediaWiki
 * branch            refs/pull/794/head -> FETCH_HEAD

How to create a Property for a PHPUnit tests

see https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1340

  $propertyDV = SMWPropertyValue::makeUserProperty( $propertyName );

Github Template

Octocat.pngissues/1340

How the Parser does it

DataValueFactory new PropertyValue is called e.g. with $propertyName=BarText and $valueString=<pre>Some text</pre>

a new propertyDV is created for the given propertyName since the propertyDI of the propertyDV is a DIProperty newPropertyObjetValue is called

findPropertyTypeId looks for the WikiPage("BarText") and tries to get the PropertyValues of Type _TYPE in it.

Mockbuilder