Bristol SU Support Package
|
Public Member Functions | |
setAlias (string $alias) | |
getAlias () | |
setName (string $name) | |
getName () | |
setCompletionConditions (array $completionConditions) | |
getCompletionConditions () | |
setDescription (string $description) | |
getDescription () | |
setPermissions (array $permissions) | |
getPermissions () | |
setSettings (array $settings) | |
getSettings () | |
setTriggers (array $triggers) | |
getTriggers () | |
setServices (array $services) | |
getServices () | |
setFor (string $for='user') | |
getFor () | |
Represents a registered module in the framework
Definition at line 12 of file Module.php.
BristolSU\Support\Module\Contracts\Module::getAlias | ( | ) |
Get the alias associated with the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getCompletionConditions | ( | ) |
Get the completion conditions for the module
Return [ 'name' => '', 'description' => '', 'options' => [], 'alias' => '' ]
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getDescription | ( | ) |
Get the description of the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getFor | ( | ) |
Get what resource the module is for. One of user, group or role.
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getName | ( | ) |
Get the name of the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getPermissions | ( | ) |
Get the permissions for the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getServices | ( | ) |
Get the services for the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getSettings | ( | ) |
Get the settings for the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::getTriggers | ( | ) |
Get the triggers for the module
Implemented in BristolSU\Support\Module\Module.
Referenced by BristolSU\Support\Module\Module\toArray().
BristolSU\Support\Module\Contracts\Module::setAlias | ( | string | $alias | ) |
Set the alias of the module
string | $alias | Alias of the module |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setCompletionConditions | ( | array | $completionConditions | ) |
Set the completion conditions for the module
Conditions should be set as [ 'name' => '', 'description' => '', 'options' => [], 'alias' => '' ]
array | $completionConditions |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setDescription | ( | string | $description | ) |
Set the description of the module
string | $description | Description of the module |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setFor | ( | string | $for = 'user' | ) |
Set what resource the module is for. One of user, group or role.
string | $for | One of user, group or role |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setName | ( | string | $name | ) |
Set the name of the module
string | $name | Name of the module |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setPermissions | ( | array | $permissions | ) |
Set the permissions for the module
Permission[] | $permissions Set the permissions for the module |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setServices | ( | array | $services | ) |
Set the services for the module
[ 'required' => ['typeform', 'facebook', ... ], 'optional' => [] ]
array | $services | Services for the module |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setSettings | ( | array | $settings | ) |
Set the settings for the module
array | $settings | Form schema settings |
Implemented in BristolSU\Support\Module\Module.
BristolSU\Support\Module\Contracts\Module::setTriggers | ( | array | $triggers | ) |
Set the triggers for the module
[ 'name' => 'Event Name', 'description' => 'Event Description', 'event' => 'EventClassName' ]
array | $triggers | Triggers for the module |
Implemented in BristolSU\Support\Module\Module.