Class Hooks
Hook callbacks.
Methods summary
public static
|
#
filter_autoconfig( array & $autoconfig )
Adds "modules" directories found in the app directories to |
public static
|
#
on_core_configure( ICanBoogie\Core\ConfigureEvent $event, ICanBoogie\Core $app )
Extends application configuration according to modules features. |
public static
|
|
public static
|
#
before_synthesize_routes( ICanBoogie\Binding\Routing\BeforeSynthesizeRoutesEvent $event )
Alter routes defined by modules by adding a |
public static
|
#
on_template_resolver_alter( ICanBoogie\Render\TemplateResolver\AlterEvent $event )
Decorates the template resolver with a |
public static
|
#
on_view_alter( ICanBoogie\View\View\AlterEvent $event, ICanBoogie\View\View $target )
If the view renders a module's route, the "template" directory of that module is added
to the list of templates locations. Also, the module is set as |
public static
|
#
get_modules( ICanBoogie\Core $app )
Return the |
public static
|
#
get_models( ICanBoogie\Core $app )
Returns the |
public static
|
#
controller_get_module( ICanBoogie\Routing\Controller $controller )
Return the |
public static
ICanBoogie\ActiveRecord\Model
|
#
controller_get_model( ICanBoogie\Routing\Controller $controller )
Return the primary model of the module associated with the route handled by the controller. |
public static
ICanBoogie\Facets\Fetcher
|
#
controller_lazy_get_records_fetcher( ICanBoogie\Routing\Controller $controller )
Return a record fetcher for the controller |
public static
ICanBoogie\Facets\RecordCollection
|
#
controller_fetch_records( ICanBoogie\Routing\Controller $controller, array $modifiers )
Fetch records using the controller |
public static
ICanBoogie\ActiveRecord
|
#
controller_fetch_record( ICanBoogie\Routing\Controller $controller, array $modifiers, ICanBoogie\Facets\Fetcher|null & $fetcher = null )
Fetch records using the controller |