Class PluginTask
The Plugin Task handles creating an empty plugin, ready to be used
- AppShell
- PluginTask
Package: Cake\Console\Command\Task
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/Task/PluginTask.php
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/Task/PluginTask.php
Properties summary
-
$path
publicarray
path to plugins directory
Method Summary
-
_interactive() protected
Interactive interface -
bake() public
Bake the plugin, create directories and files -
execute() public
Execution method always used for tasks -
findPath() public
find and change $this->path to the user selection -
getOptionParser() public
get the option parser for the plugin task -
initialize() public
initialize
Method Detail
_interactive() protected ¶
_interactive( string $plugin = null )
Interactive interface
Parameters
- string $plugin optional null
bake() public ¶
bake( string $plugin )
Bake the plugin, create directories and files
Parameters
- string $plugin
- Name of the plugin in CamelCased format
Returns
boolean
findPath() public ¶
findPath( array $pathOptions )
find and change $this->path to the user selection
Parameters
- array $pathOptions
Returns
string
plugin path
plugin path