Lines Matching refs:ns

60      * @param string $ns list only pages from this namespace
65 public function getTagsByRegExp($tagExpression, $ns = '', $aclSafe = false)
75 if ($this->matchesTagExpression($tagExpression, $tag) && $this->isTagInNamespace($tag, $ns, $aclSafe)) {
113 * @param string $ns list only tags used on pages from this namespace
117 public function getTagsByNamespace($ns = '', $aclSafe = true)
123 return array_keys($this->getTagsByRegExp('.*', $ns, $aclSafe));
169 * @param string $ns list pages from this namespace
173 protected function isTagInNamespace($tag, $ns, $aclSafe = true)
175 if ($ns == '') {
186 if ($this->taghelper->isVisible($page, $ns)) {
226 * @param string $ns list only pages from this namespace
229 public function getPagesByTag($tag, $ns = '')
232 $this->startPageSearch($ns);
246 * @param string $ns
248 protected function startPageSearch($ns = '')
250 $this->ps_ns = $ns;
355 * @param string $ns namespace with images
358 public function getTagImageColumn($id, $col, $ns)
371 $imageid = $ns . ':' . substr($foundTag, strrpos($foundTag, ':'));
398 * @param string $ns the namespace to look in
402 public function getAllPages($ns, $tag_list_r)
409 $page_r = $this->getPagesByTags($ns, $tag_list);
438 * @param string $ns the namespace to look in
443 public function getPagesByTags($ns, $tag_list)
451 if (($ns == '.' && getNS($matchedPage) === false) || strpos(':' . getNS($matchedPage) . ':', ':' . $ns . ':') === 0 || $ns === '') {
523 * @param string $ns list only pages from this namespace
526 public function getPagesByMatchedTags($tags, $ns = '')
548 // keep only if in requested ns
549 $matchedPages[$tag] = array_filter($pages, function ($pageid) use ($ns) {
550 return $ns === '' || strpos(':' . getNS($pageid) . ':', ':' . $ns . ':') === 0;