|
Bristol SU Support Package
|


Public Member Functions | |
| __construct (array $attributes=[]) | |
| alias () | |
| id () | |
| activity () | |
| moduleInstanceSettings () | |
| moduleInstancePermissions () | |
| completionConditionInstance () | |
| activeLogic () | |
| visibleLogic () | |
| mandatoryLogic () | |
| actionInstances () | |
| moduleInstanceServices () | |
| setting ($key, $default=null) | |
| scopeEnabled (Builder $query) | |
| user () | |
| grouping () | |
Protected Attributes | |
| $fillable | |
| $casts | |
Represents a module instance in the database
Definition at line 25 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::__construct | ( | array | $attributes = [] | ) |
When the model is saved, the slug will be dynamically set if not given
| array | $attributes | Attributes for the model |
Definition at line 64 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::actionInstances | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::activeLogic | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::activity | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::alias | ( | ) |
Get the alias of the module
Implements BristolSU\Support\ModuleInstance\Contracts\ModuleInstance.
Definition at line 82 of file ModuleInstance.php.
Referenced by BristolSU\Support\Http\Controllers\ModuleInstanceRedirectController\index().
| BristolSU\Support\ModuleInstance\ModuleInstance::completionConditionInstance | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::grouping | ( | ) |
Definition at line 228 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::id | ( | ) |
Get the ID of the module
Implements BristolSU\Support\ModuleInstance\Contracts\ModuleInstance.
Definition at line 92 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::mandatoryLogic | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::moduleInstancePermissions | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::moduleInstanceServices | ( | ) |
| BristolSU\Support\ModuleInstance\ModuleInstance::moduleInstanceSettings | ( | ) |
Settings relationship
Definition at line 112 of file ModuleInstance.php.
Referenced by BristolSU\Support\ModuleInstance\ModuleInstance\setting().
| BristolSU\Support\ModuleInstance\ModuleInstance::scopeEnabled | ( | Builder | $query | ) |
Return only enabled module instances
| Builder | $query |
Definition at line 209 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::setting | ( | $key, | |
$default = null |
|||
| ) |
Get a setting from the module instance
| string | $key | Key of the setting |
| mixed | null | $default | Default value if the setting is not found |
Definition at line 193 of file ModuleInstance.php.
References BristolSU\Support\ModuleInstance\ModuleInstance\moduleInstanceSettings().
| BristolSU\Support\ModuleInstance\ModuleInstance::user | ( | ) |
Get the user who created the module instance
Implements BristolSU\Support\ModuleInstance\Contracts\ModuleInstance.
Definition at line 220 of file ModuleInstance.php.
| BristolSU\Support\ModuleInstance\ModuleInstance::visibleLogic | ( | ) |
|
protected |
Definition at line 55 of file ModuleInstance.php.
|
protected |
Definition at line 34 of file ModuleInstance.php.
1.8.13