예제 #1
0
 /**
  * Adds an log with the action Created
  * 
  * @param SilvercartOrder $order   Order to add log for
  * @param string          $context Context object
  * 
  * @return void
  *
  * @author Sebastian Diel <*****@*****.**>
  * @since 17.10.2012
  */
 public static function addCreatedLog($order, $context)
 {
     $orderLog = new SilvercartOrderLog();
     $orderLog->Context = $context;
     $orderLog->SilvercartOrderID = $order->ID;
     $orderLog->setCreatedAction();
     $orderLog->write();
 }
예제 #2
0
 /**
  * Marks the order as not seen
  * 
  * @return void
  *
  * @author Sebastian Diel <*****@*****.**>
  * @since 14.03.2013
  */
 public function markAsNotSeen()
 {
     if ($this->IsSeen) {
         $this->IsSeen = false;
         $this->write();
         SilvercartOrderLog::addMarkedAsNotSeenLog($this, 'SilvercartOrder');
     }
 }