Sunnysideup\Ecommerce\Model\Process\OrderStatusLog
Synopsis
class OrderStatusLog
extends DataObject
implements
EditableEcommerceObject
{
- // members
- private static array $available_log_classes_array = ;
- private static string $order_status_log_class_used_for_submitting_order = OrderStatusLogSubmitted::class;
- private static string $table_name = 'OrderStatusLog';
- private static array $db = ;
- private static array $has_one = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $defaults = ;
- private static array $searchable_fields = ;
- private static string $singular_name = 'Order Log Entry';
- private static string $plural_name = 'Order Log Entries';
- private static string $description = 'A record of anything that happened with an order.';
- private static array $default_sort = ;
- private static array $indexes = ;
- // methods
- 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
Extends
- SilverStripe\ORM\DataObject
Uses
Implements
Members
private
- $available_log_classes_array — array
- $casting
—
array
standard SS variable. - $db
- $default_sort
—
array
standard SS variable. - $defaults
—
array
standard SS variable. - $description
—
string
Standard SS variable. - $has_one
—
array
standard SS variable. - $indexes
- $order_status_log_class_used_for_submitting_order — string
- $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
—
string
standard SS variable.
protected
- $orderCached — Sunnysideup\Ecommerce\Model\Order
- $orderCachedStatusID — int
Methods
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}.