abstract class report_handler implements report_handler_interface

Properties

protected driver_interface $db
protected dispatcher_interface $dispatcher
protected config $config
protected auth $auth
protected user $user
protected manager $notifications
protected array $report_data

Methods

__construct(driver_interface $db, dispatcher_interface $dispatcher, config $config, auth $auth, user $user, manager $notification)

Constructor

int
create_report(array $report_data)

Creates a report entity in the database

Details

at line 63
__construct(driver_interface $db, dispatcher_interface $dispatcher, config $config, auth $auth, user $user, manager $notification)

Constructor

Parameters

driver_interface $db
dispatcher_interface $dispatcher
config $config
auth $auth
user $user
manager $notification

at line 80
protected int create_report(array $report_data)

Creates a report entity in the database

Parameters

array $report_data

Return Value

int

the ID of the created entity