Home
last modified time | relevance | path

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

12345678910>>...21

/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 (!array_key_exists('idMainPage', $ns)){
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/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/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/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/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/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/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/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 …]
H A Dajax.php41 $ns = $_REQUEST['ns']; variable
42 if($ns == '*'){
43 $ns =''; variable
45 $lvl = count(explode(':',$ns));
46 $ns = utf8_encodeFN(str_replace(':','/',$ns)); variable
49 search($data,$conf['datadir'],'search_index',array('ns' => $ns),$ns);
/plugin/elasticsearch/vendor/symfony/polyfill-php73/
H A DPhp73.php31 $ns = microtime(false);
32 $s = substr($ns, 11) - self::$startAt;
33 $ns = 1E9 * (float) $ns;
36 $ns += $s * 1E9;
38 return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
41 return [$s, (int) $ns];
/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/nspages/
H A DnamespaceFinder.php46 $ns = explode(':', $this->wantedNs);
48 for($i = 0; $i < count($ns); $i++) {
49 if($ns[$i] === '' || $ns[$i] === '.') {
50 array_splice($ns, $i, 1);
52 } else if($ns[$i] == '..') {
58 array_splice($ns, $i - 1, 2);
64 $this->isSafe = (count($ns) == 0 || $ns[0] != '..');
65 $this->wantedNs = implode(':', $ns);
/plugin/tagfilter/
H A Dhelper.php175 if ($ns == '') {
229 public function getPagesByTag($tag, $ns = '') argument
232 $this->startPageSearch($ns);
246 * @param string $ns
248 protected function startPageSearch($ns = '') argument
250 $this->ps_ns = $ns;
355 * @param string $ns namespace with images
398 * @param string $ns the namespace to look in
402 public function getAllPages($ns, $tag_list_r) argument
451 …if (($ns == '.' && getNS($matchedPage) === false) || strpos(':' . getNS($matchedPage) . ':', ':' .…
[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/tag/syntax/
H A Dtopic.php52 list($ns, $tag) = array_pad(explode('?', $match), 2, '');
55 $tag = $ns;
56 $ns = '';
59 if ($ns == '*' || $ns == ':') {
60 $ns = '';
61 } elseif ($ns == '.') {
62 $ns = getNS($ID);
64 $ns = cleanID($ns);
67 return [$ns, trim($tag), $flags];
79 list($ns, $tag, $flags) = $data;
[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/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);

12345678910>>...21