FdchXMLReceiverMapper
extends DataMapper
in package
A Mapper for FdchXMLReceiver to mod_xml
Tags
Table of Contents
- $dbc : mixed
- __construct() : mixed
- findByGLN() : array<string|int, FdchXMLReceiver>
- Finds all rows with the given GLN(s)
- findByOwner() : FdchXMLReceiver
- Returns an FdchXMLReceiver Object with the given ownerId
- update() : mixed
Properties
$dbc
protected
mixed
$dbc
Methods
__construct()
public
__construct(mixed $dbc) : mixed
Parameters
- $dbc : mixed
-
The database Connection Object
Return values
mixed —findByGLN()
Finds all rows with the given GLN(s)
public
findByGLN(array<string|int, mixed>|EAN $gln[, int $idOwner = null ][, bool $imKanton = false ]) : array<string|int, FdchXMLReceiver>
Parameters
- $gln : array<string|int, mixed>|EAN
- $idOwner : int = null
-
if given, a
where id_owner = $idOwneris added - $imKanton : bool = false
-
if set to true not the 'ean_ak' but the 'ean_im_kanton' is used
Return values
array<string|int, FdchXMLReceiver> —findByOwner()
Returns an FdchXMLReceiver Object with the given ownerId
public
findByOwner([int $ownerId = null ]) : FdchXMLReceiver
The first result is returned. If $ownerId is not given, the first row is returned.
Parameters
- $ownerId : int = null
-
The id of the owner
Tags
Return values
FdchXMLReceiver —update()
public
update(mixed $xmlReceivers) : mixed
Parameters
- $xmlReceivers : mixed