Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * Return offer as object.
  * @return Offer
  */
 public function GetOfferObj()
 {
     if ($this->_OfferObj == null) {
         $this->_OfferObj = Offers::GetOffer($this->GetOfferId(), $this->GetOfferLng());
     }
     return $this->_OfferObj;
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }