/** * Function * * @param WikiPage $wikiPage * @param User $user * @param Content $content * @param string $summary * @param boolean $isMinor * @param null $isWatch * @param null $section * @param unknown $flags * @param Status $status * * Update RDF Store using SPARQL based on parsed Wiki-Text */ public static function onPageContentSave(WikiPage &$wikiPage, User &$user, Content &$content, &$summary, $isMinor, $isWatch, $section, &$flags, &$status) { if (OntologyValidator::isValidTitle($wikiPage->getTitle())) { $wikiText = $content->getWikitextForTransclusion(); $title = $wikiPage->getTitle()->getText(); $titleArray = explode(':', $title); $ontAbbr = $titleArray[0]; $termID = str_replace(' ', '_', $titleArray[1]); $update = new OntologyUpdate($ontAbbr, $termID); $wikiText = $update->doUpdate($title, $wikiText); $content = ContentHandler::makeContent($wikiText, $wikiPage->getTitle()); } }