Business
in
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:
Tags
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
boolisModuleActive()
Returns true if the given Module is active for this Spitex or Owner
public
isModuleActive(string $module) : bool
Parameters
- $module : string
Return values
boolisSpitex()
Returns true if the Business is a Spitex, false otherwise
public
isSpitex() : bool
Return values
boolmodules()
Activates / Deactivates Modules
public
modules(mixed $modules) : mixed
Parameters
- $modules : mixed
-
'field' => true|false
Tags
name()
Returns the complete name of the Business
public
name() : mixed