Lines Matching defs:ns
22 protected $ns;
28 * $ns
71 if ($INPUT->str('ns') == '*') {
72 $this->ns = '*';
74 $this->ns = cleanID($INPUT->str('ns'));
81 } elseif ($this->ns) {
82 $this->current_item = ['id' => $this->ns, 'type' => 'd'];
111 if ($this->ns) {
112 if ($this->ns == '*') {
115 $scope = $this->ns . ':*';
219 if ($this->ns) $opts['ns'] = $this->ns;
237 $ns = $this->ns;
238 if (empty($ns)) {
239 $ns = dirname(str_replace(':', '/', $ID));
240 if ($ns == '.') $ns = '';
241 } elseif ($ns == '*') {
242 $ns = '';
244 $ns = utf8_encodeFN(str_replace(':', '/', $ns));
246 $data = $this->makeTree($ns);
280 search($data, $conf['datadir'], 'search_index', ['ns' => $folder], $limit);
282 search($media, $conf['mediadir'], 'search_index', ['ns' => $folder, 'nofiles' => true], $limit);
367 echo '<input type="hidden" name="ns" value="' . hsc($this->ns) . '" />';
393 if ($this->ns) {
394 printf($this->getLang('p_choose_ns'), hsc($this->ns));
420 echo $this->makeCheckboxes($current, empty($this->ns), 'acl');
443 $ns = $this->ns;
446 if ($ns) {
447 if ($ns == '*') {
450 $check = $ns . ':*';
476 if ($ns) {
491 if ($ns) {
492 printf($this->getLang('p_user_ns'), hsc($who), hsc($ns), implode(', ', $names));
496 } elseif ($ns) {
497 printf($this->getLang('p_group_ns'), hsc(ltrim($who, '@')), hsc($ns), implode(', ', $names));
548 wl('', $this->getLinkOptions(['ns' => $item['id'], 'sectok' => getSecurityToken()])) .
554 wl('', $this->getLinkOptions(['id' => $item['id'], 'ns' => '', 'sectok' => getSecurityToken()])) .
641 if ($this->ns) {
642 echo '<input type="hidden" name="ns" value="' . hsc($this->ns) . '" />';
709 if ($this->ns) {
710 if ($this->ns == '*') {
713 $check = $this->ns . ':*';