PHP Трейт Cake\Upgrade\Shell\Task\ChangeTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
main ( ) : void Make tasks callable
process ( string $path ) : void process

Защищенные методы

Метод Описание
_process ( string $path ) : void Default noop
_shouldProcess ( string $path ) : boolean _shouldProcess
_updateContents ( string $contents, array $patterns ) : string Update the contents of a file using an array of find and replace patterns

Описание методов

_process() защищенный Метод

Default noop
protected _process ( string $path ) : void
$path string
Результат void

_shouldProcess() защищенный Метод

Default to PHP files only
protected _shouldProcess ( string $path ) : boolean
$path string
Результат boolean

_updateContents() защищенный Метод

Update the contents of a file using an array of find and replace patterns
protected _updateContents ( string $contents, array $patterns ) : string
$contents string The file contents to update
$patterns array The replacement patterns to run.
Результат string

main() публичный Метод

Make tasks callable
public main ( ) : void
Результат void

process() публичный Метод

process
public process ( string $path ) : void
$path string
Результат void