TYPO3 CMS  TYPO3_6-2
Indicator.php
Go to the documentation of this file.
1 <?php
3 
21 class Indicator {
22 
28  protected $indicatorProviders = array();
29 
33  public function __construct() {
34  $this->getIndicatorProviders();
35  }
36 
40  protected function getIndicatorProviders() {
41  $providers = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['pagetree']['t3lib_tree_pagetree']['indicator']['providers'];
42  if (!is_array($providers)) {
43  return;
44  }
45  foreach ($providers as $indicatorProvider) {
47  $indicatorProviderInstance = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($indicatorProvider);
48  if ($indicatorProviderInstance instanceof \TYPO3\CMS\Backend\Tree\Pagetree\IndicatorProviderInterface) {
49  $this->indicatorProviders[] = $indicatorProviderInstance;
50  }
51  }
52  }
53 
59  public function getAllIndicators() {
60  $indicators = array();
61  foreach ($this->indicatorProviders as $indicatorProvider) {
62  $indicator = $indicatorProvider->getIndicator();
63  if ($indicator) {
64  $indicators[] = $indicator;
65  }
66  }
67  return $indicators;
68  }
69 
70 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]