\RepeatOrdersPage
RepeatOrdersPage page shows order history and a form to allow the member to edit his/her details.
- Author: nicolaas [at] sunnysideup.co.nz
Synopsis
class RepeatOrdersPage
extends AccountPage
{
- // members
- private static array $db = ;
- private static array $week_days = ;
- // methods
- public static void get_repeat_order_link()
- public void canCreate()
- public void getCMSFields()
- public void requireDefaultRecords()
- public void onBeforeWrite()
- // Inherited methods from RepeatOrdersTrait
- public ArrayList RepeatOrders()
Hierarchy
Members
private
-
$db
Standard SS method -
$week_days
Standard SS method
Methods
public
- canCreate() — standard SS Method
- getCMSFields() — standard SS Method
- get_repeat_order_link() — Return a link to view the order on the account page.
- onBeforeWrite() — Standard SS method Sets the days available for repeating orders.
- requireDefaultRecords() — Automatically create an AccountPage if one is not found on the site at the time the database is built (dev/build).
Inherited from RepeatOrdersTrait
public
- RepeatOrders() — Returns all {@link Order} records for this member that are completed.