Adds basic track editing snippet parameter processing and checking.
This class supplies the model and adjusts the basic load & save functions.
package | Gems |
---|---|
subpackage | Tracker |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.4 |
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract |
afterRegistry() : void
beforeDisplay() : \Zend_Form
Here we add the table display to the form.
\Zend_Form
checkRegistryRequestsAnswers() : boolean
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract::checkRegistryRequestsAnswers() |
---|
boolean
False if required are missing.checkRegistryRequestsAnswers() : boolean
boolean
False if required are missing.getHtmlOutput(\Zend_View_Abstract $view) : \MUtil_Html_HtmlInterface
This is a stub function either override getHtmlOutput() or override render()
\Zend_View_Abstract
Just in case it is needed here
\MUtil_Html_HtmlInterface
Something that can be renderedgetTopic(integer $count = 1
) : \$string
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract::getTopic() |
---|
integer
\$string
getTopic(integer $count = 1
) : \$string
integer
\$string
hasHtmlOutput() : boolean
When invalid data should result in an error, you can throw it here but you can also perform the check in the checkRegistryRequestsAnswers() function from the \MUtil_Registry_TargetInterface.
boolean
addFormElements(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model)
Overrule this function to add different elements to the browse table, without having to recode the core table building code.
\MUtil_Model_Bridge_FormBridgeInterface
\MUtil_Model_ModelAbstract
addSaveButton()
As the save button is not part of the model - but of the interface - it does deserve it's own function.
afterSave(integer $changed)
When not rerouted, the form will be populated afterwards
integer
The number of changed rows (0 or 1 usually, but can be more)
createForm(mixed $options = null
) : \Zend_Form
mixed
\Zend_Form
createModel() : \MUtil_Model_ModelAbstract
\MUtil_Model_ModelAbstract
getMenuList() : \Gems_Menu_MenuList
\Gems_Menu_MenuList
getTitle() : string
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract::getTitle() |
---|
string
The header title to displaygetTitle() : string
string
loadFormData()
Or from whatever other source you specify here.
setAfterSaveRoute() : \Gems_Snippets_ModelFormSnippetAbstract
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract::setAfterSaveRoute() |
---|
\Gems_Snippets_ModelFormSnippetAbstract
setAfterSaveRoute() : \Gems_Snippets_ModelFormSnippetAbstract
\Gems_Snippets_ModelFormSnippetAbstract
$accesslog : \Gems_AccessLog
$class : string
'formTable'
$formTitle : string
$loader : \Gems_Loader
$organizationId : integer
$patientId : string
$project : \Gems_Project_ProjectSettings
$request : \Zend_Controller_Request_Abstract
$respondent : \Gems_Tracker_Respondent
$respondentTrack : \Gems_Tracker_RespondentTrack
$respondentTrackId : integer
$routeAction : string
'show-track'
inherited_from | \Gems_Snippets_ModelFormSnippetAbstract::routeAction |
---|
$routeAction : string
'show'
$topicCallable : callable
$trackEngine : \Gems_Tracker_Engine_TrackEngineInterface
$trackId : integer
$useTabbedForm : boolean
false
$userId : integer
$util : \Gems_Util