public function reorderEmployeeTree($verify = true) {
		set_time_limit(REORDER_TREE_EMPLOYEE_TIME_LIMIT);
		if ($verify && ($this->verify() !== true)) {
			return false;
		}

		$dataSource = $this->getDataSource();
		$dataSource->begin();
		$result = $this->reorder(['verify' => false]);
		if ($result) {
			$dataSource->commit();
			$event = new CakeEvent('Model.afterUpdateTree', $this);
			$this->getEventManager()->dispatch($event);
		} else {
			$dataSource->rollback();
		}

		return $result;
	}
public function reorderEmployeeTree($verify = true) {
		set_time_limit(REORDER_TREE_EMPLOYEE_TIME_LIMIT);
		if ($verify && ($this->verify() !== true)) {
			return false;
		}

		$dataSource = $this->getDataSource();
		$dataSource->begin();
		$result = $this->reorder(['verify' => false]);
		if ($result) {
			$dataSource->commit();
			$event = new CakeEvent('Model.afterUpdateTree', $this);
			$this->getEventManager()->dispatch($event);
		} else {
			$dataSource->rollback();
		}

		return $result;
	}
public function reorderEmployeeTree ( $ verify = true ) { set_time_limit ( REORDER_TREE_EMPLOYEE_TIME_LIMIT ) ; if ( $ verify && ( $ this -> verify ( ) !== true ) ) { return false ; } $ dataSource = $ this -> getDataSource ( ) ; $ dataSource -> begin ( ) ; $ result = $ this -> reorder ( [ 'verify' => false ] ) ; if ( $ result ) { $ dataSource -> commit ( ) ; $ event = new CakeEvent ( 'Model.afterUpdateTree' , $ this ) ; $ this -> getEventManager ( ) -> dispatch ( $ event ) ; } else { $ dataSource -> rollback ( ) ; } return $ result ; }
Reorder tree of subordinate employees.

@param bool $verify Whether or not to verify the tree before reorder.
@return bool true on success, false on failure
Reorder tree of subordinate employees .