本文整理汇总了PHP中RSMembershipHelper::getMembershipFields方法的典型用法代码示例。如果您正苦于以下问题:PHP RSMembershipHelper::getMembershipFields方法的具体用法?PHP RSMembershipHelper::getMembershipFields怎么用?PHP RSMembershipHelper::getMembershipFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RSMembershipHelper
的用法示例。
在下文中一共展示了RSMembershipHelper::getMembershipFields方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($tpl = null)
{
$app = JFactory::getApplication();
// get parameters
$params = clone $app->getParams('com_rsmembership');
$pathway = $app->getPathway();
$pathway->addItem(JText::_('COM_RSMEMBERSHIP_RENEW'), '');
// get the logged user
$this->user = JFactory::getUser();
// get the current layout
$layout = $this->getLayout();
if ($layout == 'default') {
$this->payments = RSMembership::getPlugins();
// get the encoded return url
$this->return = base64_encode(JURI::getInstance());
$this->data = $this->get('data');
// get the membership
$this->membership = $this->get('membership');
$this->membershipterms = $this->get('membershipterms');
$this->fields = RSMembershipHelper::getFields(true);
$this->fields_validation = RSMembershipHelper::getFieldsValidation($this->membership->id);
$this->membership_fields = RSMembershipHelper::getMembershipFields($this->membership->id, true, $this->user->id, true, $this->membership->last_transaction_id);
} elseif ($layout == 'payment') {
$this->html = $this->get('html');
}
// get the extras
$this->extras = $this->get('extras');
$this->cid = $this->get('cid');
$this->config = $this->get('config');
$this->params = $params;
$this->token = JHTML::_('form.token');
$this->currency = RSMembershipHelper::getConfig('currency');
parent::display();
}