|
Bristol SU Support Package
|


Public Member Functions | |
| create (array $attributes) | |
| all () | |
| getById (int $id) | |
| update (int $id, array $attributes) | |
| delete (int $id) | |
Handles saving and retrieving logic group information
Definition at line 13 of file LogicRepository.php.
| BristolSU\Support\Logic\LogicRepository::all | ( | ) |
Get all logic groups
Implements BristolSU\Support\Logic\Contracts\LogicRepository.
Definition at line 38 of file LogicRepository.php.
| BristolSU\Support\Logic\LogicRepository::create | ( | array | $attributes | ) |
Create a logic group in the database
The attributes should be a name and a description [ 'name' => 'Name of the logic group', 'description' => 'Description of the logic group' ]
| array | $attributes | Attributes for the logic group |
Implements BristolSU\Support\Logic\Contracts\LogicRepository.
Definition at line 28 of file LogicRepository.php.
| BristolSU\Support\Logic\LogicRepository::delete | ( | int | $id | ) |
Delete a logic group
| int | $id |
| ModelNotFoundException | |
Implements BristolSU\Support\Logic\Contracts\LogicRepository.
Definition at line 78 of file LogicRepository.php.
References BristolSU\Support\Logic\LogicRepository\getById().
| BristolSU\Support\Logic\LogicRepository::getById | ( | int | $id | ) |
Get a logic group by ID
| int | $id |
| ModelNotFoundException |
Implements BristolSU\Support\Logic\Contracts\LogicRepository.
Definition at line 50 of file LogicRepository.php.
Referenced by BristolSU\Support\Logic\LogicRepository\delete(), and BristolSU\Support\Logic\LogicRepository\update().
| BristolSU\Support\Logic\LogicRepository::update | ( | int | $id, |
| array | $attributes | ||
| ) |
Update a logic group
| int | $id | ID of the logic group |
| array | $attributes |
| ModelNotFoundException |
Implements BristolSU\Support\Logic\Contracts\LogicRepository.
Definition at line 63 of file LogicRepository.php.
References BristolSU\Support\Logic\LogicRepository\getById().
1.8.13