package Gems
subpackage Snippets\Tracker
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.7.2 Jan 4, 2016 11:23:38 AM
inherited_from \Gems\Tracker\Snippets\ExportTrackSnippetAbstract

 Methods

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

addStepElementsFor(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model, integer $step) 
Inherited

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$model

\MUtil_Model_ModelAbstract

$step

integer

The current step

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

addStepExportCodes(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model) 
Inherited

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$model

\MUtil_Model_ModelAbstract

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

addStepExportSettings(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model) 
Inherited

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$model

\MUtil_Model_ModelAbstract

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

addStepGenerateExportFile(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model) 
Inherited

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$model

\MUtil_Model_ModelAbstract

Overrule this function for any activities you want to take place after the form has successfully been validated, but before any buttons are processed.

afterFormValidationFor(integer $step) 
Inherited

Parameters

$step

integer

The current step

Hook that allows actions when data was saved

afterSave(integer $changed) 
Inherited

When not rerouted, the form will be populated afterwards

Parameters

$changed

integer

The number of changed rows (0 or 1 usually, but can be more)

Creates an empty form. Allows overruling in sub-classes.

createForm(mixed $options = null) : \Zend_Form
Inherited

Parameters

$options

mixed

Returns

\Zend_Form

Creates the model

createModel() : \MUtil_Model_ModelAbstract
Inherited

Returns

\MUtil_Model_ModelAbstract

Display a header

displayHeader(\MUtil_Model_Bridge_FormBridgeInterface $bridge, mixed $header, string $tagName = 'h2'
Inherited

Parameters

$bridge

\MUtil_Model_Bridge_FormBridgeInterface

$header

mixed

Header content

$tagName

string

Performs actual download

downloadExportFile() 
Inherited

getExportBatch()

getExportBatch($load = true) : \Gems_Task_TaskRunnerBatch
Inherited

Parameters

$load

Returns

\Gems_Task_TaskRunnerBatch

The number of steps in this form

getStepCount() : integer
Inherited

Returns

integer

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

loadFormData() 
Inherited

Or from whatever other source you specify here.

Set what to do when the form is 'finished'.

setAfterSaveRoute() : \Gems\Tracker\Snippets\ExportTrackSnippetAbstract
Inherited

Returns

\Gems\Tracker\Snippets\ExportTrackSnippetAbstract

 Properties

 

Variable to either keep or throw away the request data not specified in the route.

$resetRoute : boolean

Default

true
 

$accesslog

$accesslog : \Gems_AccessLog

Default

 

$cache

$cache : \Zend_Cache_Core

Default

 

$currentUser

$currentUser : \Gems_User_User

Default

 

$db

$db : \Zend_Db_Adapter_Abstract

Default

 

The number of seconds to wait before the file download starts

$downloadWaitSeconds : integer

Default

1
 

$exportModel

$exportModel : \MUtil_Model_ModelAbstract

Default

 

$loader

$loader : \Gems_Loader

Default

 

The name of the action to forward to after form completion

$routeAction : string

Default

'show'
 

$trackEngine

$trackEngine : \Gems_Tracker_Engine_TrackEngineInterface

Default

 

$util

$util : \Gems_Util

Default

 

$view

$view : \Zend_View

Default

 

$_batch

$_batch : \Gems_Task_TaskRunnerBatch

Default