View/Helper/TaskHelper.php
public function waiting(array $tasks, $full = true) {
		$formattedTasks = $this->_formatWaiting($tasks, true);
		$tasksCount = count($formattedTasks);
		if ($tasksCount === 0) {
			return $this->_none();
		}

		if ($this->_isCli) {
			return implode(', ', $formattedTasks);
		} elseif ($full) {
			return implode(', ', $this->_formatWaiting($tasks, false));
		} else {
			$text = implode(', ', $this->_formatWaiting(array_slice($tasks, 0, Configure::read('Task.truncateWaitFor')), false));
			$text .= $tasksCount > Configure::read('Task.truncateWaitFor') ? '...' : '';
			return $this->Html->tag('span', $text, array(
						'title' => implode(', ', $formattedTasks)
			));
		}
	}
public function waiting(array $tasks, $full = true) {
		$formattedTasks = $this->_formatWaiting($tasks, true);
		$tasksCount = count($formattedTasks);
		if ($tasksCount === 0) {
			return $this->_none();
		}

		if ($this->_isCli) {
			return implode(', ', $formattedTasks);
		} elseif ($full) {
			return implode(', ', $this->_formatWaiting($tasks, false));
		} else {
			$text = implode(', ', $this->_formatWaiting(array_slice($tasks, 0, Configure::read('Task.truncateWaitFor')), false));
			$text .= $tasksCount > Configure::read('Task.truncateWaitFor') ? '...' : '';
			return $this->Html->tag('span', $text, array(
						'title' => implode(', ', $formattedTasks)
			));
		}
	}
public function waiting ( array $ tasks , $ full = true ) { $ formattedTasks = $ this -> _formatWaiting ( $ tasks , true ) ; $ tasksCount = count ( $ formattedTasks ) ; if ( $ tasksCount === 0 ) { return $ this -> _none ( ) ; } if ( $ this -> _isCli ) { return implode ( ', ' , $ formattedTasks ) ; } elseif ( $ full ) { return implode ( ', ' , $ this -> _formatWaiting ( $ tasks , false ) ) ; } else { $ text = implode ( ', ' , $ this -> _formatWaiting ( array_slice ( $ tasks , 0 , Configure :: read ( 'Task.truncateWaitFor' ) ) , false ) ) ; $ text .= $ tasksCount > Configure :: read ( 'Task.truncateWaitFor' ) ? '...' : '' ; return $ this -> Html -> tag ( 'span' , $ text , array ( 'title' => implode ( ', ' , $ formattedTasks ) ) ) ; } }
Waiting for tasks

@param array $tasks
@param bool $full
@return string
Waiting for tasks