\ScoutSection
ScoutSection Model
Class to define model for individual Groups in a Scout District
- Author: Matt Cockayne <matt@zucchi.co.uk>
Synopsis
class ScoutSection
extends Page
{
- // members
- private static array $allowed_children = ;
- private static string $default_child = "Page";
- private static string $default_parent = 'Page';
- private static boolean $can_be_root = false;
- private static $icon = NULL;
- private static string $description = 'A Scout Section';
- private static array $db = ;
- private static array $has_one = ;
- protected boolean $isInsert = false;
- // methods
- public void getCMSFields()
- public void onBeforeWrite()
- public void onAfterWrite()
- public bool canAddChildren()
- public bool canCreate()
- public bool canEdit()
- public bool canDelete()
- public bool canPublish()
- public bool|null canDeleteFromLive()
- protected bool checkCanManage()
- public void requireDefaultRecords()
Hierarchy
Extends
- Page
Members
private
- $allowed_children
- $can_be_root
- $db
- $default_child
- $default_parent
- $description
- $has_one
- $icon
protected
- $isInsert
Methods
protected
- checkCanManage() — Function to check if a member has the ability to perform the appropriate can* action as well as manage groups