Home
last modified time | relevance | path

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

12345678910>>...23

/plugin/searchns/
Dhelper.php18 protected $ns; variable in helper_plugin_searchns
25 $this->ns = $this->getNsFromConfig();
35 if (!is_null($this->ns)) {
36 return $this->ns;
39 $ns = [];
42 if (empty($config)) return $ns;
49 return $ns;
51 $ns[trim($n[1])] = rtrim(trim($n[0], ':'));
55 $ns = array_merge([$this->getLang('all label') => ''], $ns);
57 $ns[$this->getLang('all label')] = '';
[all …]
/plugin/nspages/fileHelper/
DnamespacePreparer.php22 function prepareFileTitle(&$ns){ argument
23 $idMainPage = $this->getMainPageId($ns);
25 $ns['title'] = p_get_first_heading($idMainPage, true);
27 $ns['title'] = null;
38 function prepareFile(&$ns){ argument
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){ argument
45 if (!array_key_exists('idMainPage', $ns)){
[all …]
/plugin/subpages/
Dsyntax.php141 function _getFqidOfNS($ns, $mustBeNSnoPage) { argument
144 if(substr($ns, 0, 2) == '.:') {
145 $ns = ':'.getNS($ID).substr($ns, 1);
146 } elseif(substr($ns, 0, 3) == '..:') {
147 $ns = $this->_getParentNS($ID).substr($ns, 3);
148 } elseif($ns == '..') {
149 $ns = $this->_getParentNS($ID);
150 } elseif(substr($ns, 0, 1) == ':') {
151 } elseif($ns == '.' || $ns == '*') {
152 $ns = ':'.getNS($ID);
[all …]
/plugin/linkmanager/
Dfunctions.php30 $ns = cleanID($NS);
32 if(empty($ns)){
33 $ns = dirname(str_replace(':','/',$ID));
34 if($ns == '.') $ns ='';
36 $dir = utf8_encodeFN(str_replace(':','/',$ns));
41 search($data,$conf['datadir'],'linkpage_search_index',array('ns' => $ns),$dir);
45 function linkpage_filelist($ns,$auth=null,$jump=''){ argument
49 $ns = cleanID($ns);
52 if(is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
54 echo '<h1 id="linkpage__ns">:'.hsc($ns).'</h1>'.NL;
[all …]
/plugin/dokutranslate/
Dadmin.php28 var $ns = null; variable in admin_plugin_dokutranslate
61 $this->ns = '*';
63 $this->ns = cleanID($_REQUEST['ns']);
69 if($this->ns == '*'){
72 $scope = $this->ns.':*';
164 if($this->ns) $opts['ns'] = $this->ns;
181 $ns = $this->ns;
182 if(empty($ns)){
183 $ns = dirname(str_replace(':','/',$ID));
184 if($ns == '.') $ns ='';
[all …]
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/
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);
75 function sample (Doku_Renderer $renderer, $ns, $cacheDir) { argument
[all …]
/plugin/scrape/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Printer/
DConfigForm.php109 list($ns, $directive) = $key;
110 $all[$ns][$directive] = $config->get($ns . '.' . $directive);
121 foreach ($all as $ns => $directives) {
122 $ret .= $this->renderNamespace($ns, $directives);
144 protected function renderNamespace($ns, $directives) argument
149 $ret .= $this->element('th', $ns, array('colspan' => 2));
157 $url = str_replace('%s', urlencode("$ns.$directive"), $this->docURL);
160 $attr = array('for' => "{$this->name}:$ns.$directive");
182 $def = $this->config->def->info["$ns.$directive"];
197 …$ret .= $type_obj->render($ns, $directive, $value, $this->name, array($this->genConfig, $this->con…
[all …]
/plugin/blog/syntax/
Dblog.php29 list($ns, $num) = array_pad(explode('?', $match, 2), 2, null);
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);
51 list($ns, $num, $flags, $refine) = $data;
[all …]
/plugin/discussion/syntax/
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;
105 … if ($my =& plugin_load('helper', 'discussion')) $pages = $my->getThreads($ns, null, $skipEmpty);
118 if ((auth_quickaclcheck($ns.':*') >= AUTH_CREATE) && ($mode == 'xhtml')) {
121 $renderer->doc .= $this->_newThreadForm($ns);
134 $perm_create = (auth_quickaclcheck($ns.':*') >= AUTH_CREATE);
[all …]
/plugin/dokugource/
Daction.php48 $ns = $event->data[1].':'.(($m[1] == '<') ? '' : $event->data[2]);
53 if(array_shift(preg_split('`\s+`', $l, 2)) != $ns) fwrite($fp, $l."\n");
55 fwrite($fp, $ns.' '.$c."\n");
75 $ns = $ID;
76 if($ns) {
77 $ns = str_replace('/', ':', trim($ns, '/:'));
78 if(!@is_dir($conf['datadir'].'/'.str_replace(':', '/', $ns).'/')) {
79 if(@is_file($conf['datadir'].'/'.str_replace(':', '/', $ns).'.txt')) {
80 $ns = preg_replace('`^(.*)\:[^\:]+$`', '$1', $ns);
84 $ns = trim($ns, '/:');
[all …]
Dadmin.php25 var $ns = ''; variable in admin_plugin_dokugource
87 …$this->ns = (isset($_POST['dokugource_ns']) && !empty($_POST['dokugource_ns'])) ? $_POST['dokugour…
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);
[all …]
/plugin/superacl/
Dadmin.php23 var $ns = null; variable in admin_plugin_superacl2
73 if($_REQUEST['ns'] == '*'){
76 $this->ns = cleanID($_REQUEST['ns']);
198 if($this->ns) $opts['ns'] = $this->ns;
217 $ns = $this->ns;
218 if(empty($ns)){
219 $ns = dirname(str_replace(':','/',$ID));
220 if($ns == '.') $ns ='';
221 }elseif($ns == '*'){
222 $ns ='';
[all …]
/plugin/nspages/
DnamespaceFinder.php67 $ns = explode(':', $this->wantedNs);
69 for($i = 0; $i < count($ns); $i++) {
70 if($ns[$i] === '' || $ns[$i] === '.') {
71 array_splice($ns, $i, 1);
73 } else if($ns[$i] == '..') {
79 array_splice($ns, $i - 1, 2);
85 $this->isSafe = (count($ns) == 0 || $ns[0] != '..');
86 $this->wantedNs = implode(':', $ns);
101 static function namespaceToDirectory($ns){ argument
102 return utf8_encodeFN(str_replace(':', '/', $ns));
/plugin/searchresultswithpath/
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/
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/editor/
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/task/syntax/
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/tagfilter/
Dhelper.php60 * @param string $ns list only pages from this namespace
65 public function getTagsByRegExp($tagExpression, $ns = '', $aclSafe = false) argument
75 …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) argument
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) argument
175 if ($ns == '') {
186 if ($this->taghelper->isVisible($page, $ns)) {
[all …]
/plugin/asciidocjs/node_modules/jake/lib/
Drule.js12 let ns = resolveNs(parts);
15 'ns' : ns
27 let ns = jake.defaultNamespace;
28 for(let i = 0, l = parts.length; ns && i < l; i++) {
29 ns = ns.childNamespaces[parts[i]];
31 return ns;
43 let ns = task.ns;
46 ns: ns,
73 this.ns = opts.ns;
95 let ns = this.ns.resolveNamespace(nsPath);
[all …]
Dnamespace.js30 let ns;
35 ns = this.resolveNamespace(taskPath) ||
37 task = (ns && ns.resolveTask(taskName));
54 let ns = this;
56 for (let i = 0, ii = parts.length; (ns && i < ii); i++) {
57 ns = ns.childNamespaces[parts[i]];
60 return ns || null;
66 let ns = this.resolveNamespace(parts.join(':'));
67 let rules = ns ? ns.rules : [];
78 return (ns && match) ||
/plugin/elasticsearch/vendor/symfony/polyfill-php73/
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/siteexport/syntax/
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/gallery/classes/
DNamespaceGallery.php8 public function __construct($ns, $options) argument
10 parent::__construct($ns, $options);
11 $this->searchNamespace($ns, $options->recursive, $options->filter);
17 * @param string $ns
22 protected function searchNamespace($ns, $recursive, $filter) argument
26 if (media_exists($ns) && !is_dir(mediaFN($ns))) {
28 if ($this->hasImageExtension($ns)) {
29 $this->images[] = new Image($ns);
40 utf8_encodeFN(str_replace(':', '/', $ns))
/plugin/tag/syntax/
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 …]

12345678910>>...23