Lines Matching refs:ns
308 * @param string $ns target namespace
312 function media_upload_xhr($ns, $auth) argument
333 $ns . ':' . $id,
353 * @param string $ns target namespace
358 function media_upload($ns, $auth, $file = false) argument
390 $ns . ':' . $id,
706 * @param string $ns namespace
712 function media_filelist($ns, $auth = null, $jump = '', $fullscreenview = false, $sort = false) argument
716 $ns = cleanID($ns);
719 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
721 if (!$fullscreenview) echo '<h1 id="media__ns">:' . hsc($ns) . '</h1>' . NL;
728 media_uploadform($ns, $auth);
729 media_searchform($ns);
732 $dir = utf8_encodeFN(str_replace(':', '/', $ns));
941 * @param string $ns
945 function media_tab_files($ns, $auth = null, $jump = '') argument
948 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
953 media_filelist($ns, $auth, $jump, true, _media_get_sort_type());
962 * @param string $ns
966 function media_tab_upload($ns, $auth = null, $jump = '') argument
969 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
975 media_uploadform($ns, $auth, true);
984 * @param string $ns
987 function media_tab_search($ns, $auth = null) argument
995 media_searchform($ns, $query, true);
997 media_searchlist($query, $ns, $auth, true, _media_get_sort_type());
1008 * @param string $ns
1012 function media_tab_view($image, $ns, $auth = null, $rev = '') argument
1015 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1033 * @param string $ns
1036 function media_tab_edit($image, $ns, $auth = null) argument
1038 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1052 * @param string $ns
1055 function media_tab_history($image, $ns, $auth = null) argument
1060 if (is_null($auth)) $auth = auth_quickaclcheck("$ns:*");
1238 * @param string $ns
1244 function media_diff($image, $ns, $auth, $fromajax = false) argument
1269 * @param string $ns
1274 function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax) argument
1340 * @param string $ns
1345 function media_searchlist($query, $ns, $auth = null, $fullscreen = false, $sort = 'natural') argument
1350 $ns = cleanID($ns);
1352 'ns' => $ns,
1383 … echo '<h1 id="media__ns">' . sprintf($lang['searchmedia_in'], hsc($ns) . ':*') . '</h1>' . NL;
1384 media_searchform($ns, $query);
1397 $display->relativeDisplay($ns);
1402 $display->relativeDisplay($ns);
1474 * @param string $ns
1478 function media_uploadform($ns, $auth, $fullscreen = false) argument
1506 $form->setHiddenField('ns', hsc($ns)); // FIXME hsc required?
1572 * @param string $ns
1576 function media_searchform($ns, $query = '', $fullscreen = false) argument
1588 $form->setHiddenField('ns', $ns);
1593 ->attr('title', sprintf($lang['searchmedia_in'], hsc($ns) . ':*'))
1607 * @param string $ns
1609 function media_nstree($ns) argument
1615 $ns = cleanID($ns);
1616 if (empty($ns)) {
1618 $ns = (string)getNS($ID);
1621 $ns_dir = utf8_encodeFN(str_replace(':', '/', $ns));
1630 $ns_parts = explode(':', $ns);