mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Moving features up to BakeTask.
This commit is contained in:
parent
4a6ab01134
commit
01ea34f452
5 changed files with 18 additions and 48 deletions
|
@ -25,6 +25,22 @@ class BakeTask extends Shell {
|
|||
*/
|
||||
var $name = null;
|
||||
|
||||
/**
|
||||
* Name of plugin
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $plugin = null;
|
||||
|
||||
/**
|
||||
* The db connection being used for baking
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $connection = null;
|
||||
|
||||
/**
|
||||
* Gets the path for output. Checks the plugin property
|
||||
* and returns the correct path.
|
||||
|
|
|
@ -29,13 +29,6 @@ include_once dirname(__FILE__) . DS . 'bake.php';
|
|||
class ControllerTask extends BakeTask {
|
||||
|
||||
var $name = 'Controller';
|
||||
/**
|
||||
* Name of plugin
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $plugin = null;
|
||||
|
||||
/**
|
||||
* Tasks to be loaded by this Task
|
||||
|
|
|
@ -17,22 +17,14 @@
|
|||
* @since CakePHP(tm) v 1.3
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
include_once dirname(__FILE__) . DS . 'bake.php';
|
||||
/**
|
||||
* Task class for creating and updating fixtures files.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.cake.console.libs.tasks
|
||||
*/
|
||||
class FixtureTask extends Shell {
|
||||
|
||||
/**
|
||||
* Name of plugin
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $plugin = null;
|
||||
class FixtureTask extends BakeTask {
|
||||
|
||||
/**
|
||||
* Tasks to be loaded by this Task
|
||||
|
@ -50,14 +42,6 @@ class FixtureTask extends Shell {
|
|||
*/
|
||||
var $path = null;
|
||||
|
||||
/**
|
||||
* The db connection being used for baking
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $connection = null;
|
||||
|
||||
/**
|
||||
* Schema instance
|
||||
*
|
||||
|
|
|
@ -29,21 +29,6 @@ include_once dirname(__FILE__) . DS . 'bake.php';
|
|||
class ModelTask extends BakeTask {
|
||||
|
||||
var $name = 'Model';
|
||||
/**
|
||||
* Name of plugin
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $plugin = null;
|
||||
|
||||
/**
|
||||
* Name of the db connection used.
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $connection = null;
|
||||
|
||||
/**
|
||||
* path to MODELS directory
|
||||
|
|
|
@ -30,14 +30,6 @@ class ViewTask extends BakeTask {
|
|||
|
||||
var $name = 'View';
|
||||
|
||||
/**
|
||||
* Name of plugin
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
var $plugin = null;
|
||||
|
||||
/**
|
||||
* Tasks to be loaded by this Task
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue