TYPO3 CMS  TYPO3_6-2
TaskStatus.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Taskcenter;
3 
22 class TaskStatus {
23 
31  public function saveCollapseState(array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj) {
32  // Remove 'el_' in the beginning which is needed for the saveSortingState()
33  $item = substr(htmlspecialchars(\TYPO3\CMS\Core\Utility\GeneralUtility::_POST('item')), 3);
34  $state = (bool) \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('state');
35  $GLOBALS['BE_USER']->uc['taskcenter']['states'][$item] = $state;
36  $GLOBALS['BE_USER']->writeUC();
37  }
38 
46  public function saveSortingState(array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj) {
47  $sort = array();
48  $items = explode('&', \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('data'));
49  foreach ($items as $item) {
50  $sort[] = substr($item, 12);
51  }
52  $GLOBALS['BE_USER']->uc['taskcenter']['sorting'] = serialize($sort);
53  $GLOBALS['BE_USER']->writeUC();
54  }
55 
56 }
saveCollapseState(array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
Definition: TaskStatus.php:31
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
if($ajaxRegistryEntry !==NULL) $ajaxObj
Definition: ajax.php:63
saveSortingState(array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
Definition: TaskStatus.php:46