2006-08-17 08:32:51 +00:00
|
|
|
<?php
|
|
|
|
/* SVN FILE: $Id$ */
|
|
|
|
/**
|
|
|
|
* Base class for bake tasks.
|
|
|
|
*
|
|
|
|
* Long description for file
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2007-02-02 10:39:45 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
2006-08-17 08:32:51 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
2007-02-02 10:39:45 +00:00
|
|
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
2006-08-17 08:32:51 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.cake.scripts.bake
|
2007-02-02 10:39:45 +00:00
|
|
|
* @since CakePHP(tm) v 1.2
|
2006-08-17 08:32:51 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
2007-05-04 19:32:05 +00:00
|
|
|
class BakeTask extends CakeScript {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs this BakeTask instance.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
function __construct(&$script) {
|
|
|
|
$this->Dispatch = & $script->Dispatch;
|
|
|
|
$this->task = & $script->task;
|
|
|
|
$this->params = & $script->Dispatch->params;
|
|
|
|
$this->args = & $script->Dispatch->args;
|
|
|
|
}
|
2006-09-10 14:11:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2006-09-10 13:50:23 +00:00
|
|
|
* Override this function in subclasses to provide a help message for your task.
|
|
|
|
*/
|
2006-09-10 14:11:21 +00:00
|
|
|
function help() {
|
2006-09-10 13:50:23 +00:00
|
|
|
echo "There is no help available for the specified task.\n";
|
|
|
|
}
|
2006-09-10 14:11:21 +00:00
|
|
|
}
|