TYPO3 CMS  TYPO3_6-2
UpdateFromTerController.php
Go to the documentation of this file.
1 <?php
3 
22 
27  protected $repositoryHelper;
28 
34 
39  protected $listUtility;
40 
46 
53  public function updateExtensionListFromTerAction($forceUpdateCheck = FALSE) {
54  $updated = FALSE;
55  $errorMessage = '';
56 
57  if ($this->extensionRepository->countAll() === 0 || $forceUpdateCheck) {
58  try {
59  $updated = $this->repositoryHelper->updateExtList();
60  } catch (\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException $e) {
61  $errorMessage = $e->getMessage();
62  }
63  }
65  $repository = $this->repositoryRepository->findByUid((int)$this->settings['repositoryUid']);
66  $this->view->assign('updated', $updated)
67  ->assign('repository', $repository)
68  ->assign('errorMessage', $errorMessage);
69  }
70 }