Documentation

Business

The Business interface represents the common parts of the Owner and Spitex DMO

Implemented by Owner and Spitex

Please note that it is mandatory to implement all listed properties in the implementing Business::__get() method as documented below:

  • $name : Varchar
    The name of the Spitex or Owner in charge
  • $gln : EAN13
    GLN-Number of the Business
  • $isSpitex : Boolean
    Is it a Spitex Business
  • $billcare : Integer
    Does Business use BillCare 0 => false, 2 => MF
  • $logo : Varchar
    The logo of the Spitex or Owner in charge
Tags
link
https://docs.verua.ch/latest/files/public-data-init-db.html

Table of Contents

Methods

__get()  : mixed
Magic getter, override to implement above mentioned properties
__set()  : mixed
Magic setter, override if special handling on write is needed
areModulesActive()  : bool
Returns true only if all given modules are active
isModuleActive()  : bool
Returns true if the given Module is active for this Spitex or Owner
isSpitex()  : bool
Returns true if the Business is a Spitex, false otherwise
modules()  : mixed
Activates / Deactivates Modules
name()  : mixed
Returns the complete name of the Business

Methods

__get()

Magic getter, override to implement above mentioned properties

public __get(string $field) : mixed
switch ($field)
{
   case 'name':  return $this->name();
   case 'gln':   return $this->gln();
   ...
}
return parent::__get($field);
Parameters
$field : string

__set()

Magic setter, override if special handling on write is needed

public __set(string $name, mixed $value) : mixed
Parameters
$name : string
$value : mixed

areModulesActive()

Returns true only if all given modules are active

public areModulesActive(array<string|int, mixed> $modules) : bool
Parameters
$modules : array<string|int, mixed>
Return values
bool

isModuleActive()

Returns true if the given Module is active for this Spitex or Owner

public isModuleActive(string $module) : bool
Parameters
$module : string
Return values
bool

isSpitex()

Returns true if the Business is a Spitex, false otherwise

public isSpitex() : bool
Return values
bool

modules()

Activates / Deactivates Modules

public modules(mixed $modules) : mixed
Parameters
$modules : mixed

'field' => true|false

Tags
todo

put moduels in a separate table. Do not use the fields directly to change state, to ease migration

name()

Returns the complete name of the Business

public name() : mixed

        
On this page

Search results