Sunnysideup\EcommerceQuickCoupons\Model\QuickCouponOption
- Author: nicolaas [at] sunnysideup.co.nz
Synopsis
class QuickCouponOption
extends DiscountCouponOption
{
- // members
- private static string $table_name = 'QuickCouponOption';
- private static array $defaults = ;
- private static array $has_one = ;
- private static array $searchable_fields = ;
- private static integer $default_valid_length_in_days = 7;
- private static string $manager_email = '';
- // methods
- public bool canCreate()
- public bool canView()
- public bool canEdit()
- public bool canDelete()
- public void getCMSFields()
- public void requireDefaultRecords()
- protected void onBeforeWrite()
- private string getDefaultEmail()
Hierarchy
Extends
- Sunnysideup\EcommerceDiscountCoupon\Model\DiscountCouponOption
Members
private
-
$default_valid_length_in_days
default number of days that a coupon will be valid for used to set value of EndDate in getCMSFields set to -1 to disable. - $defaults
—
array
standard SS variable. -
$has_one
standard SS variable. -
$manager_email
@var string -
$searchable_fields
standard SS variable. - $table_name
—
string
standard SS variable.
Methods
private
- getDefaultEmail() — Returns and email address based on the current domain of this website.
protected
- onBeforeWrite() — standard SS method.
public
- canCreate() — standard SS method.
- canDelete() — standard SS method.
- canEdit() — standard SS method.
- canView() — standard SS method.
- getCMSFields() — standard SS method.
- requireDefaultRecords() — standard SS method.