Sunnysideup\Ecommerce\Model\Process\OrderStatusLogs\OrderStatusLogSubmitted
OrderStatusLogSubmitted is an important class that is created when an order is submitted.
It is created by the order and it signifies to the OrderStep to continue to the next step.
Synopsis
class OrderStatusLogSubmitted
extends OrderStatusLog
{
- // members
- private static string $table_name = 'OrderStatusLogSubmitted';
- private static array $db = ;
- private static array $defaults = ;
- private static array $casting = ;
- private static string $singular_name = 'Submitted Order';
- private static string $plural_name = 'Submitted Orders';
- private static string $description = 'The record that the order has been submitted by the customer. This is important in e-commerce, because from here, nothing can change to the order.';
- // methods
- public void i18n_singular_name()
- public void i18n_plural_name()
- public bool canDelete()
- public bool canEdit()
- public bool canCreate()
- public string HTMLRepresentation()
- public void getHTMLRepresentation()
- protected void onBeforeWrite()
- // Inherited methods from OrderStatusLog
- public string InternalUseOnlyNice()
- public void getInternalUseOnlyNice()
- public bool canCreate()
- public bool canView()
- public bool canEdit()
- public bool canDelete()
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void populateDefaults()
- public FieldList getCMSFields()
- public string CMSEditLink()
- public string Type()
- public void getType()
- public FieldList scaffoldSearchFields()
- public string CustomerNote()
- public void getCustomerNote()
- public string debug()
- protected void onBeforeWrite()
- protected bool limitedToOneClassName()
- // Inherited methods from OrderCached
- public void setOrderCached()
- public Order|null; getOrderCached()
Hierarchy
Members
private
- $casting
- $db
- $defaults
- $description
—
string
Standard SS variable. - $plural_name
- $singular_name
- $table_name
protected
- $orderCached — Sunnysideup\Ecommerce\Model\Order
- $orderCachedStatusID — int
Methods
protected
- onBeforeWrite() — adding a sequential order number.
public
- HTMLRepresentation() — can only be created when the order is submitted.
- canCreate() — Standard SS method.
- canDelete() — Standard SS method.
- canEdit() — Standard SS method.
- getHTMLRepresentation()
- i18n_plural_name()
- i18n_singular_name()
Inherited from Sunnysideup\Ecommerce\Model\Process\OrderStatusLog
protected
- limitedToOneClassName() — when being created, can the user choose the type of log?
- onBeforeWrite() — standard SS method.
public
- CMSEditLink() — link to edit the record.
- CustomerNote()
- InternalUseOnlyNice() — casted method.
- Type()
- canCreate() — Standard SS method.
- canDelete() — Standard SS method logs can never be deleted...
- canEdit() — Standard SS method.
- canView() — Standard SS method.
- debug() — Debug helper method.
- getCMSFields()
- getCustomerNote()
- getInternalUseOnlyNice()
- getType()
- i18n_plural_name()
- i18n_singular_name()
- populateDefaults() — standard SS method.
- scaffoldSearchFields() — Determine which properties on the DataObject are searchable, and map them to their default {@link FormField} representations. Used for scaffolding a searchform for {@link ModelAdmin}.