Lines Matching defs:ns

305  * @param string $ns   target namespace
309 function media_upload_xhr($ns, $auth)
330 $ns . ':' . $id,
350 * @param string $ns target namespace
355 function media_upload($ns, $auth, $file = false)
387 $ns . ':' . $id,
703 * @param string $ns namespace
709 function media_filelist($ns, $auth = null, $jump = '', $fullscreenview = false, $sort = false)
713 $ns = cleanID($ns);
716 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
718 if (!$fullscreenview) echo '<h1 id="media__ns">:' . hsc($ns) . '</h1>' . NL;
725 media_uploadform($ns, $auth);
726 media_searchform($ns);
729 $dir = utf8_encodeFN(str_replace(':', '/', $ns));
938 * @param string $ns
942 function media_tab_files($ns, $auth = null, $jump = '')
945 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
950 media_filelist($ns, $auth, $jump, true, _media_get_sort_type());
959 * @param string $ns
963 function media_tab_upload($ns, $auth = null, $jump = '')
966 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
972 media_uploadform($ns, $auth, true);
981 * @param string $ns
984 function media_tab_search($ns, $auth = null)
992 media_searchform($ns, $query, true);
994 media_searchlist($query, $ns, $auth, true, _media_get_sort_type());
1005 * @param string $ns
1009 function media_tab_view($image, $ns, $auth = null, $rev = '')
1012 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1030 * @param string $ns
1033 function media_tab_edit($image, $ns, $auth = null)
1035 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1049 * @param string $ns
1052 function media_tab_history($image, $ns, $auth = null)
1057 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1062 (new MediaDiff($image))->show(); //media_diff($image, $ns, $auth);
1300 * @param string $ns
1306 function media_diff($image, $ns, $auth, $fromajax = false)
1331 * @param string $ns
1336 function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax)
1402 * @param string $ns
1407 function media_searchlist($query, $ns, $auth = null, $fullscreen = false, $sort = 'natural')
1412 $ns = cleanID($ns);
1414 'ns' => $ns,
1421 $dir = utf8_encodeFN(str_replace(':', '/', $evdata['ns']));
1445 echo '<h1 id="media__ns">' . sprintf($lang['searchmedia_in'], hsc($ns) . ':*') . '</h1>' . NL;
1446 media_searchform($ns, $query);
1459 $display->relativeDisplay($ns);
1464 $display->relativeDisplay($ns);
1511 $media_manager_params = ['tab_files', 'tab_details', 'image', 'ns', 'list', 'sort'];
1536 * @param string $ns
1540 function media_uploadform($ns, $auth, $fullscreen = false)
1568 $form->setHiddenField('ns', hsc($ns)); // FIXME hsc required?
1634 * @param string $ns
1638 function media_searchform($ns, $query = '', $fullscreen = false)
1650 $form->setHiddenField('ns', $ns);
1655 ->attr('title', sprintf($lang['searchmedia_in'], hsc($ns) . ':*'))
1669 * @param string $ns
1671 function media_nstree($ns)
1677 $ns = cleanID($ns);
1678 if (empty($ns)) {
1680 $ns = (string)getNS($ID);
1683 $ns_dir = utf8_encodeFN(str_replace(':', '/', $ns));
1686 search($data, $conf['mediadir'], 'search_index', ['ns' => $ns_dir, 'nofiles' => true]);
1691 // insert the current ns into the hierarchy if it isn't already part of it
1692 $ns_parts = explode(':', $ns);
1742 $ret .= '<a href="' . DOKU_BASE . 'lib/exe/mediamanager.php?ns=' . idfilter($item['id']) . '" class="idx_dir">';
1743 else $ret .= '<a href="' . media_managerURL(['ns' => idfilter($item['id'], false), 'tab_files' => 'files'])