Class CollectDependenciesEvent
Event class for the
ICanBoogie\ActiveRecord::collect_dependencies
event.
-
ICanBoogie\Event
-
ICanBoogie\ActiveRecord\CollectDependenciesEvent
Methods summary
public
|
#
__construct( ICanBoogie\ActiveRecord $target, array & $dependencies )
The event is constructed with the type 'collect_dependencies'.
The event is constructed with the type 'collect_dependencies'.
Parameters
Throws
PropertyIsReserved in attempt to specify a reserved property with the payload.
Overrides
|
public
|
#
add( string $module_id, integer $key, string $title, string|true|null $edit_url = null, string|null $view_url = null )
Adds a dependency.
Parameters
- $module_id
string $module_id Identifier of the module managin the dependency.
- $key
integer $key Identifier of the dependency.
- $title
string $title Title of the dependency.
- $edit_url
string|true|null $edit_url The URL where the dependency can be edited. If true the
URL if automatically generated using the following pattern:
/admin/:module_id/:key/edit .
- $view_url
string|null $view_url The URL on the website where the dependency can be viewed.
|
__get()
,
chain()
,
stop()
Magic methods summary
Properties summary
public
array[string]\ICanBoogie\ActiveRecord
|
$dependencies
|
#
Reference to the dependencies.
Reference to the dependencies.
|
$profiling
$stopped
,
$target
,
$used
,
$used_by