public function actionOrder() {
		if (!$this->_modelConfigSync->getFlagTreeSubordinateEnable()) {
			throw new InternalErrorException(__d('cake_ldap', 'The database does not contain information on the tree view'));
		}

		$this->_controller->request->allowMethod('post');
		$modelQueuedTask = ClassRegistry::init('Queue.QueuedTask');
		if ((bool)$modelQueuedTask->createJob('OrderEmployee', null, null, 'order')) {
			$this->_controller->Flash->success(__d('cake_ldap', 'Order tree of employees put in queue...'));
			$this->_controller->ViewExtension->setProgressSseTask('OrderEmployee');
		} else {
			$this->_controller->Flash->error(__d('cake_ldap', 'Order tree of employees put in queue unsuccessfully'));
		}
		$redirectUrl = ['controller' => 'employees', 'action' => 'tree'];

		return $this->_controller->redirect($redirectUrl);
	}
public function actionOrder() {
		if (!$this->_modelConfigSync->getFlagTreeSubordinateEnable()) {
			throw new InternalErrorException(__d('cake_ldap', 'The database does not contain information on the tree view'));
		}

		$this->_controller->request->allowMethod('post');
		$modelQueuedTask = ClassRegistry::init('Queue.QueuedTask');
		if ((bool)$modelQueuedTask->createJob('OrderEmployee', null, null, 'order')) {
			$this->_controller->Flash->success(__d('cake_ldap', 'Order tree of employees put in queue...'));
			$this->_controller->ViewExtension->setProgressSseTask('OrderEmployee');
		} else {
			$this->_controller->Flash->error(__d('cake_ldap', 'Order tree of employees put in queue unsuccessfully'));
		}
		$redirectUrl = ['controller' => 'employees', 'action' => 'tree'];

		return $this->_controller->redirect($redirectUrl);
	}
public function actionOrder ( ) { if ( ! $ this -> _modelConfigSync -> getFlagTreeSubordinateEnable ( ) ) { throw new InternalErrorException ( __d ( 'cake_ldap' , 'The database does not contain information on the tree view' ) ) ; } $ this -> _controller -> request -> allowMethod ( 'post' ) ; $ modelQueuedTask = ClassRegistry :: init ( 'Queue.QueuedTask' ) ; if ( ( bool ) $ modelQueuedTask -> createJob ( 'OrderEmployee' , null , null , 'order' ) ) { $ this -> _controller -> Flash -> success ( __d ( 'cake_ldap' , 'Order tree of employees put in queue...' ) ) ; $ this -> _controller -> ViewExtension -> setProgressSseTask ( 'OrderEmployee' ) ; } else { $ this -> _controller -> Flash -> error ( __d ( 'cake_ldap' , 'Order tree of employees put in queue unsuccessfully' ) ) ; } $ redirectUrl = [ 'controller' => 'employees' , 'action' => 'tree' ] ; return $ this -> _controller -> redirect ( $ redirectUrl ) ; }
Action `order`. Used to reorder tree of subordinate employees.

@throws InternalErrorException if tree of subordinate is disabled
@return void
Action order . Used to reorder tree of subordinate employees .