本文整理汇总了PHP中JoomdleHelperContent::get_enrol_instance_id方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomdleHelperContent::get_enrol_instance_id方法的具体用法?PHP JoomdleHelperContent::get_enrol_instance_id怎么用?PHP JoomdleHelperContent::get_enrol_instance_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomdleHelperContent
的用法示例。
在下文中一共展示了JoomdleHelperContent::get_enrol_instance_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
//print_r ($course_info);
$paypal_config = JoomdleHelperContent::call_method('get_paypal_config');
$paypalurl = $paypal_config['paypalurl'];
$paypalbusiness = $paypal_config['paypalbusiness'];
$coursefullname = $course_info['fullname'];
$courseshortname = $course_info['shortname'];
$userfullname = $user->name;
$user_id = JoomdleHelperContent::call_method('user_id', $user->username);
$cost = $course_info['cost'];
$userfirstname = 'as';
$userlastname = 'sa';
$useraddress = 'as';
$usercity = 'sa';
$useremail = $user->email;
$usercountry = 'US';
$enrol_id = JoomdleHelperContent::get_enrol_instance_id($course_id, 'paypal');
$joomla_root = JURI::base();
?>
<form action="<?php
echo $paypalurl;
?>
" method="post" id="foo">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="business" value="<?php
echo $paypalbusiness;
?>
" />
<input type="hidden" name="item_name" value="<?php
echo $coursefullname;