Bristol SU Support Package
|
Public Member Functions | |
getRunNumberAttribute () | |
getParticipantAttribute () | |
participant () | |
moduleInstances () | |
activity () | |
getAuthIdentifierName () | |
getAuthIdentifier () | |
getAuthPassword () | |
getRememberToken () | |
setRememberToken ($value) | |
getRememberTokenName () | |
Protected Attributes | |
$appends = ['run_number', 'participant'] | |
$fillable | |
An eloquent model representing an Activity Instance
Definition at line 20 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::activity | ( | ) |
Activity relationship
Definition at line 120 of file ActivityInstance.php.
Referenced by BristolSU\Support\ModuleInstance\Evaluator\ActivityInstanceEvaluator\evaluateParticipant(), BristolSU\Support\ModuleInstance\Evaluator\ModuleInstanceEvaluator\evaluateParticipant(), BristolSU\Support\ModuleInstance\Evaluator\ActivityInstanceEvaluator\evaluateResource(), BristolSU\Support\ModuleInstance\Evaluator\ModuleInstanceEvaluator\evaluateResource(), and BristolSU\Support\ModuleInstance\Evaluator\ModuleInstanceEvaluator\isComplete().
BristolSU\Support\ActivityInstance\ActivityInstance::getAuthIdentifier | ( | ) |
Get the unique identifier for the activity instance.
Definition at line 140 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getAuthIdentifierName | ( | ) |
Get the name of the unique identifier for the activity instance.
Definition at line 130 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getAuthPassword | ( | ) |
Get the password for the activity instance.
Definition at line 150 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getParticipantAttribute | ( | ) |
Get the model from the current resource as a Laravel attribute.
If the resource_type is user, returns the user with the id 'resource_id' If the resource_type is group, returns the group with the id 'resource_id' If the resource_type is role, returns the role with the id 'resource_id'
Definition at line 79 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getRememberToken | ( | ) |
Get the token value for the "remember me" session.
Definition at line 159 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getRememberTokenName | ( | ) |
Get the column name for the "remember me" token.
Definition at line 178 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::getRunNumberAttribute | ( | ) |
Get the run number of the activity instance as a Laravel attribute.
If there are multiple run throughs of an activity, this ID will number them from oldest to newest.
Definition at line 50 of file ActivityInstance.php.
BristolSU\Support\ActivityInstance\ActivityInstance::moduleInstances | ( | ) |
BristolSU\Support\ActivityInstance\ActivityInstance::participant | ( | ) |
Get the model from the current resource.
Function for retrieving the user, group or role associated with the activity instance.
Definition at line 100 of file ActivityInstance.php.
Referenced by BristolSU\Support\ModuleInstance\Evaluator\ModuleInstanceEvaluator\evaluateResource().
BristolSU\Support\ActivityInstance\ActivityInstance::setRememberToken | ( | $value | ) |
Set the token value for the "remember me" session.
string | $value |
Definition at line 169 of file ActivityInstance.php.
|
protected |
Definition at line 32 of file ActivityInstance.php.
|
protected |
Definition at line 39 of file ActivityInstance.php.