User:WolfgangFahl/Workdocumentation 2015-12-31 WF

From semantic-mediawiki.org
< Wolfgang Fahl
Wolfgang FahlUser:WolfgangFahl/Workdocumentation 2015-12-31 WF

tag parsing[edit]

User:WolfgangFahl/Workdocumentation_2015-12-25_WF

Need my own fork[edit]

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[edit]

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

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

Github Template[edit]

Semantic MediaWiki: [{{{url}}} GitHub issue {{{id}}}]

How the Parser does it[edit]

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[edit]

Category:Workdocumentation