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


PHP module::create方法代码示例

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


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

示例1: 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
*/
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:index.php

示例2: module

}
if ($user->data['user_type'] != USER_FOUNDER) {
    login_box($redirect, $user->lang['SEO_LOGIN_FOUNDER'], '', false, false);
}
$user->add_lang(array('acp/common', 'acp/board', 'install', 'posting', 'acp/modules'));
$mode = request_var('mode', 'overview');
$sub = request_var('sub', '');
// Set some standard variables we want to force
$config['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;
// Start the installer
$install = new module();
$install->create('install', "gym_install.{$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
{
    var $id = 0;
    var $type = 'install';
    var $module_ary = array();
    var $filename;
开发者ID:Ibrahim-Abdelkader,项目名称:phpbb3,代码行数:31,代码来源:gym_install.php

示例3: IN

// Output PM_TO box if message composing
if ($mode == 'compose' && request_var('action', '') != 'edit')
{
	if ($config['allow_mass_pm'])
	{
		$sql = 'SELECT group_id, group_name, group_type   
			FROM ' . GROUPS_TABLE . ' 
			WHERE group_type NOT IN (' . GROUP_HIDDEN . ', ' . GROUP_CLOSED . ')
				AND group_receive_pm = 1
			ORDER BY group_type DESC';
		$result = $_CLASS['core_db']->query($sql);

		$group_options = '';
		while ($row = $_CLASS['core_db']->fetch_row_assoc($result))
		{
			$group_options .= '<option' . (($row['group_type'] == GROUP_SPECIAL) ? ' class="blue"' : '') . ' value="' . $row['group_id'] . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $_CLASS['core_user']->lang['G_' . $row['group_name']] : $row['group_name']) . '</option>';
		}
		$_CLASS['core_db']->free_result($result);
	}

	$_CLASS['core_template']->assign(array(
		'S_SHOW_PM_BOX'		=> true,
		'S_ALLOW_MASS_PM'	=> ($config['allow_mass_pm']),
		'S_GROUP_OPTIONS'	=> ($config['allow_mass_pm']) ? $group_options : '',
		'U_SEARCH_USER'		=> generate_link('Members_List&amp;mode=searchuser&amp;form=post&amp;field=username_list'),
	));
}*/
// Instantiate module system and generate list of available modules
$ucp->create('ucp', 'Control_Panel', $module, $mode);
// Load and execute the relevant module
$ucp->load();
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:index.php


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