Lines Matching refs:ns
22 function prepareFileTitle(&$ns){
23 $idMainPage = $this->getMainPageId($ns);
25 $ns['title'] = p_get_first_heading($idMainPage, true);
27 $ns['title'] = null;
36 * @param $ns A structure which represents a namespace
38 function prepareFile(&$ns){
39 $ns['nameToDisplay'] = $this->buildNameToDisplay($ns['title'], noNS($ns['id']));
40 $ns['id'] = $this->buildIdToLinkTo($this->getMainPageId($ns), $ns['id']);
41 $ns['sort'] = $this->buildSortAttribute($ns['nameToDisplay'], $ns['id'], $ns['mtime']);
44 private function getMainPageId(&$ns){
45 if (!array_key_exists('idMainPage', $ns)){
46 $idMainPage = $ns['id'].':';
50 $ns['idMainPage'] = page_exists($page) ? $page : null;
52 return $ns['idMainPage'];