\BusinessPage
BusinessPage.php: Sub-class of Page Contains info about a business
Synopsis
class BusinessPage
extends Page
{
- // members
- public static string $icon = "business_directory/images/treeicons/BusinessPage";
- public static array $db = ;
- public static array $has_one = ;
- public static array $has_many = ;
- public static array $many_many = ;
- public static array $many_many_extraFields = ;
- public static boolean $can_be_root = false;
- public static array $need_permission = ;
- public static array $defaults = ;
- public static array $allowed_children = ;
- public static string $default_child = "ProductPage";
- protected static string $member_group_code = "listing-member";
- public static string $member_group_title = "Business Members";
- public static string $access_code = "ACCESS_BUSINESS";
- public static array $casting = ;
- protected static array $can_be_child_of = ;
- // methods
- public static void get_member_group_code()
- public static void set_member_group_code()
- public static void get_member_group_title()
- public static void set_member_group_title()
- public static void get_can_be_child_off()
- public static void set_can_be_child_off()
- public static void add_can_be_child_off()
- public void canEdit()
- public void EditLink()
- public void CanNotEdit()
- public void getCMSFields()
- public void getFrontEndFields()
- protected Object getAncestorObject()
- public String getHiddenEmail()
- public String getDescriptiveEmail()
- public void getProvideComments()
- public void onBeforeWrite()
- public void requireDefaultRecords()
Hierarchy
Extends
- Page
Members
protected
- $can_be_child_of
-
$member_group_code
CODE of the group that business page admins are put in.
public
-
$access_code
Permission code -
$allowed_children
Standard SS static -
$can_be_root
Standard SS static -
$casting
Standard SS static -
$db
Standard SS static -
$default_child
Standard SS static -
$defaults
Standard SS static -
$has_many
Standard SS static -
$has_one
Standard SS static -
$icon
Standard SS static -
$many_many
Standard SS static -
$many_many_extraFields
Standard SS static -
$member_group_title
NAME of the group that business page admins are put in. -
$need_permission
permissions and actions List of permission codes a user can have to allow a user to create a page of this type.
Methods
protected
- getAncestorObject() — Look up a particular parent class
public
- CanNotEdit()
- EditLink()
- add_can_be_child_off()
- canEdit() — Standard SS method
- getCMSFields() — Standard SS method
- getDescriptiveEmail() — returns a visual representation of an email that hides the actual email.
- getFrontEndFields()
- getHiddenEmail() — returns a link to an email that hides the actual email.
- getProvideComments()
- get_can_be_child_off()
- get_member_group_code()
- get_member_group_title()
- onBeforeWrite() — standard SS method, sorts out related members (adds new ones, deletes old ones) and sends an email to let them know the listing was updated.
- requireDefaultRecords() — Add default records to database
- set_can_be_child_off()
- set_member_group_code()
- set_member_group_title()