PHP 클래스 Flarum\Database\MigrationCreator

파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$publicPath string

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files, string $publicPath ) Create a new migrator instance.
create ( string $name, Extension $extension = null, string $table = null, boolean $create = false ) : string Create a new migration for the given extension.

보호된 메소드들

메소드 설명
getDatePrefix ( ) : string Get the date prefix for the migration.
getMigrationPath ( string $extension ) : string Get the full path name to the migration directory.
getPath ( string $name, string $path ) : string Get the full path name to the migration.
getStub ( string $table, boolean $create ) : string Get the migration stub file.
getStubPath ( ) : string Get the path to the stubs.
populateStub ( string $stub, string $table ) : string Populate the place-holders in the migration stub.

메소드 상세

__construct() 공개 메소드

Create a new migrator instance.
public __construct ( Illuminate\Filesystem\Filesystem $files, string $publicPath )
$files Illuminate\Filesystem\Filesystem
$publicPath string

create() 공개 메소드

Create a new migration for the given extension.
public create ( string $name, Extension $extension = null, string $table = null, boolean $create = false ) : string
$name string
$extension Flarum\Extension\Extension
$table string
$create boolean
리턴 string

getDatePrefix() 보호된 메소드

Get the date prefix for the migration.
protected getDatePrefix ( ) : string
리턴 string

getMigrationPath() 보호된 메소드

Get the full path name to the migration directory.
protected getMigrationPath ( string $extension ) : string
$extension string
리턴 string

getPath() 보호된 메소드

Get the full path name to the migration.
protected getPath ( string $name, string $path ) : string
$name string
$path string
리턴 string

getStub() 보호된 메소드

Get the migration stub file.
protected getStub ( string $table, boolean $create ) : string
$table string
$create boolean
리턴 string

getStubPath() 보호된 메소드

Get the path to the stubs.
protected getStubPath ( ) : string
리턴 string

populateStub() 보호된 메소드

Populate the place-holders in the migration stub.
protected populateStub ( string $stub, string $table ) : string
$stub string
$table string
리턴 string

프로퍼티 상세

$files 보호되어 있는 프로퍼티

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
리턴 Illuminate\Filesystem\Filesystem

$publicPath 보호되어 있는 프로퍼티

protected string $publicPath
리턴 string