当前位置: 首页>>代码示例>>PHP>>正文


PHP RMFunctions::installed_plugins方法代码示例

本文整理汇总了PHP中RMFunctions::installed_plugins方法的典型用法代码示例。如果您正苦于以下问题:PHP RMFunctions::installed_plugins方法的具体用法?PHP RMFunctions::installed_plugins怎么用?PHP RMFunctions::installed_plugins使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RMFunctions的用法示例。


在下文中一共展示了RMFunctions::installed_plugins方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$modversion['config'][27]['formtype'] = 'textbox';
$modversion['config'][27]['valuetype'] = 'text';
$modversion['config'][27]['default'] = '/usr/sbin/sendmail -bs';
$modversion['config'][28]['name'] = 'rss_enable';
$modversion['config'][28]['title'] = '_MI_RMC_RSSENABLE';
$modversion['config'][28]['description'] = '';
$modversion['config'][28]['formtype'] = 'yesno';
$modversion['config'][28]['valuetype'] = 'int';
$modversion['config'][28]['default'] = 1;
$modversion['config'][29]['name'] = 'blocks_enable';
$modversion['config'][29]['title'] = '_MI_RMC_BLOCKSENABLE';
$modversion['config'][29]['description'] = '';
$modversion['config'][29]['formtype'] = 'yesno';
$modversion['config'][29]['valuetype'] = 'int';
$modversion['config'][29]['default'] = 0;
$modversion['blocks'][] = array('file' => "comments.php", 'name' => __('Comments', 'rmcommon'), 'description' => __('Show comments from internal comments system', 'rmcommon'), 'show_func' => "rmc_bkcomments_show", 'edit_func' => "rmc_bkcomments_edit", 'template' => 'rmc_bk_comments.html', 'options' => "5|1|1|1|1");
$modversion['blocks'][] = array('file' => "custom.php", 'name' => __('Custom Block', 'rmcommon'), 'description' => __('Allows to create a block with custom content.', 'rmcommon'), 'show_func' => "", 'type' => 'custom');
$amod = xoops_getActiveModules();
if (in_array("rmcommon", $amod)) {
    $plugins = RMFunctions::installed_plugins();
    foreach ($plugins as $plugin) {
        $p = RMFunctions::load_plugin($plugin);
        if (!method_exists($p, 'blocks')) {
            continue;
        }
        foreach ($p->blocks() as $block) {
            $block['plugin'] = 1;
            $modversion['blocks'][] = $block;
        }
    }
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:xoops_version.php


注:本文中的RMFunctions::installed_plugins方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。