public function index() {
		$groupActions = [
			'group-data-del' => __d('cake_settings_app', 'Delete selected tasks')
		];
		$conditions = $this->Filter->getFilterConditions('CakeTheme');
		$usePost = true;
		if ($this->request->is('post')) {
			$groupAction = $this->Filter->getGroupAction(array_keys($groupActions));
			$resultGroupProcess = $this->QueueInfo->processGroupAction($groupAction, $conditions);
			if ($resultGroupProcess !== null) {
				if ($resultGroupProcess) {
					$conditions = null;
					$this->Flash->success(__d('cake_settings_app', 'Selected tasks has been deleted.'));
				} else {
					$this->Flash->error(__d('cake_settings_app', 'Selected tasks could not be deleted. Please, try again.'));
				}
			}
		} else {
			if (!empty($conditions)) {
				$usePost = false;
			}
		}
		$this->Paginator->settings = $this->paginate;
		$queue = $this->Paginator->paginate('QueueInfo', $conditions);
		$taskStateList = $this->QueueInfo->getListTaskState();
		$stateData = [];
		if ($usePost) {
			$stateData = $this->QueueInfo->getBarStateInfo();
		}
		$pageHeader = __d('cake_settings_app', 'Queue of tasks');
		$headerMenuActions = [];
		if (!empty($queue)) {
			$headerMenuActions[] = [
				'fas fa-trash-alt',
				__d('cake_settings_app', 'Clear queue of tasks'),
				['controller' => 'queues', 'action' => 'clear', 'plugin' => 'cake_settings_app', 'prefix' => false],
				[
					'title' => __d('cake_settings_app', 'Clear queue of tasks'),
					'action-type' => 'confirm-post',
					'data-confirm-msg' => __d('cake_settings_app', 'Are you sure you wish to clear queue of tasks?'),
				]
			];
		}
		$breadCrumbs = $this->Setting->getBreadcrumbInfo();
		$breadCrumbs[] = __d('cake_settings_app', 'Queue of tasks');

		$this->set(compact(
			'queue',
			'groupActions',
			'taskStateList',
			'stateData',
			'usePost',
			'pageHeader',
			'headerMenuActions',
			'breadCrumbs'
		));
	}
public function index() {
		$groupActions = [
			'group-data-del' => __d('cake_settings_app', 'Delete selected tasks')
		];
		$conditions = $this->Filter->getFilterConditions('CakeTheme');
		$usePost = true;
		if ($this->request->is('post')) {
			$groupAction = $this->Filter->getGroupAction(array_keys($groupActions));
			$resultGroupProcess = $this->QueueInfo->processGroupAction($groupAction, $conditions);
			if ($resultGroupProcess !== null) {
				if ($resultGroupProcess) {
					$conditions = null;
					$this->Flash->success(__d('cake_settings_app', 'Selected tasks has been deleted.'));
				} else {
					$this->Flash->error(__d('cake_settings_app', 'Selected tasks could not be deleted. Please, try again.'));
				}
			}
		} else {
			if (!empty($conditions)) {
				$usePost = false;
			}
		}
		$this->Paginator->settings = $this->paginate;
		$queue = $this->Paginator->paginate('QueueInfo', $conditions);
		$taskStateList = $this->QueueInfo->getListTaskState();
		$stateData = [];
		if ($usePost) {
			$stateData = $this->QueueInfo->getBarStateInfo();
		}
		$pageHeader = __d('cake_settings_app', 'Queue of tasks');
		$headerMenuActions = [];
		if (!empty($queue)) {
			$headerMenuActions[] = [
				'fas fa-trash-alt',
				__d('cake_settings_app', 'Clear queue of tasks'),
				['controller' => 'queues', 'action' => 'clear', 'plugin' => 'cake_settings_app', 'prefix' => false],
				[
					'title' => __d('cake_settings_app', 'Clear queue of tasks'),
					'action-type' => 'confirm-post',
					'data-confirm-msg' => __d('cake_settings_app', 'Are you sure you wish to clear queue of tasks?'),
				]
			];
		}
		$breadCrumbs = $this->Setting->getBreadcrumbInfo();
		$breadCrumbs[] = __d('cake_settings_app', 'Queue of tasks');

		$this->set(compact(
			'queue',
			'groupActions',
			'taskStateList',
			'stateData',
			'usePost',
			'pageHeader',
			'headerMenuActions',
			'breadCrumbs'
		));
	}
public function index ( ) { $ groupActions = [ 'group-data-del' => __d ( 'cake_settings_app' , 'Delete selected tasks' ) ] ; $ conditions = $ this -> Filter -> getFilterConditions ( 'CakeTheme' ) ; $ usePost = true ; if ( $ this -> request -> is ( 'post' ) ) { $ groupAction = $ this -> Filter -> getGroupAction ( array_keys ( $ groupActions ) ) ; $ resultGroupProcess = $ this -> QueueInfo -> processGroupAction ( $ groupAction , $ conditions ) ; if ( $ resultGroupProcess !== null ) { if ( $ resultGroupProcess ) { $ conditions = null ; $ this -> Flash -> success ( __d ( 'cake_settings_app' , 'Selected tasks has been deleted.' ) ) ; } else { $ this -> Flash -> error ( __d ( 'cake_settings_app' , 'Selected tasks could not be deleted. Please, try again.' ) ) ; } } } else { if ( ! empty ( $ conditions ) ) { $ usePost = false ; } } $ this -> Paginator -> settings = $ this -> paginate ; $ queue = $ this -> Paginator -> paginate ( 'QueueInfo' , $ conditions ) ; $ taskStateList = $ this -> QueueInfo -> getListTaskState ( ) ; $ stateData = [ ] ; if ( $ usePost ) { $ stateData = $ this -> QueueInfo -> getBarStateInfo ( ) ; } $ pageHeader = __d ( 'cake_settings_app' , 'Queue of tasks' ) ; $ headerMenuActions = [ ] ; if ( ! empty ( $ queue ) ) { $ headerMenuActions [ ] = [ 'fas fa-trash-alt' , __d ( 'cake_settings_app' , 'Clear queue of tasks' ) , [ 'controller' => 'queues' , 'action' => 'clear' , 'plugin' => 'cake_settings_app' , 'prefix' => false ] , [ 'title' => __d ( 'cake_settings_app' , 'Clear queue of tasks' ) , 'action-type' => 'confirm-post' , 'data-confirm-msg' => __d ( 'cake_settings_app' , 'Are you sure you wish to clear queue of tasks?' ) , ] ] ; } $ breadCrumbs = $ this -> Setting -> getBreadcrumbInfo ( ) ; $ breadCrumbs [ ] = __d ( 'cake_settings_app' , 'Queue of tasks' ) ; $ this -> set ( compact ( 'queue' , 'groupActions' , 'taskStateList' , 'stateData' , 'usePost' , 'pageHeader' , 'headerMenuActions' , 'breadCrumbs' ) ) ; }
Action `index`. Used to view queue of task

@return void
Action index . Used to view queue of task