public function setProgressSseTask($taskName = null) {
		if (empty($taskName)) {
			return false;
		}

		$tasks = (array)CakeSession::read('SSE.progress');
		if (in_array($taskName, $tasks)) {
			return true;
		}

		$tasks[] = $taskName;

		return CakeSession::write('SSE.progress', $tasks);
	}
public function setProgressSseTask($taskName = null) {
		if (empty($taskName)) {
			return false;
		}

		$tasks = (array)CakeSession::read('SSE.progress');
		if (in_array($taskName, $tasks)) {
			return true;
		}

		$tasks[] = $taskName;

		return CakeSession::write('SSE.progress', $tasks);
	}
public function setProgressSseTask ( $ taskName = null ) { if ( empty ( $ taskName ) ) { return false ; } $ tasks = ( array ) CakeSession :: read ( 'SSE.progress' ) ; if ( in_array ( $ taskName , $ tasks ) ) { return true ; } $ tasks [ ] = $ taskName ; return CakeSession :: write ( 'SSE.progress' , $ tasks ) ; }
Set task to display the progress of execution from task queue

@param string $taskName Name of task
@return bool Success
Set task to display the progress of execution from task queue