ReportsManager
Table of Contents
-
COL_ID
= 'id'
-
COL_NAME
= 'name'
-
COL_PARAMS
= 'parameters'
-
COL_SUBSCRIBERS
= 'subscribers'
-
COL_TEMPLATE
= 'templates'
-
COL_TITLE
= 'title'
-
PARAM_SELECT_REPORT_FROM
= 'take_file_from'
-
PARAM_STRUCTURE_LEVEL
= 'structure_level'
-
PARAM_TRIGGER_TYPE
= 'type'
-
SERVICE_NAME
= 'email.reports.manager'
-
TABLE_NAME
= 'ema_reports'
-
$database
: Explorer
-
$reports
: array<string|int, mixed>
-
__construct()
: mixed
-
delete()
: void
-
getReport()
: Report
-
getReports()
: array<string|int, Report>
-
getSubscribesByUser()
: ResultSet
-
register()
: void
-
unregisterReport()
: void
-
updateSubscribers()
: void
-
add()
: void
-
addUserToSubscribers()
: void
-
find()
: Selection
-
get()
: ActiveRow
-
removeUserFromSubscribers()
: void
COL_ID
public
mixed
COL_ID
= 'id'
COL_NAME
public
mixed
COL_NAME
= 'name'
COL_PARAMS
public
mixed
COL_PARAMS
= 'parameters'
COL_SUBSCRIBERS
public
mixed
COL_SUBSCRIBERS
= 'subscribers'
COL_TEMPLATE
public
mixed
COL_TEMPLATE
= 'templates'
COL_TITLE
public
mixed
COL_TITLE
= 'title'
PARAM_SELECT_REPORT_FROM
public
mixed
PARAM_SELECT_REPORT_FROM
= 'take_file_from'
PARAM_STRUCTURE_LEVEL
public
mixed
PARAM_STRUCTURE_LEVEL
= 'structure_level'
PARAM_TRIGGER_TYPE
public
mixed
PARAM_TRIGGER_TYPE
= 'type'
SERVICE_NAME
public
mixed
SERVICE_NAME
= 'email.reports.manager'
TABLE_NAME
public
mixed
TABLE_NAME
= 'ema_reports'
$database
private
Explorer
$database
$reports
private
array<string|int, mixed>
$reports
= []
__construct()
public
__construct(Explorer $database) : mixed
Parameters
-
$database
: Explorer
-
Return values
mixed
—
delete()
public
delete(string $name) : void
Parameters
-
$name
: string
-
-
throws
-
ReportNotFountException
Return values
void
—
getReport()
public
getReport(string $name) : Report
Parameters
-
$name
: string
-
-
throws
-
ReportNotFountException
Return values
Report
—
getReports()
public
getReports() : array<string|int, Report>
Return values
array<string|int, Report>
—
getSubscribesByUser()
public
getSubscribesByUser(int $userId) : ResultSet
Parameters
-
$userId
: int
-
Return values
ResultSet
—
register()
public
register(Report $report) : void
Parameters
-
$report
: Report
-
-
throws
-
ReportConflictException
Return values
void
—
unregisterReport()
public
unregisterReport(string $name) : void
Parameters
-
$name
: string
-
-
throws
-
ReportNotFountException
Return values
void
—
updateSubscribers()
public
updateSubscribers(int $userId, iteratable<string|int, mixed> $reports) : void
Parameters
-
$userId
: int
-
-
$reports
: iteratable<string|int, mixed>
-
-
throws
-
UpdateSubscribeException
Return values
void
—
add()
private
add(iteratable<string|int, mixed> $value) : void
Parameters
-
$value
: iteratable<string|int, mixed>
-
Return values
void
—
addUserToSubscribers()
private
addUserToSubscribers(int $userId, string $name, iteratable<string|int, mixed> $args) : void
Parameters
-
$userId
: int
-
-
$name
: string
-
-
$args
: iteratable<string|int, mixed>
-
-
throws
-
ReportNotFountException
Return values
void
—
find()
private
find() : Selection
Return values
Selection
—
get()
private
get(string $name) : ActiveRow
Parameters
-
$name
: string
-
-
throws
-
ReportNotFountException
Return values
ActiveRow
—
removeUserFromSubscribers()
private
removeUserFromSubscribers(int $userId, string $name) : void
Parameters
-
$userId
: int
-
-
$name
: string
-
-
throws
-
ReportNotFountException
Return values
void
—