Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Cake
Console
Shell
hasTask
Cake\Console\Shell::hasTask PHP Method
Shell Class Documentation
Show file
Open project: cakephp/cakephp
hasTask()
public
method
Check to see if this shell has a task with the provided name.
See link:
http://book.cakephp.org/3.0/en/console-and-shells.html#shell-tasks
public
hasTask
(
string
$task
) :
boolean
$task
string
The task name to check.
return
boolean
Success
public function hasTask($task) { return isset($this->_taskMap[Inflector::camelize($task)]); }
Shell
__construct
__debugInfo
__get
_displayHelp
_setOutputLevel
_stop
_welcome
abort
clear
createFile
dispatchShell
err
error
getOptionParser
hasMethod
hasTask
helper
hr
in
info
initialize
io
loadTasks
nl
out
param
parseDispatchArguments
quiet
runCommand
shortPath
startup
success
verbose
warn
wrapText