Class BakeTask

Base class for Bake Tasks.

AppShell
Extended by BakeTask

Direct Subclasses

Package: Cake\Console\Command\Task
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/Console/Command/Task/BakeTask.php

Properties summary

  • $connection public
    string
    The db connection being used for baking
  • $interactive public
    boolean
    Flag for interactive mode
  • $plugin public
    string
    Name of plugin

Method Summary

  • execute() public

    Base execute method parses some parameters and sets some properties on the bake tasks. call when overriding execute()

  • getPath() public

    Gets the path for output. Checks the plugin property and returns the correct path.

  • startup() public

    Disable caching and enable debug for baking. This forces the most current database schema to be used.

Method Detail

execute()source public

execute( )

Base execute method parses some parameters and sets some properties on the bake tasks. call when overriding execute()

getPath()source public

getPath( )

Gets the path for output. Checks the plugin property and returns the correct path.

Returns

string
Path to output.

startup()source public

startup( )

Disable caching and enable debug for baking. This forces the most current database schema to be used.

Properties detail

$connectionsource

public string

The db connection being used for baking

null

$interactivesource

public boolean

Flag for interactive mode

false

$pluginsource

public string

Name of plugin

null

© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-BakeTask.html