This commit is contained in:
2025-05-22 17:21:25 -05:00
parent 190cabfb23
commit 4eb63b1247
136 changed files with 43684 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
* @package Joomla
* @subpackage Membership Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\Form\Form;
$form = Form::getInstance('renew_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renew_options.xml');
$formData['renew_options'] = [];
foreach ($this->prices as $renewOption)
{
$formData['renew_options'][] = [
'id' => $renewOption->id,
'renew_option_length' => $renewOption->renew_option_length,
'renew_option_length_unit' => $renewOption->renew_option_length_unit,
'price' => $renewOption->price,
];
}
$form->bind($formData);
foreach ($form->getFieldset() as $field)
{
echo $field->input;
}