Documentation

FdchXMLReceiverMapper extends DataMapper
in package

A Mapper for FdchXMLReceiver to mod_xml

Tags
uses
FdchXMLReceiver

Table of Contents

COLUMNS  = []
JOINS  = []
TABLE  = ''
WHERE  = []
$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
sqlColumns()  : mixed
sqlSelectQuery()  : mixed

Constants

Properties

$dbc

protected mixed $dbc

A database Connection Object

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 = $idOwner is 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
throws
OutOfRangeException
Return values
FdchXMLReceiver

update()

public update(mixed $xmlReceivers) : mixed
Parameters
$xmlReceivers : mixed
Return values
mixed

sqlColumns()

protected sqlColumns(array<string|int, mixed> $tableColumns) : mixed
Parameters
$tableColumns : array<string|int, mixed>

[$table => [ $column, ... ], ...]

Return values
mixed

sqlSelectQuery()

protected sqlSelectQuery(mixed $columns, mixed $table, mixed $joins, mixed $where) : mixed
Parameters
$columns : mixed
$table : mixed
$joins : mixed
$where : mixed
Return values
mixed

Search results