示例#1
0
 public function transactions($reload = false)
 {
     if (!$this->transactions_cache or $reload) {
         $id = mysql_real_escape_string($this->id);
         $this->transactions_cache = PaymentTransaction::find_all("paymenttransactions.cart_id = '{$id}'");
     }
     return $this->transactions_cache;
 }