\EcommerceCorporateGroupGroupDecorator
adds functionality for groups (organisations) The key here is that we have one approved group and all groups underneath this one (child groups) are automatically approved.
- Author: nicolaas
Synopsis
class EcommerceCorporateGroupGroupDecorator
extends DataObjectDecorator
{
- // members
- protected static String $code = "approvedshopcustomers";
- protected static String $name = "approved shop customers";
- protected static String $permission_code = "APPROVEDSHOPCUSTOMER";
- protected static array $address_types = ;
- protected static array $address_fields = ;
- // methods
- public static void set_code()
- public static void get_code()
- public static void set_name()
- public static void get_name()
- public static void set_permission_code()
- public static void get_permission_code()
- public static DataObject get_approved_customer_group()
- public void extraStatics()
- public TextField CombinedCorporateGroupName()
- public void getCombinedCorporateGroupName()
- public Array CombinedCorporateGroupNameAsArray()
- public void updateCMSFields()
- public Array CorporateAddressFieldsArray()
- public Boolean isCorporateAccount()
- public Int NumberOfParentGroups()
- public void onAfterWrite()
Hierarchy
Extends
- DataObjectDecorator
Tasks
Line | Task |
---|---|
13+ | : move fields to proper system with field labels, etc.... |
Members
protected
Methods
public
- CombinedCorporateGroupName() — Combines all group names up to the corporate group holder
- CombinedCorporateGroupNameAsArray() — Combines all group names up to the corporate group holder
- CorporateAddressFieldsArray() — returns an array of fields for the corporate account
- NumberOfParentGroups() — returns the level in the hierarchy 0 = no parents 12 = twelve parent groups Max of 99... just in case.
- extraStatics()
- getCombinedCorporateGroupName()
- get_approved_customer_group()
- get_code()
- get_name()
- get_permission_code()
- isCorporateAccount() — Is the current group part of the corporate account?
- onAfterWrite() — applies the details of the parent company to the child company UNLESS the details for the child company are already set.
- set_code()
- set_name()
- set_permission_code()
- updateCMSFields() — Standard SS method