Sunnysideup\Moodle\Model\Extensions\GroupExtension
Synopsis
class GroupExtension
extends DataExtension
{
- // constants
- const MOODLE_PARENT_GROUP_CODE = 'MOODLES';
- const MOODLE_PARENT_GROUP_NAME = 'Moodle Groups';
- const MOODLE_PARENT_GROUP_EXPLANATION = 'This group holds all the Moodle Courses';
- const MOODLE_NAME_POST_FIX = '- COURSE';
- const MOODLE_GROUP_EXPLANATION = 'This group shows the members that are part of a Moodle Course';
- // methods
- public void updateCMSFields()
- public void IsRegisteredOnCourse()
- public void onBeforeWrite()
- public static void create_group_from_moodle_data()
- public null|bool canDelete()
- public null|bool canEdit()
- public void findOrCreateMoodleHolderGroup()
- public void StartDateNice()
- public void EndDateNice()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Constants
Name | Value |
---|---|
MOODLE_PARENT_GROUP_CODE | 'MOODLES' |
MOODLE_PARENT_GROUP_NAME | 'Moodle Groups' |
MOODLE_PARENT_GROUP_EXPLANATION | 'This group holds all the Moodle Courses' |
MOODLE_NAME_POST_FIX | '- COURSE' |
MOODLE_GROUP_EXPLANATION | 'This group shows the members that are part of a Moodle Course' |
Members
private
- $db
- $indexes
Methods
public
- EndDateNice()
- IsRegisteredOnCourse()
- StartDateNice()
- canDelete() — Influence the owner's canDelete() permission check value to be disallowed (false), allowed (true) if no other processed results are to disallow, or open (null) to not affect the outcome.
- canEdit() — Influence the owner's canDelete() permission check value to be disallowed (false), allowed (true) if no other processed results are to disallow, or open (null) to not affect the outcome.
- create_group_from_moodle_data()
- findOrCreateMoodleHolderGroup()
- onBeforeWrite()
- updateCMSFields()