Bristol SU Support Package
|
Public Member Functions | |
__construct (array $attributes=[]) | |
moduleInstances () | |
scopeEnabled (Builder $query) | |
forLogic () | |
adminLogic () | |
scopeActive (Builder $query) | |
isCompletable () | |
activityInstances () | |
user () | |
![]() | |
initializeHasRevisions () | |
getSystemUserId () | |
Protected Attributes | |
$fillable | |
$casts | |
![]() | |
$historyLimit | |
$revisionCleanup | |
Activity Model
Definition at line 20 of file Activity.php.
BristolSU\Support\Activity\Activity::__construct | ( | array | $attributes = [] | ) |
Initialise an Activity model.
Set up creating event to set the slug automatically Save the User ID of the current user on creation
array | $attributes |
Definition at line 61 of file Activity.php.
BristolSU\Support\Activity\Activity::activityInstances | ( | ) |
BristolSU\Support\Activity\Activity::adminLogic | ( | ) |
BristolSU\Support\Activity\Activity::forLogic | ( | ) |
BristolSU\Support\Activity\Activity::isCompletable | ( | ) |
Is the activity completable?
Can the activity be completed? An open activity cannot, but a completable activity can be
Definition at line 139 of file Activity.php.
BristolSU\Support\Activity\Activity::moduleInstances | ( | ) |
Module Instance relationship
Definition at line 79 of file Activity.php.
Referenced by BristolSU\Support\ModuleInstance\ModuleInstanceRepository\allEnabledThroughActivity(), and BristolSU\Support\ModuleInstance\ModuleInstanceRepository\allThroughActivity().
BristolSU\Support\Activity\Activity::scopeActive | ( | Builder | $query | ) |
Active scope
Only returns activities which are either not time sensitive, or within the correct time frame
Builder | $query |
Definition at line 123 of file Activity.php.
BristolSU\Support\Activity\Activity::scopeEnabled | ( | Builder | $query | ) |
Scope only enabled activities
Builder | $query |
Definition at line 90 of file Activity.php.
BristolSU\Support\Activity\Activity::user | ( | ) |
Get the user who created the activity
Definition at line 159 of file Activity.php.
|
protected |
Definition at line 47 of file Activity.php.
|
protected |
Definition at line 28 of file Activity.php.