/** * Function * * @param WikiPage $article * @param User $user * @param string $reason * @param unknown $id * @param Content $content * @param unknown $logEntry * * Delete corresponding RDF data of the deleting page if "Delete Ontology Data" option is selected */ public static function onArticleDeleteComplete(WikiPage &$article, User &$user, $reason, $id, $content, $logEntry) { global $wgRequest; if ($wgRequest->getVal('okwDelete')) { $title = $article->getTitle(); if ($title->userCan('ontology_master')) { $titleArray = explode(':', $title->getText()); $ontAbbr = $titleArray[0]; $termID = str_replace(' ', '_', $titleArray[1]); $update = new OntologyUpdate($ontAbbr, $termID); $update->deleteTerm(); } } }