Пример #1
0
 protected function getUserData()
 {
     $this->user_points = JTrinityCoreUtilities::getPoints();
     $id = JRequest::getVar('productid', 0);
     if (JRequest::getVar('donationtype') == DONATIONTYPE_ITEM) {
         $this->cost = JTrinityCoreUtilities::getItemCost($id);
     }
     if (JRequest::getVar('donationtype') == DONATIONTYPE_POWERLEVELING) {
         $this->cost = JTrinityCoreUtilities::getPowerlevelingCost($id);
     }
     if ($this->cost < 0) {
         $this->setError('Not cost found for id=' . $id);
     }
 }