ezorderstatushistory
Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.
Summary
Handles a list of status changes to an order item.
Description
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 \c order_id refers to the external ID of an order (\c 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.
Persistent
Yes. Table ezorder_status_history.
Attributes
| Attribute | Type | Static* |
|---|---|---|
| id | integer | Yes. |
| order_id | integer | Yes. |
| status_id | integer | Yes. |
| modifier_id | integer | Yes. |
| modified | integer | Yes. |
| modifier | - | No. |
| status_name | - | No. |
| status | - | No. |
* Yes: a field of the table (a stored value); No: a function attribute, computed when it is asked for.
Source
kernel/classes/ezorderstatushistory.php, eZOrderStatusHistory::definition()
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this object.
Contributors
- Graham Brookins Updated
Comments
Add a comment