Sunnysideup\Ecommerce\Model\Process\OrderProcessQueue
This class provides a bunch of Meta Objects that do not interact with the object at hand, but rather with the datalist as a whole.
Synopsis
class OrderProcessQueue
extends DataObject
{
- // members
- private static string $table_name = 'OrderProcessQueue';
- private static array $db = ;
- private static array $has_one = ;
- private static array $indexes = ;
- private static array $casting = ;
- private static array $default_sort = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static string $singular_name = 'Order To Be Processed';
- private static string $plural_name = 'Orders to be Processed';
- // methods
- public bool canCreate()
- public bool canView()
- public bool canEdit()
- public bool canDelete()
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void AddOrderToQueue()
- public bool|string process()
- public void getQueueObject()
- public void removeOrderFromQueue()
- public DataList OrdersToBeProcessed()
- public DataList AllOrdersInQueue()
- public DataList OrdersInQueueThatAreNotReady()
- public bool isReadyToGo()
- public DBField ToBeProcessedAt()
- public DBField getToBeProcessedAt()
- public DBField HasBeenInQueueForSince()
- public DBField getHasBeenInQueueForSince()
- public FieldList getCMSFields()
- public void requireDefaultRecords()
- protected void sortPhrase()
- protected string sortPhraseForOrderIDs()
- // Inherited methods from OrderCached
- public void setOrderCached()
- public Order|null; getOrderCached()
Hierarchy
Members
private
- $casting
- $db
- $default_sort
- $has_one
- $indexes
- $plural_name
—
string
standard SS variable. - $searchable_fields
—
array
standard SS variable. - $singular_name
—
string
standard SS variable. - $summary_fields
—
array
standard SS variable. - $table_name
protected
- $orderCached — Sunnysideup\Ecommerce\Model\Order
- $orderCachedStatusID — int
Methods
protected
- sortPhrase()
- sortPhraseForOrderIDs() — sort phrase for orders, based in order IDs...
public
- AddOrderToQueue() — META METHOD: Add an order to the job list if it does not exist already.
- AllOrdersInQueue() — META METHOD: all orders with a queue object.
- HasBeenInQueueForSince() — casted variable.
- OrdersInQueueThatAreNotReady() — META METHOD: returns a list of orders NOT YET to be processed.
- OrdersToBeProcessed() — META METHOD: returns a list of orders to be processed.
- ToBeProcessedAt() — casted variable.
- canCreate() — Standard SS method.
- canDelete() — Standard SS method Queues can be deleted if needed.
- canEdit() — Standard SS method.
- canView() — Standard SS method.
- getCMSFields() — CMS Fields.
- getHasBeenInQueueForSince() — casted variable.
- getQueueObject() — META METHOD: returns the queue object if it exists.
- getToBeProcessedAt() — casted variable.
- i18n_plural_name()
- i18n_singular_name()
- isReadyToGo() — non-database method of working out if an Order is ready to go.
- process() — META METHOD processes the order ...
- removeOrderFromQueue() — META METHOD: Once you are done, you can remove the item like this ...
- requireDefaultRecords()