src/Shell/QueueShell.php
protected function _getTaskConf() {
		if (!is_array($this->_taskConf)) {
			$this->_taskConf = [];
			foreach ($this->tasks as $task) {
				list($pluginName, $taskName) = pluginSplit($task);

				$this->_taskConf[$taskName]['name'] = substr($taskName, 5);
				$this->_taskConf[$taskName]['plugin'] = $pluginName;
				if (property_exists($this->{$taskName}, 'timeout')) {
					$this->_taskConf[$taskName]['timeout'] = $this->{$taskName}->timeout;
				} else {
					$this->_taskConf[$taskName]['timeout'] = Config::defaultworkertimeout();
				}
				if (property_exists($this->{$taskName}, 'retries')) {
					$this->_taskConf[$taskName]['retries'] = $this->{$taskName}->retries;
				} else {
					$this->_taskConf[$taskName]['retries'] = Config::defaultworkerretries();
				}
				if (property_exists($this->{$taskName}, 'rate')) {
					$this->_taskConf[$taskName]['rate'] = $this->{$taskName}->rate;
				}
			}
		}
		return $this->_taskConf;
	}
protected function _getTaskConf() {
		if (!is_array($this->_taskConf)) {
			$this->_taskConf = [];
			foreach ($this->tasks as $task) {
				list($pluginName, $taskName) = pluginSplit($task);

				$this->_taskConf[$taskName]['name'] = substr($taskName, 5);
				$this->_taskConf[$taskName]['plugin'] = $pluginName;
				if (property_exists($this->{$taskName}, 'timeout')) {
					$this->_taskConf[$taskName]['timeout'] = $this->{$taskName}->timeout;
				} else {
					$this->_taskConf[$taskName]['timeout'] = Config::defaultworkertimeout();
				}
				if (property_exists($this->{$taskName}, 'retries')) {
					$this->_taskConf[$taskName]['retries'] = $this->{$taskName}->retries;
				} else {
					$this->_taskConf[$taskName]['retries'] = Config::defaultworkerretries();
				}
				if (property_exists($this->{$taskName}, 'rate')) {
					$this->_taskConf[$taskName]['rate'] = $this->{$taskName}->rate;
				}
			}
		}
		return $this->_taskConf;
	}
protected function _getTaskConf ( ) { if ( ! is_array ( $ this -> _taskConf ) ) { $ this -> _taskConf = [ ] ; foreach ( $ this -> tasks as $ task ) { list ( $ pluginName , $ taskName ) = pluginSplit ( $ task ) ; $ this -> _taskConf [ $ taskName ] [ 'name' ] = substr ( $ taskName , 5 ) ; $ this -> _taskConf [ $ taskName ] [ 'plugin' ] = $ pluginName ; if ( property_exists ( $ this -> { $ taskName } , 'timeout' ) ) { $ this -> _taskConf [ $ taskName ] [ 'timeout' ] = $ this -> { $ taskName } -> timeout ; } else { $ this -> _taskConf [ $ taskName ] [ 'timeout' ] = Config :: defaultworkertimeout ( ) ; } if ( property_exists ( $ this -> { $ taskName } , 'retries' ) ) { $ this -> _taskConf [ $ taskName ] [ 'retries' ] = $ this -> { $ taskName } -> retries ; } else { $ this -> _taskConf [ $ taskName ] [ 'retries' ] = Config :: defaultworkerretries ( ) ; } if ( property_exists ( $ this -> { $ taskName } , 'rate' ) ) { $ this -> _taskConf [ $ taskName ] [ 'rate' ] = $ this -> { $ taskName } -> rate ; } } } return $ this -> _taskConf ; }
Returns a List of available QueueTasks and their individual configurations.

@return array
Returns a List of available QueueTasks and their individual configurations .