本文整理匯總了PHP中select::icons_modules方法的典型用法代碼示例。如果您正苦於以下問題:PHP select::icons_modules方法的具體用法?PHP select::icons_modules怎麽用?PHP select::icons_modules使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類select
的用法示例。
在下文中一共展示了select::icons_modules方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: folder_options
/**
* Return folder create or rename form
*
* @param int|string $folder Folder ID or String (/Workspace/.../)
* @param bool $create true for create, false for rename
* @return html form
*/
static function folder_options($folder, $create)
{
self::_require_access($folder, "write");
$sel_folder = folder_build_selfolder($folder, "");
$tpl = new template();
$tpl->schemas = select::modules();
$tpl->icons = select::icons_modules();
$tpl->isdbfolder = is_numeric($folder);
$tpl->style = $_SESSION["theme"];
$tpl->folder = array("name" => $sel_folder["ftitle"], "description" => $sel_folder["fdescription"], "type" => $sel_folder["ftype"], "assets" => $sel_folder["fcount"], "icon" => $sel_folder["icon"], "notification" => $sel_folder["notification"], "id" => $folder);
return $tpl->render($create ? "templates/ajax_folder_create.php" : "templates/ajax_folder_rename.php");
}