/** * Return offer as object. * @return Offer */ public function GetOfferObj() { if ($this->_OfferObj == null) { $ofs = new Offers(); $this->_OfferObj = $ofs->GetOffer($this->GetOfferId()); } return $this->_OfferObj; }
/** * Return offer as object. * @return Offer */ public function GetOfferObj() { if ($this->_OfferObj == null) { $this->_OfferObj = Offers::GetOffer($this->GetOfferId(), $this->GetOfferLng()); } return $this->_OfferObj; }
/** * Returns a offer object from the database by ID. * @param int $id Offer id. * @param int $idLng Language Id. Default 1045. * @return Offer */ public function GetOffer($id, $idLng = 1045) { return Offers::GetOffer($id, $idLng); }