package Gems
subpackage Snippets
copyright Copyright (c) 2014 Erasmus MC
license New BSD License
since Class available since version 1.6.3 17-apr-2014 17:12:39
inherited_from \Gems\Snippets\ModelImportSnippet

 Methods

Hook for after save

afterImport(\MUtil_Task_TaskBatch $batch, \MUtil_Form_Element_Html $element) : string
Inherited

Parameters

$batch

\MUtil_Task_TaskBatch

that was just executed

$element

\MUtil_Form_Element_Html

Tetx element for display of messages

Returns

stringa message about what has changed (and used in the form)

Add the next button

addNextButton() 

Add the elements from the model to the bridge for the current step

addStep1(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model) 

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$model

\MUtil_Model_ModelAbstract

Called after the check that all required registry values have been set correctly has run.

createModel() : void: \MUtil_Model_ModelAbstract

Returns

\MUtil_Model_ModelAbstract

Creates from the model a \Zend_Form using createForm and adds elements using addFormElements().

getFormFor(integer $step) : \Zend_Form

Parameters

$step

integer

The current step

Returns

\Zend_Form

Try to get the current translator

getImportTranslator() : \MUtil_Model_ModelTranslatorInterface

Returns

\MUtil_Model_ModelTranslatorInterfaceor false if none is current

Hook that loads the form data from $_POST or the model

loadFormData() 

Or from whatever other source you specify here.

 Properties

 

$_survey

$_survey : \Gems_Tracker_Survey

Default

 

$accesslog

$accesslog : \Gems_AccessLog

Default

 

$importLoader

$importLoader : \Gems_Import_ImportLoader

Default

 

$loader

$loader : \Gems_Loader

Default

 

$locale

$locale : \Zend_Locale

Default

 

$menu

$menu : \Gems_Menu

Default

 

$util

$util : \Gems_Util

Default