public function getQueryResult(SMWQuery $query) { $wsCallParameters = $this->parseQueryArgs($query); $result = SMWWebServiceUsage::processSMWQueryASWSCall($wsCallParameters); //echo('<pre>'.print_r($result, true).'</pre>'); return $result; }
function wsuf_detectEditedWSUsages(&$article, &$user, $text) { $articleId = $article->getID(); if ($articleId != null) { SMWWebServiceUsage::detectRemovedWebServiceUsages($articleId); } return true; }
function smwf_wsu_getPreview($articleName, $wsSyn) { global $smwgDIIP; require_once $smwgDIIP . '/specials/WebServices/SMW_WebServiceUsage.php'; $wsSyn = str_replace("\n", "", $wsSyn); $wsSyn = substr($wsSyn, 0, strlen($wsSyn) - 2); $wsSyn = explode("|", $wsSyn); $parameters = array(); $parameters[] = "dummy"; $parameters[] = substr($wsSyn[0], 6); for ($i = 1; $i < count($wsSyn); $i++) { $parameters[] = $wsSyn[$i]; } return SMWWebServiceUsage::getPreview($articleName, $parameters); }