本文整理汇总了PHP中oseRegistry::quickRequire方法的典型用法代码示例。如果您正苦于以下问题:PHP oseRegistry::quickRequire方法的具体用法?PHP oseRegistry::quickRequire怎么用?PHP oseRegistry::quickRequire使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类oseRegistry
的用法示例。
在下文中一共展示了oseRegistry::quickRequire方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
oseRegistry::register('registry', 'oseregistry');
oseRegistry::call('registry');
oseRegistry::register('msc', 'membership');
$this->msc = oseRegistry::call('msc');
oseRegistry::register('user', 'user');
oseRegistry::quickRequire('user');
oseRegistry::register('member', 'member');
oseRegistry::call('member');
oseRegistry::register('payment', 'payment');
oseRegistry::quickRequire('payment');
JFactory::getApplication('administrator');
}
示例2: load
public static function load($app, $config = array())
{
oseRegistry::register('registry', 'oseregistry');
oseRegistry::call('registry');
switch ($app) {
case 'msc':
case 'mscv5':
case 'msc1v5':
oseRegistry::register('remote', 'remote');
oseRegistry::register('email', 'email');
oseRegistry::register('msc', 'membership');
oseRegistry::register('user', 'user');
oseRegistry::quickRequire('user');
oseRegistry::register('member', 'member');
// default
oseRegistry::register('payment', 'payment');
oseRegistry::quickRequire('payment');
oseRegistry::register('content', 'content');
break;
case 'mscv6':
oseRegistry::register('form', 'form');
oseAppConfig::load('payment');
oseRegistry::quickRequire('payment2');
oseRegistry::register('payment2', 'paymentMsc');
oseRegistry::register('msc', 'msc');
oseRegistry::register('content', 'content');
break;
case 'credit':
oseAppConfig::load('payment');
oseRegistry::register('form', 'form');
oseRegistry::quickRequire('payment2');
oseRegistry::register('payment2', 'paymentCredit');
oseRegistry::register('credit', 'credit');
oseRegistry::register('content2', 'content2');
break;
case 'ecash':
oseAppConfig::load('payment');
oseRegistry::quickRequire('payment2');
oseRegistry::register('payment2', 'paymentEcash');
break;
case 'contract':
oseRegistry::register('form', 'form');
oseRegistry::register('contract', 'contract');
oseRegistry::register('payment2', 'paymentContract');
break;
case 'ftable':
oseRegistry::register('ftable', 'ftable');
break;
case 'mart':
self::load('mscv6');
self::load('contract');
self::load('lic');
oseRegistry::register('form', 'form');
oseRegistry::register('mart', 'mart');
oseRegistry::register('payment2', 'paymentMart');
break;
case 'commerce':
case 'payment':
oseRegistry::register('remote', 'remote');
oseRegistry::register('email', 'email');
oseRegistry::register('user2', 'user2');
oseRegistry::quickRequire('user2');
oseRegistry::register('locale', 'locale');
oseRegistry::register('form', 'form');
oseRegistry::register('event', 'event');
oseRegistry::register('payment2', 'payment2');
oseRegistry::quickRequire('payment2');
break;
case 'lic':
case 'license':
oseAppConfig::load('payment');
oseRegistry::quickRequire('payment2');
oseRegistry::register('payment2', 'paymentLic');
oseRegistry::register('lic', 'lic');
oseRegistry::register('form', 'form');
break;
case 'migration':
oseRegistry::register('user2', 'user2');
oseRegistry::quickRequire('user2');
self::load('mscv6');
break;
default:
oseRegistry::register('user', 'user');
break;
}
}
示例3: cancel
function cancel($id, $entry_type = 'msc', $entry_option = null)
{
oseRegistry::register('email', 'email');
oseRegistry::register('msc', 'membership');
oseRegistry::register('user', 'user');
oseRegistry::quickRequire('user');
oseRegistry::register('member', 'member');
$msc_id = $id;
$user_id = $this->user_id;
$db = oseDB::instance();
$query = " SELECT * FROM `#__osemsc_member` WHERE `msc_id` = '{$msc_id}' AND `member_id` = '{$user_id}'";
$db->setQuery($query);
$memInfo = oseDB::loadItem('obj');
$memParams = oseJson::decode($memInfo->params);
$order_id = oseGetValue($memParams, 'order_id');
$order_item_id = oseGetValue($memParams, 'order_item_id');
$params = oseCall('member')->getAddonParams($msc_id, $user_id, $order_id, array('order_item_id' => $order_item_id));
$msc = oseCall('msc');
$app = JFactory::getApplication('SITE');
$controller = JRequest::getCmd('controller');
if ($app->isSite()) {
$updated = oseMscAddon::runAction('member.msc.cancelMsc', $params, true, false);
} elseif ($controller == 'orders') {
$updated = oseMscAddon::runAction('member.msc.cancelMsc', $params, true, false);
} else {
$updated = oseMscAddon::runAction('member.msc.cancelMsc', $params, true, true);
}
return $updated;
}
示例4:
oseRegistry::quickRequire('member');
if (!empty($config->customized_member_mode)) {
oseRegistry::register('member', $config->customized_member_mode);
}
} else {
$config->member_mode = (isset($config->member_mode)) ? $config->member_mode : '';
switch ($config->member_mode) {
case ('multi'):
oseRegistry::call('member');
break;
default:
oseRegistry::call('member');
break;
}
}
oseRegistry::register('payment', 'payment');
oseRegistry::quickRequire('payment');
if (empty($config->payment_system)) {
$config->register_form = (isset($config->register_form)) ? $config->register_form : 'onestep';
if ($config->register_form == 'default' || empty($config->register_form)) {
oseRegistry::register('payment', 'paymentSC');
}
} else {
oseRegistry::register('payment', 'payment' . $config->payment_system);
}
oseRegistry::register('remote', 'remote');
oseRegistry::register('lic', 'license');
oseRegistry::register('content', 'content');
oseRegistry::register('debug', 'debug');
oseRegistry::quickRequire('debug');
?>