Writer implementation to save respondents to the database

package Gems
subpackage Communication
copyright Copyright (c) 2011 Erasmus MC
license New BSD License

 Methods

__construct()

__construct() 

- Fetches respondent based on bsn / reception code and patient nr - Creates the respondent if it does not exist, updates otherwise

writeRespondent(\Gems_Communication_RespondentContainer $respondent, integer $userId) : boolean
see
see
inherited_from \Gems_Communication_RespondentWriter::writeRespondent()

Parameters

$respondent

\Gems_Communication_RespondentContainer

$userId

integer

Returns

booleanTrue if a new respondent was added, false if one was updated

 Properties

 

$_model

$_model : \Gems_Model_RespondentModel

Default

null