Standard controller for database creation and maintenance.
| package | Gems |
|---|---|
| subpackage | Default |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.0 |
| inherited_from | \Gems_Controller_ModelSnippetActionAbstract |
autofilterAction($resetMvc = true)
When true only the filtered resulsts
createAction()
createDataTable($tableName, $caption, \Zend_Db_Adapter_Abstract $db)
createForm(array $options = null) : \Gems_Form
Hack to get everything working without BrowseEditAction
array
\Gems_FormcreateModel(boolean $detailed, string $action) : \MUtil_Model_ModelAbstract
The parameters allow you to easily adapt the model to the current action. The $detailed parameter was added, because the most common use of action is a split between detailed and summarized actions.
booleanTrue when the current action is not in $summarizedActions.
stringThe current action.
\MUtil_Model_ModelAbstractcreateShowLink($for)
deactivateAction()
deleteAction()
| inherited_from | \Gems_Controller_ModelSnippetActionAbstract::deleteAction() |
|---|
deleteAction()
editAction()
excelAction()
When you want to change the output, there are two places to check:
$this->addExcelColumns($model), where the model can be changed to have labels for columns you need exported
exportAction()
getCreateTitle() : \$string
\$stringgetDeactivateQuestion() : \$string
\$stringgetDeactivateTitle() : \$string
\$stringgetDefaultImportTranslator() : string
stringgetDeleteQuestion() : \$string
\$stringgetDeleteTitle() : \$string
\$stringgetEditTitle() : \$string
\$stringgetFieldTable($id)
getImportTempDirectory() : string
stringgetImportTranslators() : array
arrayof \MUtil_Model_ModelTranslatorInterface objectsgetImporter() : \MUtil_Model_Importer
\MUtil_Model_ImportergetIndexTitle() : \$string
| inherited_from | \Gems_Controller_ModelSnippetActionAbstract::getIndexTitle() |
|---|
\$stringgetIndexTitle() : \$string
\$stringgetInstanceId() : mixed
Overrule this function if the last item in the page title should be something other than te value of \MUtil_Model::REQUEST_ID.
mixedgetOnEmptyText() : string
stringgetReactivateQuestion() : \$string
\$stringgetReactivateTitle() : \$string
\$stringgetShowTable(integer $columns= 1, mixed $filter= null, mixed $sort= null) : \MUtil_Html_TableElement
It can and will display multiple items, but that is not what this function is for.
integerThe number of columns to use for presentation
mixedA valid filter for \MUtil_Model_ModelAbstract->load()
mixedA valid sort for \MUtil_Model_ModelAbstract->load()
\MUtil_Html_TableElementgetShowTitle() : \$string
\$stringgetTitle(string $separator = null) : string
If the title is an array the seperator concatenates the parts.
string
stringgetTopic(integer $count = 1) : \$string
| inherited_from | \Gems_Controller_ModelSnippetActionAbstract::getTopic() |
|---|
integer
\$stringgetTopic(integer $count = 1) : \$string
integer
\$stringgetTopicCallable() : callable
callableimportAction()
indexAction()
initHtml(boolean $reset = false) : void
booleanThrows away any existing html output when true
isConfirmedItem(string $title, string $question= null, string $info= null) : boolean
string
string
string
booleanpatchAction()
reactivateAction()
refreshTranslationsAction()
runAction()
runAllAction()
runSqlAction()
showAction()
| inherited_from | \Gems_Controller_ModelSnippetActionAbstract::showAction() |
|---|
showAction()
showChangesAction()
viewAction()
createMenuLinks(integer $includeLevel= 2, string $parentLabel= true) : array
integer
string
arrayfirstAllowedMenuItem(string $action, string $action2 = null) : \Gems_Menu_SubMenuItem
string
string
\Gems_Menu_SubMenuItemgetExcelData(array $data, \MUtil_Model_ModelAbstract $model) : array
array
\MUtil_Model_ModelAbstract
arraygetExportModel() :
loadSnippetLoader()
_cleanCache() : void
As a lot of cache depends on the database, it is best to clean the cache now since import tables might have changed.
_setMenuParameters(array $data)
arrayThe current model item
$accesslog : \Gems_AccessLog
$db : \Zend_Db_Adapter_Abstract
$escort : \GemsEscort
$formatExcelData : boolean
true$loader : \Gems_Loader
$request : \Zend_Controller_Request_Abstract
$sortKey : array
array('group' => SORT_ASC, 'type' => SORT_ASC, 'name' => SORT_ASC)$util : \Gems_Util
$autofilterParameters : mixed
array('extraSort' => array('group' => SORT_ASC, 'type' => SORT_ASC, 'name' => SORT_ASC))$autofilterSnippets : mixed
'ModelTableSnippetGeneric'$createEditSnippets : mixed
'ModelFormSnippetGeneric'$deleteSnippets : mixed
'ModelItemYesNoDeleteSnippetGeneric'$exportFormSnippets
'Export\\ExportFormSnippet'$indexStartSnippets : mixed
array('Generic\\ContentTitleSnippet', 'AutosearchFormSnippet')$indexStopSnippets : mixed
'Generic\\CurrentSiblingsButtonRowSnippet'$showSnippets : mixed
array('Generic\\ContentTitleSnippet', 'ModelItemTableSnippetGeneric')$_autofilterExtraParameters : array
array('browse' => true, 'containingId' => 'autofilter_target', 'keyboard' => true, 'onEmpty' => 'getOnEmptyText', 'sortParamAsc' => 'asrt', 'sortParamDesc' => 'dsrt')$_createExtraParameters : array
array('formTitle' => 'getCreateTitle', 'topicCallable' => 'getTopicCallable')$_deactivateExtraParameters : array
array('confirmQuestion' => 'getDeactivateQuestion', 'displayTitle' => 'getDeactivateTitle', 'formTitle' => 'getDeactivateTitle', 'topicCallable' => 'getTopicCallable')$_deleteExtraParameters : array
array('deleteQuestion' => 'getDeleteQuestion', 'displayTitle' => 'getDeleteTitle', 'formTitle' => 'getDeleteTitle', 'topicCallable' => 'getTopicCallable')$_editExtraParameters : array
array('formTitle' => 'getEditTitle', 'topicCallable' => 'getTopicCallable')$_importExtraParameters : array
array('formatBoxClass' => 'browser table', 'importer' => 'getImporter', 'tempDirectory' => 'getImportTempDirectory', 'topicCallable' => 'getTopic')$_reactivateExtraParameters : array
array('confirmQuestion' => 'getReactivateQuestion', 'displayTitle' => 'getReactivateTitle', 'formTitle' => 'getReactivateTitle', 'topicCallable' => 'getTopicCallable')