| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/administrator/components/com_rsform/helpers/ |
Upload File : |
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2015 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
defined('_JEXEC') or die('Restricted access');
class RSFormProPrices
{
protected $formId;
protected $prices = array();
public static function getInstance($formId) {
static $inst = array();
if (!isset($inst[$formId])) {
$inst[$formId] = new RSFormProPrices($formId);
}
return $inst[$formId];
}
public function __construct($formId) {
$this->formId = $formId;
}
public function addPrice($name, $value, $price) {
if (!isset($this->prices[$name])) {
$this->prices[$name] = array();
}
$this->prices[$name][$value] = $price;
}
public function getPrices() {
return $this->prices;
}
}