Central storage / access point for working with gems models.
As these classes may need setting of values this subclass implements the checkRegistryRequestsAnswers() easy access to resources.
| package | Gems |
|---|---|
| subpackage | Model |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.0 |
| inherited_from | \Gems_Loader_TargetLoaderAbstract |
__construct(mixed $container, array $dirs)
mixedA container acting as source for \MUtil_Registry_Source
arrayThe directories where to look for requested classes
__get($name)
addPrefixPath(string $prefix, $path, boolean $prepend = true) : \Gems_Loader_LoaderAbstract
string
booleanPut path at the beginning of the stack (has no effect when prefix / dir already set)
\Gems_Loader_LoaderAbstract(continuation pattern)addUserPassword(\Gems_Model_JoinModel $model)
| deprecated | since version 1.5.4 |
|---|
\Gems_Model_JoinModel
afterRegistry() : void
answerRegistryRequest(string $name, mixed $resource) : boolean
stringName of resource to set
mixedThe resource.
booleanTrue if $resource was OKcheckRegistryRequestsAnswers() : boolean
booleanFalse if required values are missing.createAppointmentModel() : \Gems_Model_AppointmentModel
\Gems_Model_AppointmentModelcreateGemsUserId(mixed $value, boolean $isNew= false, string $name= null, array $context= array()) : integer
createLogModel() : \Gems\Model\LogModel
\Gems\Model\LogModelcreateRespondentModel() : \Gems_Model_RespondentModel
\Gems_Model_RespondentModelgetCommLogModel(boolean $detailed) : \Gems\Model\CommLogModel
booleanTrue when the current action is not in $summarizedActions.
\Gems\Model\CommLogModelgetCommtemplateModel() : \Gems_Model_CommtemplateModel
\Gems_Model_CommtemplateModelgetOpenRosaFormModel() : \OpenRosa_Model_OpenRosaFormModel
It is special since it can show how many responses each table has
\OpenRosa_Model_OpenRosaFormModelgetOrganizationModel(array|mixed $styles = array()) : \Gems_Model_OrganizationModel
arraymixed
\Gems_Model_OrganizationModelgetRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
arrayof string namesgetRespondentModel($detailed) : \Gems_Model_RespondentModel
\Gems_Model_RespondentModelgetRespondentRelationModel() : \Gems_Model_RespondentRelationModel
\Gems_Model_RespondentRelationModelgetStaffModel(boolean $addLogin = true) : \Gems_Model_StaffModel
booleanAdd the login tables to the model
\Gems_Model_StaffModelsetAsGemsUserId(\MUtil_Model_DatabaseModelAbstract $model, string $idField)
\MUtil_Model_DatabaseModelAbstract
stringField that uses global id.
setChangeFieldsByPrefix(\MUtil_Model_DatabaseModelAbstract $model, string $prefix, integer $userid = null)
\MUtil_Model_DatabaseModelAbstract
stringThree letter code
integerGems user id
_cascadedDirs(array $dirs, string $cascade, boolean $fullClassnameFallback = true) : array
arrayprefix => path
stringThe sub directories to cascade to
booleanAllows full class name specification instead of just plugin name part
arrayprefix => path_getClass(string $name, string $className= null, array $arguments= array()) : mixed
stringThe $name of the variable to store this object in.
stringClass name or null if the same as $name, prepending $this->_dirs.
arrayClass initialization arguments.
mixedInstance of $className_loadClass(string $name, boolean $create= false, array $arguments= array()) : mixed
addUserLogin(\Gems_Model_JoinModel $model, string $loginField, string $organizationField)
\Gems_Model_JoinModel
stringField that links to login name field.
stringField that links to the organization field.
filterRequestNames(string $name) : boolean
Can be overriden.
string
boolean$respondentLoginIdField : string
'gr2o_patient_nr'$_dirs : array
The standard value is
But an alternative could be:
$_loader : \MUtil_Loader_PluginLoader
$cascade : string
'Model'$cascade : string
null$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$translate : \Zend_Translate
$userIdLen : integer
8$util : \Gems_Util
APPOINTMENT_ID = 'aid'
FIELD_ID = 'fid'
ID_TYPE = 'id_type'
LOG_ITEM_ID = 'li'
RESPONDENT_TRACK = 'rt'
ROUND_ID = 'rid'
SURVEY_ID = 'si'
TRACK_ID = 'tr'