Extension talk:Semantic Web Browser
From MediaWiki.org
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php 106 private function displayBrowse() { | 0 | 02:44, 20 January 2012 |
SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php 106 private function displayBrowse() {
SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php
106
private function displayBrowse() { ...
-
<?php
-
if (empty($arr_equi_values)) {
-
-
$info = wfParseUrl(
-
# Title::newFromText(
-
$this->articletext
-
# )->getCanonicalURL()
-
);
-
if ( FALSE !== $info ) {
-
(!isset( $info['scheme']) ) ? $scheme = "" : $scheme = $info['scheme'];
-
(!isset( $info['host']) ) ? $host = "" : $host = "//".$info['host'];
-
(!isset( $info['path']) ) ? $path = "" : $path = $info['path'];
-
(!isset( $info['query']) ) ? $query = "" : $query = $info['query'];
-
(!isset( $info['fragment'])) ? $fragment = "" : $fragment = $info['fragment'];
-
if($scheme=="" || $host.$path==""){
-
// in this case SMWDIUri becomes Exception
-
}else{
-
$arr_equi_values[] = new SMWDIUri($scheme, $host.$path, $query, $fragment);
-
}
-
}
-
?>