Displays each fields of a single item in a model in a row in a Html table the model set through the $model snippet parameter.
If you want to use this class "as is" use the 'Generic_ModelItemTableSnippet' snippet.
This class is not in the standard snippet loading directories and does not follow their naming conventions, but exists only to make it simple to extend this class for a specific implementation.
| package | Gems |
|---|---|
| subpackage | Snippets\Agenda |
| copyright | Copyright (c) 2015 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6.5 13-mrt-2015 11:11:12 |
| inherited_from | \Gems_Snippets_ModelItemTableSnippetGeneric |
getHtmlOutput(\Zend_View_Abstract $view) : \MUtil_Html_HtmlInterface
This is a stub function either override getHtmlOutput() or override render()
\Zend_View_AbstractJust in case it is needed here
\MUtil_Html_HtmlInterfaceSomething that can be renderedgetRedirectRoute() : mixed
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.
booleanaddShowTableRows(\MUtil_Model_Bridge_VerticalTableBridge $bridge, \MUtil_Model_ModelAbstract $model) : void
Overrule this function to add different columns to the browse table, without having to recode the core table building code.
\MUtil_Model_Bridge_VerticalTableBridge
\MUtil_Model_ModelAbstract
createModel() : \MUtil_Model_ModelAbstract
\MUtil_Model_ModelAbstractfindMenuItem(string $controller, string $action = 'index') : \Gems_Menu_SubMenuItem
string
string
\Gems_Menu_SubMenuItemgetEditMenuItem() : \Gems_Menu_SubMenuItem
\Gems_Menu_SubMenuItemgetTitle() : string
stringgetWhere() : string
stringperformAction()
setAfterCleanupRoute()
$abortAction : string
'show'If you want to change to another controller you'll have to code it.
$addOnclickEdit : boolean
true$afterSaveRouteUrl : mixed
$bridgeMode : integer
\MUtil_Model_Bridge_BridgeAbstract::MODE_SINGLE_ROW$cache : \Zend_Cache_Core
$class : string
'displayer'$class : string
'displayer table'$cleanupAction : string
'show'If you want to change to another controller you'll have to code it.
$confirmParameter : string
'confirmed'$db : \Zend_Db_Adapter_Abstract
$displayMenu : boolean
true$displayTitle : string
$filterOn : string | array
$filterWhen : string
$loader : \Gems_Loader
$model : \MUtil_Model_ModelAbstract
$request : \Zend_Controller_Request_Abstract