SilverCart\Model\Pages\MyAccountHolder
holder for customers private area.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class MyAccountHolder
extends Page
{
- // constants
- 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 = 'SilvercartMyAccountHolder';
- private static string $icon = "silvercart/silvercart:client/img/page_icons/my_account_holder-file.gif";
- private static array $info_messages = ;
- // methods
- 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
Extends
- Page
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
- $icon
—
string
Icon to display in CMS site tree - $info_messages
—
array
Optional list of info messages to show above the login form. - $table_name
—
string
DB table name
Methods
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.