Extension talk:Semantic Web Browser

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php 106 private function displayBrowse() {

SemanticWebBrowser/specials/SearchTriple/SWB_SpecialBrowseWiki.php

106

private function displayBrowse() { ...

  1. <?php
  2.                         if (empty($arr_equi_values)) {
  3.                                
  4.                                 $info = wfParseUrl(
  5. #                                       Title::newFromText(
  6.                                                $this->articletext
  7. #                                       )->getCanonicalURL()
  8.                                );
  9.                                 if ( FALSE !== $info ) {
  10.                                         (!isset( $info['scheme'])  ) ? $scheme   = "" : $scheme   = $info['scheme'];
  11.                                         (!isset( $info['host'])    ) ? $host     = "" : $host     = "//".$info['host'];
  12.                                         (!isset( $info['path'])    ) ? $path     = "" : $path     = $info['path'];
  13.                                         (!isset( $info['query'])   ) ? $query    = "" : $query    = $info['query'];
  14.                                         (!isset( $info['fragment'])) ? $fragment = "" : $fragment = $info['fragment'];
  15.                                         if($scheme=="" || $host.$path==""){
  16.                                            // in this case SMWDIUri becomes Exception  
  17.                                         }else{                                  
  18.                                             $arr_equi_values[] = new SMWDIUri($scheme, $host.$path, $query, $fragment);
  19.                                         }
  20.                                 }
  21. ?>
Immeëmosol02:44, 20 January 2012
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox