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


PHP modules::get_modules方法代码示例

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


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

示例1: Copyright

	for the specific language governing rights and limitations under the
	License.

	The Original Code is FusionPBX

	The Initial Developer of the Original Code is
	Mark J Crane <markjcrane@fusionpbx.com>
	Portions created by the Initial Developer are Copyright (C) 2008-2016
	the Initial Developer. All Rights Reserved.

	Contributor(s):
	Mark J Crane <markjcrane@fusionpbx.com>
*/
//process one time
if ($domains_processed == 1) {
    //add missing switch directories in default settings
    $obj = new switch_settings();
    $obj->settings();
    unset($obj);
    //use the module class to get the list of modules from the db and add any missing modules
    if (isset($_SESSION['switch']['mod']['dir'])) {
        $mod = new modules();
        $mod->db = $db;
        $mod->dir = $_SESSION['switch']['mod']['dir'];
        $mod->get_modules();
        $mod->synch();
        $msg = $mod->msg;
        //save the modules.conf
        save_module_xml();
    }
}
开发者ID:kpabijanskas,项目名称:fusionpbx,代码行数:31,代码来源:app_defaults.php

示例2: modules

    echo "<div align='center'>\n";
    echo "<table width='40%'>\n";
    echo "<tr>\n";
    echo "<th align='left'>" . $text['label-message'] . "</th>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td class='row_style1'><strong>{$msg}</strong></td>\n";
    echo "</tr>\n";
    echo "</table>\n";
    echo "</div>\n";
}
//use the module class to get the list of modules from the db and add any missing modules
$module = new modules();
$module->db = $db;
$module->dir = $_SESSION['switch']['mod']['dir'];
$module->get_modules();
$result = $module->modules;
$module_count = count($result);
$module->synch();
$module->xml();
$msg = $module->msg;
//show the msg
if ($msg) {
    echo "<div align='center'>\n";
    echo "<table width='40%'>\n";
    echo "<tr>\n";
    echo "<th align='left'>" . $text['label-message'] . "</th>\n";
    echo "</tr>\n";
    echo "<tr>\n";
    echo "<td class='row_style1'>{$msg}</td>\n";
    echo "</tr>\n";
开发者ID:powerpbx,项目名称:fusionpbx,代码行数:31,代码来源:modules.php


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