TYPO3 CMS  TYPO3_6-2
PagetreeCollectionsProcessor.php
Go to the documentation of this file.
1 <?php
3 
19 
26 
30  protected $workspaceService = NULL;
31 
40  public function postProcessGetNodes($node, $mountPoint, $level, $nodeCollection) {
41  foreach ($nodeCollection as $node) {
43  $this->highlightVersionizedElements($node);
44  }
45  }
46 
55  public function postProcessFilteredNodes($node, $searchFilter, $mountPoint, $nodeCollection) {
56  foreach ($nodeCollection as $node) {
58  $this->highlightVersionizedElements($node);
59  }
60  }
61 
68  public function postProcessGetTreeMounts($searchFilter, $nodeCollection) {
69  foreach ($nodeCollection as $node) {
71  $this->highlightVersionizedElements($node);
72  }
73  }
74 
82  protected function highlightVersionizedElements(\TYPO3\CMS\Backend\Tree\TreeNode $node) {
83  if (!$node->getCls() && $this->getWorkspaceService()->hasPageRecordVersions($GLOBALS['BE_USER']->workspace, $node->getId())) {
84  $node->setCls('ver-versions');
85  }
86  }
87 
91  protected function getWorkspaceService() {
92  if ($this->workspaceService === NULL) {
93  $this->workspaceService = GeneralUtility::makeInstance('TYPO3\\CMS\\Workspaces\\Service\\WorkspaceService');
94  }
95 
97  }
98 
99 }
postProcessFilteredNodes($node, $searchFilter, $mountPoint, $nodeCollection)
postProcessGetNodes($node, $mountPoint, $level, $nodeCollection)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]