function fetch($id, $asObject = true) { return eZPersistentObject::fetchObject(eZOrderStatusHistory::definition(), null, array("id" => $id), $asObject); }
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 ); }
function createStatusHistory() { $history = eZOrderStatusHistory::create( $this->OrderNr, // Note: Use the order nr, not id $this->StatusID, $this->StatusModifierID, $this->StatusModified ); $history->store(); return $history; }