TYPO3 CMS  TYPO3_6-2
AbstractController.php
Go to the documentation of this file.
1 <?php
3 
22 
23  const TRIGGER_RefreshModuleMenu = 'refreshModuleMenu';
24 
28  protected $triggerArguments = array(
29  self::TRIGGER_RefreshModuleMenu,
30  );
31 
38  protected function resolveView() {
39  $view = parent::resolveView();
40  $view->assignMultiple(array(
41  'extensionName' => $this->request->getControllerExtensionName(),
42  'controllerName' => $this->request->getControllerName(),
43  'actionName' => $this->request->getControllerActionName()
44  ));
45  return $view;
46  }
47 
55  protected function translate($key, $arguments = NULL) {
56  return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'extensionmanager', $arguments);
57  }
58 
66  protected function handleTriggerArguments() {
67  $triggers = array();
68 
69  foreach ($this->triggerArguments as $triggerArgument) {
70  if ($this->request->hasArgument($triggerArgument)) {
71  $triggers[$triggerArgument] = $this->request->getArgument($triggerArgument);
72  }
73  }
74 
75  $this->view->assign('triggers', $triggers);
76  }
77 }