Lines Matching refs:ns
141 function _getFqidOfNS($ns, $mustBeNSnoPage) { argument
144 if(substr($ns, 0, 2) == '.:') {
145 $ns = ':'.getNS($ID).substr($ns, 1);
146 } elseif(substr($ns, 0, 3) == '..:') {
147 $ns = $this->_getParentNS($ID).substr($ns, 3);
148 } elseif($ns == '..') {
149 $ns = $this->_getParentNS($ID);
150 } elseif(substr($ns, 0, 1) == ':') {
151 } elseif($ns == '.' || $ns == '*') {
152 $ns = ':'.getNS($ID);
154 $ns = ':'.getNS($ID).':'.$ns;
157 if($mustBeNSnoPage && substr($ns, -1) <> ':') $ns .= ':';
159 return $ns;
165 function _getPathOfNS($ns) { argument
166 if($ns == ':' || $ns == '') return $this->datadir;
167 $ns = trim($ns, ':');
168 $path = $this->datadir.'/'.utf8_encodeFN(str_replace(':', '/', $ns));
240 $ns = '.';
241 $ns = $this->_getFqidOfNS($ns, true);
242 $path = $this->_getPathOfNS($ns);
248 $this->_showDebugMsg("Namespace is $ns");
254 search($dummy, $path, array($this, '_searchCallback'), array('ns' => $ns),'',1,'natural');