PHP 클래스 Cake\Upgrade\Shell\Task\I18nTask

Updates __() calls.
상속: extends BaseTask, use trait ChangeTrait
파일 보기 프로젝트 열기: cakephp/upgrade

공개 프로퍼티들

프로퍼티 타입 설명
$tasks

보호된 메소드들

메소드 설명
_adjustI18n ( string $contents ) : string Adjusts __() to use {n} instead of %s.
_process ( $path ) : void Converts placeholders from 2.x to 3.x syntax.
_shouldProcess ( string $path ) : boolean _shouldProcess

메소드 상세

_adjustI18n() 보호된 메소드

Adjusts __() to use {n} instead of %s.
protected _adjustI18n ( string $contents ) : string
$contents string
리턴 string

_process() 보호된 메소드

Converts placeholders from 2.x to 3.x syntax.
protected _process ( $path ) : void
리턴 void

_shouldProcess() 보호된 메소드

Bail for invalid files (php/ctp files only)
protected _shouldProcess ( string $path ) : boolean
$path string
리턴 boolean

프로퍼티 상세

$tasks 공개적으로 프로퍼티

public $tasks