本文整理汇总了PHP中CFileMan::GetEditorToolbarConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP CFileMan::GetEditorToolbarConfig方法的具体用法?PHP CFileMan::GetEditorToolbarConfig怎么用?PHP CFileMan::GetEditorToolbarConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileMan
的用法示例。
在下文中一共展示了CFileMan::GetEditorToolbarConfig方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arEdTypes[] = array("code" => "iblock_admin", "editors" => array("PREVIEW_TEXT", "DETAIL_TEXT"), "title" => GetMessage("FILEMAN_EDITOR_TYPE_IBLOCK_ADMIN"), "public" => false);
}
if (IsModuleInstalled("subscribe")) {
$arEdTypes[] = array("code" => "subscribe", "editors" => array(), "title" => GetMessage("FILEMAN_EDITOR_TYPE_SUBSCRIBE"), "public" => false);
}
if (IsModuleInstalled("learning")) {
$arEdTypes[] = array("code" => "learning_public", "editors" => array(), "title" => GetMessage("FILEMAN_EDITOR_TYPE_LEARNING_PUBLIC"), "public" => true);
$arEdTypes[] = array("code" => "learning_admin", "editors" => array(), "title" => GetMessage("FILEMAN_EDITOR_TYPE_LEARNING_ADMIN"), "public" => false);
}
if (IsModuleInstalled("form")) {
$arEdTypes[] = array("code" => "form_edit", "editors" => array("FORM_TEMPLATE"), "title" => GetMessage("FILEMAN_EDITOR_TYPE_FORM"), "public" => false);
$arEdTypes[] = array("code" => "form_edit_public", "editors" => array("FORM_TEMPLATE"), "title" => GetMessage("FILEMAN_EDITOR_TYPE_FORM_PUBLIC"), "public" => false);
}
$arCurConfig = array();
for ($i = 0, $l = count($arEdTypes); $i < $l; $i++) {
$arCurConfig[$arEdTypes[$i]['code']] = CFileMan::GetEditorToolbarConfig($arEdTypes[$i]['code']);
// for ($j = 0, $n = count($arEdTypes[$i]['editors']); $j < $n; $j++)
// {
// $arJS = Array();
// $arCSS = Array();
// $events = GetModuleEvents("fileman", "OnBeforeHTMLEditorScriptsGet");
// while($arEvent = $events->Fetch())
// {
// $tmp = ExecuteModuleEventEx($arEvent, array($arEdTypes[$i]['editors'][$j], array()));
// if (!is_array($tmp))
// continue;
// if (is_array($tmp['JS']))
// $arJS = array_merge($arJS, $tmp['JS']);
// if (is_array($tmp['CSS']))
// $arCSS = array_merge($arCSS, $tmp['CSS']);
// }