SilverCart\Model\Pages\OrderHolder
shows an overview of a customers orders.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class OrderHolder
extends MyAccountHolder
{
- // Inherited constants from MyAccountHolder
- const SESSION_KEY = 'SilverCart.MyAccountHolder';
- const INFO_MESSAGE_SESSION_KEY = 'SilverCart.MyAccountHolder.InfoMessages';
- const INFO_MESSAGE_TYPE_INFO = 'info';
- const INFO_MESSAGE_TYPE_SUCCESS = 'success';
- const INFO_MESSAGE_TYPE_WARNING = 'warning';
- const INFO_MESSAGE_TYPE_DANGER = 'danger';
- // members
- private static string $table_name = 'SilverCart_OrderHolder';
- private static array $db = ;
- private static bool $can_be_root = false;
- private static string $icon = "silvercart/silvercart:client/img/page_icons/my_account_holder-file.gif";
- // methods
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public FieldList getCMSFields()
- public bool hasSummary()
- public DBHTMLText getSummary()
- public string getSummaryTitle()
- public ArrayList getBreadcrumbItems()
- public string ReoderLink()
- public string ReoderFullLink()
- public string ReoderPositionLink()
- // Inherited methods from MyAccountHolder
- public string singular_name()
- public string plural_name()
- public static void add_info_message()
- public static array get_info_messages()
- public static void set_info_messages()
- public static void save_info_messages()
- public static void reset_info_messages()
- public ArrayList InfoMessages()
Hierarchy
Constants
Name | Value |
---|---|
SESSION_KEY | 'SilverCart.MyAccountHolder' |
INFO_MESSAGE_SESSION_KEY | 'SilverCart.MyAccountHolder.InfoMessages' |
INFO_MESSAGE_TYPE_INFO | 'info' |
INFO_MESSAGE_TYPE_SUCCESS | 'success' |
INFO_MESSAGE_TYPE_WARNING | 'warning' |
INFO_MESSAGE_TYPE_DANGER | 'danger' |
Members
private
- $can_be_root
—
SilverCart\Model\Pages\bool
Indicates whether this page type can be root - $db
—
array
DB attributes. - $icon
—
string
The icon to use for this page in the storeadmin sitetree. - $table_name
—
string
DB table name
Methods
public
- ReoderFullLink() — Returns the link to reoder an order full.
- ReoderLink() — Returns the link to reoder an order.
- ReoderPositionLink() — Returns the link to reoder an order position.
- fieldLabels() — Field labels for display in tables.
- getBreadcrumbItems() — Adds the add/edit address title to the bradcrumbs by context.
- getCMSFields() — Returns the CMS fields.
- getSummary() — Returns the summary of this page.
- getSummaryTitle() — Returns the summary of this page.
- hasSummary() — Returns whether this page has a summary.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.
Inherited from SilverCart\Model\Pages\MyAccountHolder
public
- InfoMessages() — Returns the info messages to render in template.
- add_info_message() — Adds the given message to the info messages.
- get_info_messages() — Returns the info messages.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- reset_info_messages() — Clears the info message data out of session.
- save_info_messages() — Saves the info messages in session.
- set_info_messages() — Sets the info messages.
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.