Lines Matching defs:wantedNS
24 private function computeWantedNs($wantedNS){
32 $wantedNS = str_replace(';', ':', $wantedNS); // accepted by DW as namespace separator according to https://www.dokuwiki.org/pagename
35 if($wantedNS == '') {
36 $wantedNS = $this->getCurrentNamespace();
38 if( $this->isRelativePath($wantedNS) ) {
41 $wantedNS = preg_replace('/^((\.+:)*)(\.+)(?=[^:\.])/', '\1\3:', $wantedNS);
42 } elseif ( $this->isPageRelativePath($wantedNS) ) {
44 $wantedNS = substr($wantedNS, 1);
46 $result .= ':'.$wantedNS.':';