/**
	 * Constructor
	 */
	public function __construct() {
		global $smwgBrowseShowAll;
		parent::__construct( 'BrowseWiki', '', true, false, 'default', true );
		smwfLoadExtensionMessages( 'SemanticMediaWiki' );
		if ( $smwgBrowseShowAll ) {
			SWBSpecialBrowseWiki::$incomingvaluescount = 21;
			SWBSpecialBrowseWiki::$incomingpropertiescount = - 1;
		}
	}
Exemplo n.º 2
0
 /**
  * Get a URL for hyperlinking this URI, or the empty string if this URI
  * is not hyperlinked in MediaWiki.
  * @return string
  */
 public function getURL()
 {
     SWBSpecialBrowseWiki::debug("getURL");
     global $wgUrlProtocols;
     foreach ($wgUrlProtocols as $prot) {
         if ($prot == $this->m_dataitem->getScheme() . ':' || $prot == $this->m_dataitem->getScheme() . '://') {
             return $this->m_dataitem->getURI();
         }
     }
     return '';
 }