コード例 #1
0
ファイル: order.php プロジェクト: BGCX261/zimmerli-svn-to-git
 public function commit()
 {
     $object = $this->object;
     $object->total_original_price = $this->originalPrice;
     $object->total_price = $this->actualPrice;
     $object->total_amount = $this->totalAmount;
     $object->domain_id = $this->domain ? $this->domain->getId() : false;
     $object->order_discount_id = $this->discount ? $this->discount->getId() : false;
     $object->http_referer = urldecode(getSession("http_referer"));
     $object->http_target = urldecode(getSession("http_target"));
     $this->applyItems();
     parent::commit();
 }
コード例 #2
0
 /**
  * Применить внесенные изменения
  */
 public function commit()
 {
     $object = $this->object;
     $object->item_price = $this->price;
     $object->item_total_original_price = $this->totalOriginalPrice;
     $object->item_total_price = $this->totalActualPrice;
     $object->item_amount = $this->amount;
     $object->item_discount_id = $this->discount ? $this->discount->getId() : false;
     $object->item_link = $this->itemElement;
     parent::commit();
 }