Lines Matching defs:ns
505 * @param string $ns namespace which is context of id
510 function resolve_id($ns, $id, $clean = true)
524 $id = $ns . ':' . $id;
543 } elseif ($ns !== false && strpos($id, ':') === false) {
545 $id = $ns . ':' . $id;
555 * @param string $ns namespace which is context of id
562 function resolve_mediaid($ns, &$media, &$exists, $rev = '', $date_at = false)
565 $resolver = new MediaResolver("$ns:deprecated");
574 * @param string $ns namespace which is context of id
580 function resolve_pageid($ns, &$page, &$exists, $rev = '', $date_at = false)
585 if (getNS($ID) == $ns) {
588 $context = "$ns:deprecated"; // only used when a different context namespace was given
761 $ns = $ID;
763 $ns = getNS($ns);
764 $pageid = cleanID("$ns:$page");
768 } while ($ns !== false);