MetaFox

ResourceRegistrar extends ResourceRegistrar
in package

Table of Contents

Properties

$allResources  : array<string|int, mixed>
$resourceDefaults  : mixed

Methods

addResourceBatchActive()  : Route
Add the list method for a resourceful route.
addResourceDelete()  : Route
Add the list method for a resourceful route.
addResourceDeleteAll()  : Route
Add the list method for a resourceful route.
addResourceFormStore()  : Route|null
Add the list method for a resourceful route.
addResourceFormUpdate()  : Route
Add the list method for a resourceful route.
addResourceOrder()  : Route
Add the list method for a resourceful route.
addResourceToggleActive()  : Route
Add the list method for a resourceful route.
addResourceToggleDefault()  : Route
Add the list method for a resourceful route.
register()  : mixed
reflectControllerClass()  : array<string|int, mixed>|null

Properties

$allResources

protected array<string|int, mixed> $allResources = ['index', 'create', 'edit', 'delete', 'order', 'toggleActive', 'toggleDefault', 'batchActive', 'deleteAll', 'store', 'show', 'update', 'destroy']

$resourceDefaults

protected mixed $resourceDefaults = ['index', 'create', 'store', 'show', 'edit', 'update', 'destroy']

Methods

addResourceBatchActive()

Add the list method for a resourceful route.

public addResourceBatchActive(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceDelete()

Add the list method for a resourceful route.

public addResourceDelete(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceDeleteAll()

Add the list method for a resourceful route.

public addResourceDeleteAll(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceFormStore()

Add the list method for a resourceful route.

public addResourceFormStore(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route|null
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route|null

addResourceFormUpdate()

Add the list method for a resourceful route.

public addResourceFormUpdate(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceOrder()

Add the list method for a resourceful route.

public addResourceOrder(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceToggleActive()

Add the list method for a resourceful route.

public addResourceToggleActive(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

addResourceToggleDefault()

Add the list method for a resourceful route.

public addResourceToggleDefault(string $name, string $base, string $controller, array<string|int, mixed> $options) : Route
Parameters
$name : string
$base : string
$controller : string
$options : array<string|int, mixed>
Return values
Route

register()

public register(mixed $name, mixed $controller[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$name : mixed
$controller : mixed
$options : array<string|int, mixed> = []
Tags
inerhitDoc

reflectControllerClass()

private reflectControllerClass(string $controller, array<string|int, mixed> $bounds) : array<string|int, mixed>|null
Parameters
$controller : string
$bounds : array<string|int, mixed>
Return values
array<string|int, mixed>|null

        
On this page

Search results