ICanBoogie/Routing 2.5.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Routing
      • Controller
      • Route
      • RouteDispatcher

Classes

  • ActionEvent
  • BeforeActionEvent

Traits

  • ActionTrait
  • ResourceTrait

Trait ResourceTrait

Resource oriented controller implementation.

ICanBoogie\Routing\Controller\ResourceTrait uses ICanBoogie\Routing\Controller\ActionTrait
Namespace: ICanBoogie\Routing\Controller
Located at Controller/ResourceTrait.php

Methods summary

protected boolean
# is_action_method( string $action )

Whether the action has a direct method match.

Whether the action has a direct method match.

Note: The action is tested against resource actions.

Parameters

$action

Returns

boolean
true if the action has a direct method match, false otherwise.

Methods used from ICanBoogie\Routing\Controller\ActionTrait

action(), get_action(), resolve_action(), resolve_action_args(), resolve_action_method()

Properties summary

protected static array $resource_actions
# [ 'index', 'create', 'store', 'show', 'edit', 'update', 'destroy' ]

Magic properties used from ICanBoogie\Routing\Controller\ActionTrait

$action, $route

ICanBoogie/Routing 2.5.x API documentation generated by ApiGen