ReportEntryImage
in package
Class ReportEntryImage
This class provides methods to interact with the report_entry_image table, including retrieving images associated with a report entry and creating new image records.
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : void
- Create a report_entry_image row.
- getByEntry() : array<string|int, mixed>
Properties
$db
protected
MySql
$db
Methods
__construct()
public
__construct(MySql $db) : mixed
Parameters
- $db : MySql
create()
Create a report_entry_image row.
public
create(array<string|int, mixed> $data) : void
Expects:
- report_entry_id (int, required OR report_entry_code)
- report_entry_code (string|null)
- report_entry_image_name (string, required)
- report_entry_image_path (string, required)
- report_entry_image_extension (string, required)
- sort_order (int|null)
- status (int, default 1)
- createdby (string, required)
- modifiedby (string, required)
Parameters
- $data : array<string|int, mixed>
getByEntry()
public
getByEntry(int $entryId) : array<string|int, mixed>
Parameters
- $entryId : int