PHP 트레잇 Cake\Upgrade\Shell\Task\ChangeTrait

파일 보기 프로젝트 열기: cakephp/upgrade

공개 메소드들

메소드 설명
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