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
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
boolean
False 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
boolean
False if required values are missing.
Get information on the field translations
getFieldsTranslations() : array
Exceptions
\MUtil_Model_ModelException |
|
Returns
array
of 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
mixed
array or \Traversable row
$key
scalar
Returns
mixed
Row array or false when errors occurred
Perform any translations necessary for the code to work
translateRowValues(mixed $row, scalar $key) : mixed
Inherited
Parameters
$row
mixed
array or \Traversable row
$key
scalar
Returns
mixed
Row array or false when errors occurred
Properties
$db
$db : \Zend_Db_Adapter_Abstract
inherited_from |
\Gems_Model_Translator_StraightTranslator::db |
$db
$db : \Zend_Db_Adapter_Abstract
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
The task used for import
$saveTask : string
Default
'Import_SaveRespondentTask'