FdchXMLReceiver
extends DataObject
in package
A representation of our Partners receiving Forum Dateaustausch XML Invoices It contains the data of the <pre>mod_xml</pre> table
Table of Contents
- AK = '7611910000030'
- GLN of Ärztekasse
- ASELA = '7601001400078'
- GLN of Asela aka Jucker
- BC = '7601001405530'
- GLN of BillCare HNet
- BC1 = '7601001402409'
- GLN of BillCare MediData @deprecated
- $data : array<string|int, DataType>
- $dataTypes : array<string|int, mixed>
- This has to be overwritten by the concrete implementation.
- $lifeValidate : bool
- __construct() : mixed
- The constructor is normally called from one of the {@link \VeruA\DataMapper\DataMapper}s descendants
- __get() : DataType
- Returnes the {@link \VeruA\DataObjects\DataType} of the requested field
- __isset() : mixed
- __set() : mixed
- Sets a value instatiating a new DataType Object if none is set, or sets the value of the DataType
- __unset() : mixed
- accepts() : mixed
- acceptsEA() : mixed
- acceptsGM() : mixed
- acceptsKT() : mixed
- acceptsKV() : mixed
- validate() : bool
- Validate the data array with the registered validators
- values() : mixed
- Returns the internal data Array, containing all the DataObjects
Constants
AK
GLN of Ärztekasse
public
mixed
AK
= '7611910000030'
ASELA
GLN of Asela aka Jucker
public
mixed
ASELA
= '7601001400078'
BC
GLN of BillCare HNet
public
mixed
BC
= '7601001405530'
BC1
GLN of BillCare MediData @deprecated
public
mixed
BC1
= '7601001402409'
Properties
$data
protected
array<string|int, DataType>
$data
= []
Contains the DataTypes with their respetive values
$dataTypes
This has to be overwritten by the concrete implementation.
protected
array<string|int, mixed>
$dataTypes
= [
'id' => ['type' => 'DataType'],
// int(11) | NO
'kv' => ['type' => 'DataType'],
// int(2) | NO
'klient' => ['type' => 'Boolean'],
// int(2) | NO
'kanton' => ['type' => 'Boolean'],
// int(2) | NO
'ean_im_kanton' => ['type' => 'DataType'],
// varchar(13) | YES
'gemeinde' => ['type' => 'Boolean'],
// int(2) | NO
'ean_ak' => ['type' => 'DataType'],
// varchar(22) | YES
'id_owner' => ['type' => 'DataType'],
// int(5) | NO
// added for simplicity from owner, those are only SELECTed but not INSERTed nor UPDATEd
'nname' => ['type' => 'DataType'],
// int(5) | NO
'vname' => ['type' => 'DataType'],
// int(5) | NO
'zsr' => ['type' => 'DataType'],
// int(5) | NO
'spitex' => ['type' => 'Boolean'],
// int(5) | NO
'orga' => ['type' => 'Boolean'],
]
The format of the array is as follws:
column => [ 'type' => DataType, 'props' => ['required' => bool, 'len' => int] ], ...
column The column from the databasetype The DataType to instation for the respective valueprops are optional and every validator can implement their ownNeed to be configured in the descendants. This is the actual configuration of the fields DataTypes
$lifeValidate
private
bool
$lifeValidate
= false
If set to true every value is validated on __set()
Methods
__construct()
The constructor is normally called from one of the {@link \VeruA\DataMapper\DataMapper}s descendants
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
Sets the values of the DataObject. Every value is passed to the respective
Return values
mixed —__get()
Returnes the {@link \VeruA\DataObjects\DataType} of the requested field
public
__get(string $name) : DataType
Parameters
- $name : string
-
The name of the field
Tags
Return values
DataType —Returns the DataType of the field
__isset()
public
__isset(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__set()
Sets a value instatiating a new DataType Object if none is set, or sets the value of the DataType
public
__set(string $name, mixed $value) : mixed
Parameters
- $name : string
-
The name of the field
- $value : mixed
-
The value
Tags
Return values
mixed —__unset()
public
__unset(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —accepts()
public
accepts(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —acceptsEA()
public
acceptsEA() : mixed
Return values
mixed —acceptsGM()
public
acceptsGM() : mixed
Return values
mixed —acceptsKT()
public
acceptsKT() : mixed
Return values
mixed —acceptsKV()
public
acceptsKV() : mixed
Return values
mixed —validate()
Validate the data array with the registered validators
public
validate() : bool
Tags
Return values
bool —Returns true if all fields are valid
values()
Returns the internal data Array, containing all the DataObjects
public
values() : mixed