function fetch($id, $asObject = true)
 {
     return eZPersistentObject::fetchObject(eZOrderStatusHistory::definition(), null, array("id" => $id), $asObject);
 }
Esempio n. 2
0
 function createStatusHistory()
 {
     $history = eZOrderStatusHistory::create($this->OrderNr, $this->StatusID, $this->StatusModifierID, $this->StatusModified);
     $history->store();
     return $history;
 }
 function fetchOrderStatusHistory( $orderID )
 {
     $list = eZOrderStatusHistory::fetchListByOrder( $orderID );
     return array( 'result' => $list );
 }
Esempio n. 4
0
 function createStatusHistory()
 {
     $history = eZOrderStatusHistory::create( $this->OrderNr, // Note: Use the order nr, not id
                                              $this->StatusID,
                                              $this->StatusModifierID,
                                              $this->StatusModified );
     $history->store();
     return $history;
 }