Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $sesion = JFactory::getSession();
     //  get order_id
     $order_id = JRequest::getVar('order_id', 0);
     $order_id = $order_id ? $order_id : $sesion->get('order_id');
     $this->order_id = $order_id;
     // get payment_method_id
     $payment_method_id = JRequest::getVar('pm_id', 0);
     $payment_method_id = $payment_method_id ? $payment_method_id : $sesion->get('payment_method_id');
     $this->payment_method_id = $payment_method_id;
     // get package_id
     $package_id = $this->getPackage_id($order_id);
     //set data
     $this->setData($order_id, $package_id, $payment_method_id);
 }
Esempio n. 2
0
File: user.php Progetto: laiello/yrm
 function __construct()
 {
     parent::__construct();
 }