Class containing the Netherlands specific model extensions.
Extend your project specific RespondentModel from this model to make it go Dutch.
| package | Gems |
|---|---|
| subpackage | Model |
| copyright | Copyright (c) 2012 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6 |
| inherited_from | \Gems_Model_RespondentModel |
_(string $text, string|\Zend_Locale $locale = null) : string
Translates the given string returns the translation
stringTranslation string
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string__construct(string $name, string $startTable, string $fieldPrefix= null, mixed $saveable= null)
stringA name for the model
stringThe base table for the model
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
addLeftTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModeladdLoginCheck() : \Gems_Model_RespondentModel
\Gems_Model_RespondentModel(continuation pattern)addNameToModel(\Gems_Model_JoinModel $model, string $label)
\Gems_Model_JoinModel
string
addRightTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModeladdTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModelafterRegistry() : void
This function is no needed if the classes are setup correctly
applyBrowseSettings() : \Gems_Model_RespondentModel
\Gems_Model_RespondentModelapplyDetailSettings() : \Gems_Model_RespondentNlModel
| inherited_from | \Gems_Model_RespondentModel::applyDetailSettings() |
|---|
\Gems_Model_RespondentNlModelapplyDetailSettings() : \Gems_Model_RespondentModel
\Gems_Model_RespondentModelapplyEditSettings(boolean $create = false) : \Gems_Model_RespondentModel
| inherited_from | \Gems_Model_RespondentModel::applyEditSettings() |
|---|
booleanTrue when creating
\Gems_Model_RespondentModelapplyEditSettings(boolean $create = false) : \Gems_Model_RespondentModel
booleanTrue when creating
\Gems_Model_RespondentModelapplyHash(string $filterValue, string $filterKey)
applyParameters(array $parameters, boolean $includeNumericFilters = false) : array
array
booleanWhen true numeric filter keys (0, 1, 2...) are added to the filter as well
arrayThe $parameters minus the sort & textsearch keyscheckRegistryRequestsAnswers() : boolean
booleanFalse if required are missing.copyKeys($reset = false)
countTracks(string $patientId, integer $organizationId, integer $respondentId= null, boolean $active= false) : boolean
stringCan be empty if $respondentId is passed
integerWhen null looks at all organizations
integerPass when at hand, is looked up otherwise
booleanWhen true only tracks with a success code are returned
booleangetCurrentOrganization() : integer
integergetKeyRef(mixed $forData, array $href= array(), $organizationInKey= null) : array
basically transforms the fieldnames ointo oan IDn => value array
mixedArray value to vilter on
arrayOr \ArrayObject
arrayThat can by used as hrefgetReceptionCode(string $patientId, integer $organizationId, integer $respondentId = null) : string
stringCan be empty if $respondentId is passed
integer
integerPass when at hand, is looked up otherwise
stringThe current reception codegetRespondentTracksModel() : \Gems_Model_JoinModel
\Gems_Model_JoinModelA NEW JoinModel, not a continuation pattern returnhasTracks(string $patientId, integer $organizationId, integer $respondentId= null, boolean $active= false) : boolean
stringCan be empty if $respondentId is passed
integerWhen null looks at all organizations
integerPass when at hand, is looked up otherwise
booleanWhen true we look only for tracks with a success code
booleanhideSSN(mixed $value, boolean $isNew= false, string $name= null, array $context= array(), $isPost= false) : string
mixedThe value being saved
booleanTrue when a new item is being saved
stringThe name of the current field
arrayOptional, the other values being saved
stringThe output to displayisMultiOrganization() : boolean
booleanplural(string $singular, string $plural, integer $number, string|\Zend_Locale $locale = null) : string
Translates the given string using plural notations Returns the translated string
| see |
|---|
stringSingular translation string
stringPlural translation string
integerNumber for detecting the correct plural
string\Zend_Locale(Optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
stringsave(array $newValues, array $filter= null, array $saveTables= null) : array
arrayThe values to store for a single model item.
arrayIf the filter contains old key values these are used to decide on update versus insert.
arrayThe values as they are after saving (they may change).saveSSN(mixed $value, boolean $isNew= false, string $name= null, array $context= array()) : string
mixedThe value being saved
booleanTrue when a new item is being saved
stringThe name of the current field
arrayOptional, the other values being saved
stringThe salted hash as a 32-character hexadecimal number.setDutchSsn(\MUtil_Model_ModelAbstract $model, \Zend_Translate_Adapter $translator, string $fieldName = 'grs_ssn')
\MUtil_Model_ModelAbstract
\Zend_Translate_Adapter
string
setDutchZipcode(\MUtil_Model_ModelAbstract $model, \Zend_Translate_Adapter $translator, string $fieldName = 'grs_zipcode')
\MUtil_Model_ModelAbstract
\Zend_Translate_Adapter
string
setReceptionCode(string $patientId, integer $organizationId, string $newCode, integer $respondentId= null, string $oldCode= null) : \Gems_Util_ReceptionCode
stringCan be empty if $respondentId is passed
integer
stringString or \Gems_Util_ReceptionCode
integerPass when at hand, is looked up otherwise
stringPass when at hand as tring or \Gems_Util_ReceptionCode, is looked up otherwise
\Gems_Util_ReceptionCodeThe new code reception code object for further processingsetTableSaveable(string $table_name, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
stringDoes not test for existence
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModelwhenSSN(mixed $value, boolean $isNew= false, string $name= null, array $context= array()) : boolean
mixedThe value being saved
booleanTrue when a new item is being saved
stringThe name of the current field
arrayOptional, the other values being saved
boolean_checkFilterUsed(mixed $filter) : array
Checks the filter on sematic correctness and replaces the text seacrh filter with the real filter.
mixedTrue for the filter stored in this model or a filter array
arrayThe filter to use_checkSaveable(mixed $saveable, string $fieldPrefix) : mixed
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedThe saveable setting to usegetChangersList() : array
arrayid => namegetTranslateAdapter() : \Zend_Translate_Adapter
\Zend_Translate_AdapterinitTranslateable()
This function is not needed if the variables have been defined correctly in the source for this object and theose variables have been applied.
return @void
$hashAlgorithm : integer
'sha512'Can be changed is derived classes, set to null to use old md5() method
$hashSsn : integer
self::SSN_HASHCan be changed is derived classes.
$view : \Zend_View
$currentUser : \Gems_User_User
$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$loginCheck : boolean
false$project : \Gems_Project_ProjectSettings
$translate : \Zend_Translate
$translateAdapter : \Zend_Translate_Adapter
$util : \Gems_Util
SSN_HASH = 1
SSN_HIDE = 2
SSN_OPEN = 4