CrudkitServiceProvider
extends ServiceProvider
in package
This class is used to create your application.
Populate the following methods to build your application:
defineTables()
defineRelations()
definePages()
defineUsers()
Table of Contents
- $authHelper : AuthHelper
- $pages : array<string|int, PageDescriptor>
- $pageStore : PageStore
- $tables : array<string|int, TableDescriptor>
- $users : array<string|int, User>
- defineMenuLinks() : mixed
- Add additional items to the menu and set icons for categories
- definePages() : array<string|int, PageDescriptor>
- Populate this methods to define the pages (views) according to the already definded tables.
- defineRelations() : mixed
- Populate this methods to define table relations (mostly many to one).
- defineTables() : array<string|int, TableDescriptor>
- Populate this methods to define the tables plus columns used by your application.
- defineUsers() : AuthHelper
- Populate this methods to define the Logins for this application.
Properties
$authHelper
private
AuthHelper
$authHelper
= null
$pages
private
array<string|int, PageDescriptor>
$pages
= []
$pageStore
private
PageStore
$pageStore
= null
$tables
private
array<string|int, TableDescriptor>
$tables
= []
$users
private
array<string|int, User>
$users
= []
Methods
defineMenuLinks()
Add additional items to the menu and set icons for categories
private
defineMenuLinks() : mixed
Use $this->pageStore->addMenuLink(...);
Tags
Return values
mixed —definePages()
Populate this methods to define the pages (views) according to the already definded tables.
private
definePages() : array<string|int, PageDescriptor>
Tags
Return values
array<string|int, PageDescriptor> —defineRelations()
Populate this methods to define table relations (mostly many to one).
private
defineRelations() : mixed
Use "$this->tables" which you have defined in method defineTables().
Tags
Return values
mixed —defineTables()
Populate this methods to define the tables plus columns used by your application.
private
defineTables() : array<string|int, TableDescriptor>
Return values
array<string|int, TableDescriptor> —defineUsers()
Populate this methods to define the Logins for this application.
private
defineUsers() : AuthHelper
Optional: define RestrictionSet and/or Startpage for each User. Default login (administrator) is definded in crudkit config.