CantonController
extends AbstractController
in package
implements
GettableInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- fetchForCantonSelectBox() : array<string|int, mixed>
- getAll() : mixed
- getAllAlphabetically() : mixed
- getById() : mixed
- isAMilitaryOrAccidentCantonalProvider() : bool
- isAnIVProvider() : bool
- getDBC() : mixed
- initDB() : mixed
- packObjectAsValueName() : array<string|int, mixed>
- TODO is it the right place to lay this mehtod? packObjectAsValueName use it to prepare data for select boxes
Properties
$dbc
protected
mixed
$dbc
$mapper
protected
mixed
$mapper
Methods
__construct()
public
__construct() : mixed
fetchForCantonSelectBox()
public
fetchForCantonSelectBox() : array<string|int, mixed>
Return values
array<string|int, mixed>getAll()
public
getAll() : mixed
getAllAlphabetically()
public
getAllAlphabetically() : mixed
getById()
public
getById(int $id) : mixed
Parameters
- $id : int
isAMilitaryOrAccidentCantonalProvider()
public
isAMilitaryOrAccidentCantonalProvider(int $cantonId) : bool
Parameters
- $cantonId : int
Return values
boolisAnIVProvider()
public
isAnIVProvider(int $cantonId) : bool
Parameters
- $cantonId : int
Return values
boolgetDBC()
protected
getDBC() : mixed
initDB()
protected
initDB() : mixed
packObjectAsValueName()
TODO is it the right place to lay this mehtod? packObjectAsValueName use it to prepare data for select boxes
protected
packObjectAsValueName(object $domainObject, array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
- $domainObject : object
- $fields : array<string|int, mixed>
-
[ 'value' => 'variable-displayed-as-the-option-value' 'name' => 'The variable for the option text displayed on the page' ]