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)
mixed
A container acting as source for \MUtil_Registry_Source
array
The directories where to look for requested classes
__get($name)
addPrefixPath(string $prefix, $path, boolean $prepend = true
) : \Gems_Loader_LoaderAbstract
string
boolean
Put 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
string
Name of resource to set
mixed
The resource.
boolean
True if $resource was OKcheckRegistryRequestsAnswers() : boolean
boolean
False if required values are missing.createAppointmentModel() : \Gems_Model_AppointmentModel
\Gems_Model_AppointmentModel
createGemsUserId(mixed $value, boolean $isNew= false
, string $name= null
, array $context= array()
) : integer
createLogModel() : \Gems\Model\LogModel
\Gems\Model\LogModel
createRespondentModel() : \Gems_Model_RespondentModel
\Gems_Model_RespondentModel
getCommLogModel(boolean $detailed) : \Gems\Model\CommLogModel
boolean
True when the current action is not in $summarizedActions.
\Gems\Model\CommLogModel
getCommtemplateModel() : \Gems_Model_CommtemplateModel
\Gems_Model_CommtemplateModel
getOpenRosaFormModel() : \OpenRosa_Model_OpenRosaFormModel
It is special since it can show how many responses each table has
\OpenRosa_Model_OpenRosaFormModel
getOrganizationModel(array|mixed $styles = array()
) : \Gems_Model_OrganizationModel
array
mixed
\Gems_Model_OrganizationModel
getRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
array
of string namesgetRespondentModel($detailed) : \Gems_Model_RespondentModel
\Gems_Model_RespondentModel
getRespondentRelationModel() : \Gems_Model_RespondentRelationModel
\Gems_Model_RespondentRelationModel
getStaffModel(boolean $addLogin = true
) : \Gems_Model_StaffModel
boolean
Add the login tables to the model
\Gems_Model_StaffModel
setAsGemsUserId(\MUtil_Model_DatabaseModelAbstract $model, string $idField)
\MUtil_Model_DatabaseModelAbstract
string
Field that uses global id.
setChangeFieldsByPrefix(\MUtil_Model_DatabaseModelAbstract $model, string $prefix, integer $userid = null
)
\MUtil_Model_DatabaseModelAbstract
string
Three letter code
integer
Gems user id
_cascadedDirs(array $dirs, string $cascade, boolean $fullClassnameFallback = true
) : array
array
prefix => path
string
The sub directories to cascade to
boolean
Allows full class name specification instead of just plugin name part
array
prefix => path_getClass(string $name, string $className= null
, array $arguments= array()
) : mixed
string
The $name of the variable to store this object in.
string
Class name or null if the same as $name, prepending $this->_dirs.
array
Class initialization arguments.
mixed
Instance of $className_loadClass(string $name, boolean $create= false
, array $arguments= array()
) : mixed
addUserLogin(\Gems_Model_JoinModel $model, string $loginField, string $organizationField)
\Gems_Model_JoinModel
string
Field that links to login name field.
string
Field 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'