ParameterSource is a central class for setting menu parameters.

As using $request to set menu items currently does not perform parameter tests, this is the place to set variables that are used in a parameter filter.

package Gems
subpackage Menu
copyright Copyright (c) 2011 Erasmus MC
license New BSD License
since Class available since version 1.4

 Methods

Returns a value to use as parameter for $name or $default if this object does not contain the value.

getMenuParameter(string $name, mixed $default) : mixed
inherited_from \Gems_Menu_ParameterSourceInterface::getMenuParameter()

Parameters

$name

string

$default

mixed

Returns

mixed

setAppointmentId()

setAppointmentId($appointmentId) 

Parameters

$appointmentId

setPatient()

setPatient($patientNumber, $organizationId) 

Parameters

$patientNumber

$organizationId

setRequestId()

setRequestId($requestId) 

Parameters

$requestId

setRespondentTrackId()

setRespondentTrackId($respTrackId) 

Parameters

$respTrackId

setRoundId()

setRoundId($roundId) 

Parameters

$roundId

setSurveyId()

setSurveyId($surveyId) 

Parameters

$surveyId

setTokenId()

setTokenId($tokenId) 

Parameters

$tokenId

setTrackId()

setTrackId($trackId) 

Parameters

$trackId

Helper function to set more than one array key to the same value

_setMulti(mixed $value, string $name1, string $name2 = null

Parameters

$value

mixed

The value to set

$name1

string

The first key to set

$name2

string

Optional, second key, number of keys is unlimited