PHP Class Cake\Upgrade\Shell\Task\LocationsTask

Inheritance: extends BaseTask, use trait ChangeTrait
Show file Open project: cakephp/upgrade

Public Properties

Property Type Description
$tasks

Public Methods

Method Description
getOptionParser ( ) : Cake\Console\ConsoleOptionParser Get the option parser for this shell.

Protected Methods

Method Description
_isInRoot ( string $folder ) : boolean Detect if a target folder should be in ROOT.
_moves ( ) : array Key value map of from and to
_process ( mixed $path ) : boolean Check all moves, and stage moving the file to new location.
_relativeFromRoot ( string $folder, string $path ) : string Get the relative path from ROOT for a specific folder.
_shouldProcess ( string $path ) : boolean _shouldProcess

Method Details

_isInRoot() protected method

Detect if a target folder should be in ROOT.
protected _isInRoot ( string $folder ) : boolean
$folder string
return boolean Success

_moves() protected method

Key value map of from and to
protected _moves ( ) : array
return array

_process() protected method

Check all moves, and stage moving the file to new location.
protected _process ( mixed $path ) : boolean
$path mixed
return boolean

_relativeFromRoot() protected method

Get the relative path from ROOT for a specific folder.
protected _relativeFromRoot ( string $folder, string $path ) : string
$folder string
$path string
return string $path

_shouldProcess() protected method

Is the current path within the scope of any move?
protected _shouldProcess ( string $path ) : boolean
$path string
return boolean

getOptionParser() public method

Get the option parser for this shell.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
return Cake\Console\ConsoleOptionParser

Property Details

$tasks public property

public $tasks