2 namespace TYPO3\CMS\Install\Status;
32 $orderedStatus = array(
33 'alert' => $this->filterBySeverity($statusObjects,
'alert'),
34 'error' => $this->filterBySeverity($statusObjects,
'error'),
35 'warning' => $this->filterBySeverity($statusObjects,
'warning'),
36 'ok' => $this->filterBySeverity($statusObjects,
'ok'),
37 'information' => $this->filterBySeverity($statusObjects,
'information'),
38 'notice' => $this->filterBySeverity($statusObjects,
'notice'),
40 return $orderedStatus;
51 public function filterBySeverity(array $statusObjects = array(), $severity =
'ok')
53 $filteredObjects = array();
55 foreach ($statusObjects as $status) {
58 'Object must implement StatusInterface',
62 if ($status->getSeverity() === $severity) {
63 $filteredObjects[] = $status;
66 return $filteredObjects;