r66981 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66980‎ | r66981 | r66982 >
Date:21:27, 27 May 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added 'smwAddToRDFExport' hook, for use by Semantic Internal Objects extension
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php
@@ -676,6 +676,12 @@
677677
678678 $data = SMWExporter::makeExportData( smwfGetStore()->getSemanticData( $value, $fullexport ? false:array( '__spu', '__typ', '__imp' ) ), $st->modifier );
679679 $this->printExpData( $data ); // serialise
 680+ // let other extensions add additional RDF data for this page
 681+ $additional_data_array = array();
 682+ wfRunHooks( 'smwAddToRDFExport', array( $value->getTitle(), &$additional_data_array ) );
 683+ foreach( $additional_data_array as $additional_data) {
 684+ $this->printExpData( $additional_data ); // serialise
 685+ }
680686 $this->markAsDone( $st );
681687
682688 // possibly add backlinks
@@ -829,4 +835,4 @@
830836 return ( ( $res != NS_CATEGORY ) && ( $res != SMW_NS_PROPERTY ) && ( $res != SMW_NS_TYPE ) );
831837 }
832838
833 -}
\ No newline at end of file
 839+}

Status & tagging log