Adding execute function to interface

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3457 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2006-09-10 14:11:21 +00:00
parent 4df649dae5
commit 5dcd93f0ff

View file

@ -26,13 +26,20 @@
* @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
class BakeTask {
/**
class BakeTask {
/**
* Override this function in subclasses to implement the task logic.
* @param array $params The command line params (without script and task name).
*/
function execute($params) {
// empty
}
/**
* Override this function in subclasses to provide a help message for your task.
*/
function help()
{
function help() {
echo "There is no help available for the specified task.\n";
}
}
}