| package |
Gems |
| subpackage |
Model_Translator |
| copyright |
Copyright (c) 2012 Erasmus MC |
| license |
New BSD License |
| since |
Class available since version 1.6.1 |
| inherited_from |
\Gems_Model_Translator_StraightTranslator |
Methods
Called after the check that all required registry values
have been set correctly has run.
afterRegistry() : void
| inherited_from |
\Gems_Model_Translator_StraightTranslator::afterRegistry() |
Called after the check that all required registry values
have been set correctly has run.
afterRegistry() : void
Inherited
Should be called after answering the request to allow the Target
to check if all required registry values have been set correctly.
checkRegistryRequestsAnswers() : boolean
| inherited_from |
\Gems_Model_Translator_StraightTranslator::checkRegistryRequestsAnswers() |
Returns
booleanFalse if required values are missing.
Should be called after answering the request to allow the Target
to check if all required registry values have been set correctly.
checkRegistryRequestsAnswers() : boolean
Inherited
Returns
booleanFalse if required values are missing.
Get information on the field translations
getFieldsTranslations() : array
Exceptions
\MUtil_Model_ModelException |
|
Returns
arrayof fields sourceName => targetName
Prepare for the import.
startImport() : \MUtil_Model_ModelTranslatorAbstract
Returns
\MUtil_Model_ModelTranslatorAbstract(continuation pattern)
Perform any translations necessary for the code to work
translateRowValues(mixed $row, scalar $key) : mixed
| inherited_from |
\Gems_Model_Translator_StraightTranslator::translateRowValues() |
Parameters
$row
mixedarray or \Traversable row
$key
scalar
Returns
mixedRow array or false when errors occurred
Perform any translations necessary for the code to work
translateRowValues(mixed $row, scalar $key) : mixed
Inherited
Parameters
$row
mixedarray or \Traversable row
$key
scalar
Returns
mixedRow array or false when errors occurred
Properties
$_agenda
$_agenda : \Gems_Agenda
$db
$db : \Zend_Db_Adapter_Abstract
$loader
$loader : \Gems_loader
The name of the field to store the organization id in
$orgIdField : string
Default
'gap_id_organization'
| inherited_from |
\Gems_Model_Translator_StraightTranslator::orgIdField |
The name of the field to store the organization id in
$orgIdField : string
Default
'gr2o_id_organization'
Extra values the origanization id field accepts
$orgTranslations : array