Schema, Model and Relation manager.
composer install cradlephp/cradle-system
Schemas are similar to database tables, but with more definition. With schemas you can define field types, validation, output formats and indexing capabilities like searchable, filterable and sortable. Schemas are designed to be very flexible and explicit.
The following routes are available in the admin.
GET /admin/system/schema/search
- Schema search pageGET /admin/system/schema/create
- Schema create formGET /admin/system/schema/update/:name
- Schema update formPOST /admin/system/schema/search
- Bulk action processorPOST /admin/system/schema/create
- Creates a schemaPOST /admin/system/schema/update/:name
- Updates a schemaGET /admin/system/schema/remove/:name
- Removes a SchemaGET /admin/system/schema/restore/:name
- Restores a Schema
system-schema-create
system-schema-detail
system-schema-remove
system-schema-restore
system-schema-update
A relation describes the link between 2 objects. Relations can be described by the following. Each relation type will have different sets of UI in the admin.
- 1:0 - one-to-one optionally
- 1:1 - one-to-one required
- 1:N - one-to-many
- N:N - many-to-many
The following routes are available in the admin.
GET /admin/system/object/:schema1/:id/search/:schema2
- Relational Search PageGET /admin/system/object/:schema1/:id/create/:schema2
- Relational Create FormGET /admin/system/object/:schema1/:id/link/:schema2
- Relational Link FormPOST /admin/system/object/:schema1/:id/search/:schema2
- Bulk action processorPOST /admin/system/object/:schema1/:id/create/:schema2
- Creates an object and linksPOST /admin/system/object/:schema1/:id/link/:schema2
- Links an objectGET /admin/system/object/:schema1/:id1/link/:schema2/:id2
- Links an objectGET /admin/system/object/:schema1/:id1/unlink/:schema2/:id2
- Unlinks an objectGET /admin/system/object/:schema1/:id/export/:schema2/:type
- Exports object relationsGET /admin/system/object/:schema/:id/import/:schema2
- Imports object relations
The following routes are available in the front end.
GET /system/object/:schema1/:id/search/:schema2
- Relational Search PageGET /system/object/:schema1/:id/create/:schema2
- Relational Create FormGET /system/object/:schema1/:id/link/:schema2
- Relational Link FormPOST /system/object/:schema1/:id/search/:schema2
- Bulk action processorPOST /system/object/:schema1/:id/create/:schema2
- Creates an object and linksPOST /system/object/:schema1/:id/link/:schema2
- Links an objectGET /system/object/:schema1/:id1/link/:schema2/:id2
- Links an objectGET /system/object/:schema1/:id1/unlink/:schema2/:id2
- Unlinks an objectGET /system/object/:schema1/:id/export/:schema2/:type
- Exports object relationsGET /system/object/:schema/:id/import/:schema2
- Imports object relations
system-relation-link
system-relation-unlink
system-relation-unlinkall
Objects are similar to database table rows but its functionality is mapped by the schema.
The following routes are available in the admin.
GET /admin/system/object/:schema/search
- Object search pageGET /admin/system/object/:schema/create
- Object create formGET /admin/system/object/:schema/update/:id
- Object update formPOST /admin/system/object/:schema/create
- Creates an objectPOST /admin/system/object/:schema/update/:id
- Updates an objectGET /admin/system/object/:schema/remove/:id
- Removes an objectGET /admin/system/object/:schema/restore/:id
- Restores an objectPOST /admin/system/object/:schema/import
- Imports objects via JSONGET /admin/system/object/:schema/export/:type
- Exports object to a given file type
The following routes are available in the front end.
GET /system/object/:schema/search
- Object search pageGET /system/object/:schema/create
- Object create formGET /system/object/:schema/update/:id
- Object update formPOST /system/object/:schema/create
- Creates an objectPOST /system/object/:schema/update/:id
- Updates an objectGET /system/object/:schema/remove/:id
- Removes an objectGET /system/object/:schema/restore/:id
- Restores an objectPOST /system/object/:schema/import
- Imports objects via JSONGET /system/object/:schema/export/:type
- Exports object to a given file type
system-object-create
system-object-detail
system-object-remove
system-object-restore
system-object-update