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


PHP module::load方法代码示例

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


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

示例1: init

 public static function init(&$sockets, &$clients)
 {
     if (self::$initalized) {
         return;
     }
     $sockets =& self::$sockets;
     $clients =& self::$clients;
     self::$initalized = 1;
     // Allow the script to hang around waiting for connections.
     set_time_limit(0);
     // Turn on implicit output flushing so output gets sent imediately
     ob_implicit_flush();
     $DEBUG = true;
     define('DEBUG', $DEBUG);
     self::require_libs();
     self::load_config();
     if (issetArg('help') || issetArg('?')) {
         self::show_help();
         exit;
     }
     if (!($modules = self::config('modules'))) {
         exit("[FATAL ERROR] no modules loaded in the config.\n");
     }
     foreach ($modules as $m) {
         module::load($m);
     }
 }
开发者ID:soldair,项目名称:solumWebSocket,代码行数:27,代码来源:server.php

示例2: before

 function before()
 {
     parent::before();
     $this->template->styles = array("media/css/style.css", 'media/css/jquery.fancybox.css');
     $this->template->scripts = array('/media/js/jquery.js', '/media/js/jquery.fancybox.pack.js', '/media/js/demo.js');
     $mod_search = module::load('search');
     $menu_top = module::load('menutop');
     $this->template->menu_top = array($menu_top);
     $this->template->search = array($mod_search);
 }
开发者ID:sanin25,项目名称:koha,代码行数:10,代码来源:index.php

示例3: array

// Set some standard variables we want to force
$config = array(
	'load_tplcompile'	=> '1'
);

$template->set_custom_template('../adm/style', 'admin');
$template->assign_var('T_TEMPLATE_PATH', '../adm/style');

// the acp template is never stored in the database
$user->theme['template_storedb'] = false;

$install = new module();

$install->create('install', "index.$phpEx", $mode, $sub);
$install->load();

// Generate the page
$install->page_header();
$install->generate_navigation();

$template->set_filenames(array(
	'body' => $install->get_tpl_name())
);

$install->page_footer();

/**
* @package install
*/
class module
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:30,代码来源:index.php

示例4: mySelect

<?php

$mySelect = new mySelect(__FILE__);
$mySelect->tables = $thisSite->PREFIXE_TBL_GEN . "menus";
$mySelect->fields = "code_menu";
$mySelect->where = "lg=:lg AND actif=1";
$mySelect->whereValue["lg"] = array($thisSite->current_lang, PDO::PARAM_STR);
$mySelect->orderby = "chrono ASC";
$result = $mySelect->query();
foreach ($result as $row) {
    $code = "menu_" . $row['code_menu'];
    $obj_module = new module("menus", $code);
    $obj_module->load();
}
//echoa($thisSite->siteMap);
header("Content-Type: text/xml;charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
// on écrit 1er URL: celle du site
echo "<url>\n<loc>" . $thisSite->racineWithLang . "</loc>\n<priority>1.0</priority>\n<changefreq>weekly</changefreq>\n</url>\n";
foreach ($thisSite->siteMap as $code_menu => $tab_menu) {
    foreach ($tab_menu as $tab_rub) {
        $mySelect = new mySelect(__FILE__);
        $mySelect->tables = $thisSite->PREFIXE_TBL_GEN . "pages";
        $mySelect->fields = "*";
        $mySelect->where = "id=:id AND actif=1 and lg=:lg";
        $mySelect->whereValue["id"] = array($tab_rub["id_rub"], PDO::PARAM_INT);
        $mySelect->whereValue["lg"] = array($thisSite->current_lang, PDO::PARAM_STR);
        $result = $mySelect->query();
        $row = current($result);
        $id_rub = $row['id'];
开发者ID:wedesign-pf,项目名称:Tit,代码行数:31,代码来源:sitemap.php

示例5: install

    function install()
    {
        return false;
    }
    function uninstall()
    {
        return false;
    }
}
//
// FUNCTIONS
// ---------
// Basic "global" modes
switch ($mode) {
    case 'activate':
        $ucp->load('ucp', 'activate');
        $ucp->module->ucp_activate();
        url_redirect();
        break;
    case 'resend_act':
        $ucp->load('ucp', 'resend');
        $ucp->module->ucp_resend();
        break;
    case 'sendpassword':
        $ucp->load('ucp', 'remind');
        $ucp->module->ucp_remind();
        break;
    case 'register':
        if ($_CLASS['core_user']->data['user_id'] != ANONYMOUS || isset($_REQUEST['not_agreed'])) {
            redirect();
        }
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:index.php

示例6: foreach

if (is_array($dataMedias["images"])) {
    foreach ($dataMedias["images"] as $x => $image) {
        echoa($params_module["noFirstImage"]);
        if ($params_module["noFirstImage"] == true && $x == 1) {
            continue;
        }
        $media = array();
        $media["legende"] = $image["legende"];
        $media["thumb"] = $image["vig0"];
        $media["image"] = $image["image"];
        $media["rel"] = 'group';
        $media["imgLiquid"] = "imgLiquidFill";
        $obj_module = new module("_hoverme");
        $obj_module->params = $media;
        $obj_module->return = true;
        $dataStd["images"][$i]["imgHover"] = $obj_module->load();
        $i++;
    }
}
$smarty->assign("dataStd", $dataStd);
// Modules contenus
$blocsContenu = load_blocsModules($params_module["modulesContenu"]);
$smarty->assign("blocsContenu", $blocsContenu);
/////////////////////////// side bar ///////////////////////////////////////
$blocsSidebar = load_blocsModules($params_module["modulesSideBar"]);
$smarty->assign("blocsSidebar", $blocsSidebar);
if ($dataStd["texte3"] != "" || $blocsSidebar != "") {
    $sidebar = 1;
} else {
    $sidebar = 0;
}
开发者ID:wedesign-pf,项目名称:Tit,代码行数:31,代码来源:pages_std.php

示例7: array

$hoverme = array();
$media = array();
$media["rel"] = "groupe1";
$media["legende"] = "Maitre Renard par l'odeur alléché, lui tint à peu près ce language. Que vous êtes beau Monsieur Corbeau";
$media["description"] = "<b>TEST</b>qdqsdf sdfsdfsdf sdf sd fdsfqsd qsdqs qd Maitre Renard par l'odeur alléché, lui tint à peu près ce language. Que vous êtes beau Monsieur Corbeau sdf sdfsd fssd fdsfsdfsd";
$media["thumb"] = "client/files/actualites/test_vig0.jpg";
$media["image"] = "client/files/actualites/bigone.jpg";
$media["button"]["link"] = array("link" => "http://www.glopglop.com", "target" => "_blank");
$media["button"]["video"] = array("link" => "https://www.youtube.com/embed/fiTSOpAlI60");
$media["otherImage"][] = array("image" => "client/files/actualites/test.jpg", "legende" => "TEST dqsqsdqsdqsdqsdqsqsd");
$media["otherImage"][] = array("image" => "client/files/actualites/test1.jpg", "legende" => "TEST test1 ");
$media["otherImage"][] = array("image" => "client/files/actualites/test2.jpg", "legende" => "TEST test2");
$hoverme[] = $media;
$media = array();
$media["rel"] = "groupe2";
$media["legende"] = "Maitre Renard par l'odeur alléché, lui tint à peu près ce language. Que vous êtes beau Monsieur Corbeau. Que vous êtes beau Monsieur Corbeau";
$media["thumb"] = "client/files/actualites/test1_vig0.jpg";
$media["image"] = "client/files/actualites/bigone.jpg";
$hoverme[] = $media;
$media = array();
$media["rel"] = "groupe2";
$media["legende"] = "Maitre Renard par l'odeur alléché, lui tint à peu près ce language. Que vous êtes beau Monsieur Corbeau. Que vous êtes beau Monsieur Corbeau";
$media["thumb"] = "client/files/actualites/test2_vig0.jpg";
$media["image"] = "client/files/actualites/bigone.jpg";
$media["button"]["video"] = array("link" => "https://player.vimeo.com/video/116991571");
$hoverme[] = $media;
$obj_module = new module("_hoverme");
$obj_module->params = $hoverme;
$obj_module->return = true;
$result = $obj_module->load();
$smarty->assign("result1", $result);
开发者ID:wedesign-pf,项目名称:Tit,代码行数:31,代码来源:hover+image.php

示例8: import

function import($module)
{
    return module::load($module);
}
开发者ID:LupusMichaelis,项目名称:horn,代码行数:4,代码来源:module.php


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