|
eZ Publish
[4.2]
|
Handles a list of status changes to an order item. More...
Inheritance diagram for eZOrderStatusHistory:
Collaboration diagram for eZOrderStatusHistory:Public Member Functions | |
| eZOrderStatusHistory ($row) | |
| fetchOrderStatus () | |
| fetchOrderStatusName () | |
| modifier () | |
Static Public Member Functions | |
| static | create ($orderID, $statusID, $userID=false, $timestamp=false) |
| static | definition () |
| fetch ($id, $asObject=true) | |
| static | fetchCount ($orderID, $asObject=true) |
| static | fetchListByOrder ($orderID, $asObject=true) |
Public Attributes | |
| $Modifier | |
This is used for caching the current modifier, it will either contain null (uncached) or a content object (cached). | |
Handles a list of status changes to an order item.
This uses the database table ezorder_status_history to store changes in status for an order item. Each entry consists of the new status, the time it was done and the person who did the change.
The order_id refers to the external ID of an order (order_nr) and not the internal auto increment value.
To fetch a given history element use fetch() with the history ID. If you intend to display the history elements for an order item use the fetchListByOrder() function which returns the history sorted by date (newest first). If you are interested in the number of history elements for an order use the fetchCount() function.
If you intend to create a new history element use the create() function.
Definition at line 57 of file ezorderstatushistory.php.
| static eZOrderStatusHistory::create | ( | $ | orderID, |
| $ | statusID, | ||
| $ | userID = false, |
||
| $ | timestamp = false |
||
| ) | [static] |
Definition at line 206 of file ezorderstatushistory.php.
Referenced by eZOrder\createStatusHistory(), and eZOrder\modifyStatus().
| static eZOrderStatusHistory::definition | ( | ) | [static] |
Reimplemented from eZPersistentObject.
Definition at line 75 of file ezorderstatushistory.php.
Referenced by fetch().
| eZOrderStatusHistory::eZOrderStatusHistory | ( | $ | row | ) |
Initialises the persistent object with $row. If status_name is present in $row it will cache it in the $StatusName variable.
Definition at line 63 of file ezorderstatushistory.php.
Referenced by create().
| eZOrderStatusHistory::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 161 of file ezorderstatushistory.php.
Referenced by modifier().
| static eZOrderStatusHistory::fetchCount | ( | $ | orderID, |
| $ | asObject = true |
||
| ) | [static] |
| $asObject | If true return them as objects. |
Definition at line 193 of file ezorderstatushistory.php.
| static eZOrderStatusHistory::fetchListByOrder | ( | $ | orderID, |
| $ | asObject = true |
||
| ) | [static] |
| $asObject | If true return them as objects. |
Definition at line 174 of file ezorderstatushistory.php.
| eZOrderStatusHistory::fetchOrderStatus | ( | ) |
Definition at line 133 of file ezorderstatushistory.php.
Referenced by fetchOrderStatusName().
| eZOrderStatusHistory::fetchOrderStatusName | ( | ) |
Definition at line 147 of file ezorderstatushistory.php.
| eZOrderStatusHistory::modifier | ( | ) |
modified_id is used to find the user, this will contain the content object ID of the user. Definition at line 120 of file ezorderstatushistory.php.
| eZOrderStatusHistory::$Modifier |
This is used for caching the current modifier, it will either contain null (uncached) or a content object (cached).
Definition at line 228 of file ezorderstatushistory.php.