From 5dcd93f0ffb9d64cb3d01353de399339a689ffa3 Mon Sep 17 00:00:00 2001 From: dho Date: Sun, 10 Sep 2006 14:11:21 +0000 Subject: [PATCH] Adding execute function to interface git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3457 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/scripts/tasks/bake_task.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/cake/scripts/tasks/bake_task.php b/cake/scripts/tasks/bake_task.php index 38acb6929..88ec581a5 100644 --- a/cake/scripts/tasks/bake_task.php +++ b/cake/scripts/tasks/bake_task.php @@ -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"; } - } \ No newline at end of file +} \ No newline at end of file