當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ArtefactTypeFileBase::files_js方法代碼示例

本文整理匯總了PHP中ArtefactTypeFileBase::files_js方法的典型用法代碼示例。如果您正苦於以下問題:PHP ArtefactTypeFileBase::files_js方法的具體用法?PHP ArtefactTypeFileBase::files_js怎麽用?PHP ArtefactTypeFileBase::files_js使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ArtefactTypeFileBase的用法示例。


在下文中一共展示了ArtefactTypeFileBase::files_js方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: define

define('INTERNAL', 1);
define('INSTITUTIONALADMIN', 1);
define('MENUITEM', 'manageinstitutions/institutionfiles');
define('SECTION_PLUGINTYPE', 'artefact');
define('SECTION_PLUGINNAME', 'file');
define('SECTION_PAGE', 'institutionfiles');
require dirname(dirname(dirname(__FILE__))) . '/init.php';
safe_require('artefact', 'file');
require_once get_config('libroot') . 'institution.php';
$institution = param_alphanum('institution', false);
define('TITLE', get_string('institutionfiles', 'admin'));
$s = institution_selector_for_page($institution, get_config('wwwroot') . 'artefact/file/institutionfiles.php');
$institution = $s['institution'];
$pagebase = get_config('wwwroot') . 'artefact/file/institutionfiles.php?institution=' . $institution;
$form = pieform(ArtefactTypeFileBase::files_form($pagebase, null, $institution));
$js = ArtefactTypeFileBase::files_js();
$smarty = smarty();
setpageicon($smarty, 'icon-university');
if ($institution === false) {
    $smarty->display('admin/users/noinstitutions.tpl');
    exit;
}
if (!$USER->can_edit_institution($institution)) {
    throw new AccessDeniedException();
}
$smarty->assign('institution', $institution);
$smarty->assign('institutionselector', $s['institutionselector']);
$smarty->assign('form', $form);
$smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs'] . $js);
$smarty->assign('PAGEHEADING', TITLE);
$smarty->display('artefact:file:files.tpl');
開發者ID:rboyatt,項目名稱:mahara,代碼行數:31,代碼來源:institutionfiles.php


注:本文中的ArtefactTypeFileBase::files_js方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。