PHP Класс Flarum\Database\MigrationCreator

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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