Lines Matching defs:ns
21 * @var string sort key: 'cdate', 'mdate', 'pagename', 'id', 'ns', 'title'
236 * @param string $ns A namespace to which all pages need to belong, "." for only the root namespace
243 public function getTopic($ns = '', $num = null, $tagquery = '') {
259 if($this->isNotVisible($page, $ns)) continue;
283 case 'ns':
408 $ns = getNS($page);
409 if (($ns === false && $isRootAllowed) || in_array($ns, $namespaces)) {
416 foreach ($namespaces as $ns) {
417 if(strpos($page, $ns.':') === 0 ) {
620 * @param string $ns
623 public function isVisible($id, $ns='') {
624 return !$this->isNotVisible($id, $ns);
631 * @param string $ns the namespace authorized
634 public function isNotVisible($id, $ns="") {
645 if($ns == '.') {
651 // hide if ns is not matching the page id (match gives strpos===0)
652 if ($ns && strpos(':'.getNS($id).':', ':'.$ns.':') !== 0) {
711 * @param string $ns
714 public function _isVisible($id, $ns='') {
715 return $this->isVisible($id, $ns);