Пример #1
0
 /**
  * Return investment as object.
  * @return Investment
  */
 public function GetInvestmentObj()
 {
     if ($this->_InvestmentObj == null) {
         $this->_InvestmentObj = Investments::GetInvestment($this->GetInvestmentId());
     }
     return $this->_InvestmentObj;
 }
Пример #2
0
 /**
  * Returns a investment object from the database by ID.
  * @param $id Investments Id.
  * @return Investment
  */
 public function GetInvestment($id)
 {
     return Investments::GetInvestment($id);
 }