Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/plugin/nspages/fileHelper/
H A DnamespacePreparer.php19 function prepareFileTitle(&$ns){ argument
20 $idMainPage = $this->getMainPageId($ns);
24 $ns['title'] = null;
35 function prepareFile(&$ns){ argument
36 $ns['nameToDisplay'] = $this->buildNameToDisplay($ns['title'], noNS($ns['id']));
37 $ns['id'] = $this->buildIdToLinkTo($this->getMainPageId($ns), $ns['id']);
38 $ns['sort'] = $this->buildSortAttribute($ns['nameToDisplay'], $ns['id'], $ns['mtime']);
41 private function getMainPageId(&$ns){ argument
42 if (is_null($ns['idMainPage'])){
43 $idMainPage = $ns['id'].':';
[all …]
/plugin/subpages/
H A Dsyntax.php146 $ns = ':'.getNS($ID).substr($ns, 1);
148 $ns = $this->_getParentNS($ID).substr($ns, 3);
149 } elseif($ns == '..') {
152 } elseif($ns == '.' || $ns == '*') {
155 $ns = ':'.getNS($ID).':'.$ns;
158 if($mustBeNSnoPage && substr($ns, -1) <> ':') $ns .= ':';
160 return $ns;
167 if($ns == ':' || $ns == '') return $this->datadir;
168 $ns = trim($ns, ':');
241 $ns = '.';
[all …]
/plugin/linkmanager/
H A Dfunctions.php30 $ns = cleanID($NS);
32 if(empty($ns)){
34 if($ns == '.') $ns ='';
49 $ns = cleanID($ns);
71 linkpage_newpage($ns);
158 function linkpage_nstree($ns){ argument
163 $ns = cleanID($ns);
164 if(empty($ns)){
166 if($ns == '.') $ns ='';
168 $ns = utf8_encodeFN(str_replace(':','/',$ns));
[all …]
/plugin/dokutranslate/
H A Dadmin.php28 var $ns = null; variable in admin_plugin_dokutranslate
61 $this->ns = '*';
69 if($this->ns == '*'){
164 if($this->ns) $opts['ns'] = $this->ns;
181 $ns = $this->ns;
182 if(empty($ns)){
184 if($ns == '.') $ns ='';
186 $ns ='';
188 $ns = utf8_encodeFN(str_replace(':','/',$ns));
250 $ns = $this->ns . ($this->ns == '*' ? '' : ':*');
[all …]
H A Dajax.php39 $ns = $_REQUEST['ns']; variable
41 if($ns == '*'){
42 $ns =''; variable
45 $ns = cleanID($ns); variable
46 $lvl = count(explode(':',$ns));
47 $ns = utf8_encodeFN(str_replace(':','/',$ns)); variable
49 $data = $dokutranslate->_get_tree($ns,$ns);
/plugin/tiledblog/
H A Dsyntax.php47 $ns = getNS ($ID);
50 $ns = $dumy[1][0];
51 if (($ns == '*') || ($ns == ':'))
52 $ns = '';
53 elseif ($ns == '.')
54 $ns = getNS ($ID);
56 $ns = cleanID ($ns);
67 $this->sample ($renderer, $ns, $cacheDir);
70 $this->tile ($renderer, $ns, $cacheDir);
83 $entries = $helperPlugin->getBlog ($ns);
[all …]
/plugin/linksuggest/
H A Daction.php55 } else if ($ns === '') { // [[:xxx -> absolute link
56 $data = $this->search_pages($ns, $id, $has_hash);
64 $data = $this->search_pages($ns, $id, $has_hash);
66 $data = $this->search_pages($ns, $id, $has_hash);
134 } else if ($ns === '') { // [[:xxx -> absolute link
135 $data = $this->search_medias($ns, $id);
143 $data = $this->search_medias($ns, $id);
145 $data = $this->search_medias($ns, $id);
170 * @param string $ns
199 * @param string $ns
[all …]
/plugin/blog/syntax/
H A Dblog.php29 list($ns, $num) = explode('?', $match, 2);
32 if (is_numeric($ns)) {
33 $num = $ns;
34 $ns = '';
40 if ($ns == '') $ns = cleanID($this->getConf('namespace'));
41 elseif (($ns == '*') || ($ns == ':')) $ns = '';
42 elseif ($ns == '.') $ns = getNS($ID);
43 else $ns = cleanID($ns);
45 return array($ns, $num, $flags, $refine);
49 list($ns, $num, $flags, $refine) = $data;
[all …]
/plugin/discussion/syntax/
H A Dthreads.php79 list($ns, $refine) = explode(' ', $match, 2);
81 if (($ns == '*') || ($ns == ':')) $ns = '';
82 elseif ($ns == '.') $ns = getNS($ID);
83 else $ns = cleanID($ns);
85 return array($ns, $flags, $refine, $customFlags);
97 list($ns, $flags, $refine, $customFlags) = $data;
121 $renderer->doc .= $this->_newThreadForm($ns);
136 $renderer->doc .= $this->_newThreadForm($ns);
162 $renderer->doc .= $this->_newThreadForm($ns);
185 * @param string $ns
[all …]
/plugin/superacl/
H A Dadmin.php23 var $ns = null; variable in admin_plugin_superacl2
198 if($this->ns) $opts['ns'] = $this->ns;
217 $ns = $this->ns;
220 if($ns == '.') $ns ='';
222 $ns ='';
224 $ns = utf8_encodeFN(str_replace(':','/',$ns));
344 $ns = $this->ns;
347 if($ns){
377 if($ns){
611 $ns = $this->ns;
[all …]
/plugin/dokugource/
H A Daction.php55 fwrite($fp, $ns.' '.$c."\n");
75 $ns = $ID;
76 if($ns) {
77 $ns = str_replace('/', ':', trim($ns, '/:'));
80 $ns = preg_replace('`^(.*)\:[^\:]+$`', '$1', $ns);
84 $ns = trim($ns, '/:');
95 if(substr($ns, 0, strlen($autons)) != $autons) die();
106 $strip = explode(':', $ns);
109 $this->crawl($conf['metadir'].($ns ? '/'.str_replace(':', '/', $ns) : ''), $strip, $from);
118 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p);
[all …]
H A Dadmin.php25 var $ns = ''; variable in admin_plugin_dokugource
88 if($this->ns) {
89 $this->ns = str_replace('/', ':', trim($this->ns, '/:'));
90 if(!@is_dir($conf['datadir'].'/'.str_replace(':', '/', $this->ns).'/')) {
91 if(@is_file($conf['datadir'].'/'.str_replace(':', '/', $this->ns).'.txt')) {
92 $this->ns = preg_replace('`^(.*)\:[^\:]+$`', '$1', $this->ns);
104 $strip = explode(':', $this->ns);
107 …$this->crawl($conf['metadir'].($this->ns ? '/'.str_replace(':', '/', $this->ns) : ''), $strip, $th…
120 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p);
122 if(isset($this->colors[$ns])) return $this->colors[$ns];
[all …]
/plugin/scrape/HTMLPurifier/Printer/
H A DConfigForm.php93 list($ns, $directive) = $key;
94 $all[$ns][$directive] = $config->get($ns .'.'. $directive);
105 foreach ($all as $ns => $directives) {
219 'id' => "$name:Null_$ns.$directive",
251 $def = $config->def->info["$ns.$directive"];
284 'name' => "$name"."[$ns.$directive]",
285 'id' => "$name:$ns.$directive"
339 'name' => "$name"."[$ns.$directive]",
340 'id' => "$name:Yes_$ns.$directive",
354 'name' => "$name"."[$ns.$directive]",
[all …]
/plugin/editor/
H A Dsyntax.php35 list($ns, $user) = explode('?', $match);
38 $user = $ns;
39 $ns = '';
42 if (($ns == '*') || ($ns == ':')) $ns = '';
43 elseif ($ns == '.') $ns = getNS($ID);
44 else $ns = cleanID($ns);
46 return array($ns, trim($user), $flags, $refine);
50 list($ns, $user, $flags, $refine) = $data;
54 if ($my =& plugin_load('helper', 'editor')) $pages = $my->getEditor($ns, '', $user);
/plugin/searchresultswithpath/
H A Daction.php42 $ns = getNS($id);
45 $ns = p_get_first_heading(getNS($id));
46 if(!$ns) $ns = p_get_first_heading(getNS($id). ':start');
48 if (!$ns && !$showPathOnlyAsHeading) {
49 $ns = getNS($id);
53 if($ns) $ns = ' ['.$ns.']';
60 $event->result[$id] = $title . $ns;
/plugin/autlogin/
H A Dajax.php34 $ns = $_REQUEST['ns']; variable
35 if($ns == '*'){
36 $ns =''; variable
38 $ns = cleanID($ns); variable
39 $lvl = count(explode(':',$ns));
40 $ns = utf8_encodeFN(str_replace(':','/',$ns)); variable
42 $data = $acl->_get_tree($ns,$ns);
/plugin/task/syntax/
H A Dtaskform.php32 list($ns, $flags) = explode('&', $match, 2);
35 if (($ns == '*') || ($ns == ':')) $ns = '';
36 elseif ($ns == '.') $ns = getNS($ID);
37 else $ns = cleanID($ns);
46 return array($ns, $flags, $selectUserGroup);
54 list($ns, $flags, $selectUserGroup) = $data;
57 …if ($this->helper) $renderer->doc .= $this->helper->_newTaskForm($ns, $selectUser, $selectUserGrou…
/plugin/tag/syntax/
H A Dtopic.php51 list($ns, $tag) = explode('?', $match);
54 $tag = $ns;
55 $ns = '';
58 if (($ns == '*') || ($ns == ':')) $ns = '';
59 elseif ($ns == '.') $ns = getNS($ID);
60 else $ns = cleanID($ns);
62 return array($ns, trim($tag), $flags);
74 list($ns, $tag, $flags) = $data;
77 if ($my = $this->loadHelper('tag')) $pages = $my->getTopic($ns, '', $tag);
/plugin/tagfilter/
H A Dhelper.php108 if($ns === ''){
132 return $this->_tagsByNamespace[$ns];
140 if ($ns && (strpos(':'.getNS($page).':', ':'.$ns.':') === 0)){
170 if($Htag->_isVisible($page,$ns)) {
230 if($ns == '') return true;
250 function getPagesByTag($tag,$ns=''){ argument
252 $this->startPageSearch($ns);
262 $this->ps_ns = $ns;
418 …if((($ns == '.') && (getNS($page_lookup) == false)) || ( (strpos(':'.getNS($page_lookup).':', ':'.…
458 * @param string $ns
[all …]
/plugin/siteexport/syntax/
H A Daggregate.php56 $ns = $value;
58 $ns .= ':';
62 $ns .= 'index';
63 $namespace[] = $ns;
115 foreach( $allNamespaces as $ns ) {
116 if ( !array_key_exists('_'.$ns[2], $values) ) {
117 $values['_'.$ns[2]] = $ns;
118 } else if ( !in_array($ns[0], $values['_'.$ns[2]][4]) ) {
119 $values['_'.$ns[2]][0] .= '|' . $ns[0];
121 $values['_'.$ns[2]][4][] = $ns[0];
/plugin/tagging/helper/
H A Dquerybuilder.php14 protected $ns = []; variable in helper_plugin_tagging_querybuilder
94 * @param array $ns
96 public function includeNS($ns) argument
98 $this->ns = $this->globNS($ns);
103 * @param array $ns
105 public function excludeNS($ns) argument
217 if ($this->ns) {
220 $nsCnt = count($this->ns);
222 foreach ($this->ns as $ns) {
227 $this->values[] = $ns;
[all …]
/plugin/elasticsearch/helper/
H A Dacl.php52 $ns = $id;
54 $ns = getNS($ns);
56 if (!$ns && isset($acl['*'])) {
60 $ns = false;
65 if (isset($acl[$ns . ':*'])) {
66 $this->addRule($acl[$ns . ':*'], $rules);
68 if (isset($acl[$ns . ':*']['@ALL'])) $ns = false;
70 } while ($ns);
/plugin/usersubscriptions/
H A Dsyntax.php50 $ns = '';
52 $ns = trim($options[0]);
82 $ns = $data[0];
130 if($ns == '' || $ns == '.') {
132 $ns = getNS($ID);
133 }else if($ns == '*') {
135 $ns = '';
174 $isns = !preg_match('/\.txt:$/', $ns);
176 if(auth_quickaclcheck($ns) < AUTH_READ) return $us;
177 $cns = preg_replace('/\.txt:$/', '', $ns);
[all …]
/plugin/subconfhelper/
H A Daction.php72 if( $ACT == 'index' && $sconf['ns'] ) {
79 search($data,$conf['datadir'],'search_index',array( 'ns' => $ns ), $sconf['ns'] );
174 if( !$conf_override['ns'] ) { return ''; }
176 if( strpos( $ID, $conf_override['ns'] ) === 0 ) { return ''; }
178 $conf_override['ns'] )) === 0 ) { return ''; }
180 $newfile = wikiFN( $conf_override['ns'].':'.$ID );
181 if( !file_exists( wikiFN( $conf_override['ns'].':'.$ID ))
183 $ID = $conf_override['ns'].':'.$ID;
/plugin/translationbuddy/
H A Dsyntax.php114 $ns = $this->baseNS($page);
116 if ($ns && in_array($ns,$langs)) {
117 $lc = $ns;
119 $ns = $this->baseNS($page);
121 if (!$ns) $ns = '-';
125 if($date && !in_array($ns, $ignore_ns)) {
127 $items[$lc][$ns][$page] = $date;
154 foreach ($item as $ns => $pages) {
161 $idx = ($ns=='-' ? ($lc=='en'?'-1':$lc) : ($lc=='en'?'':$lc.':').$ns);
164 if (count($items['en'][$ns]) == 0) {
[all …]

12345678910>>...20