PHP Class Flarum\Database\MigrationCreator

Afficher le fichier Open project: flarum/core Class Usage Examples

Protected Properties

Свойство Type Description
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$publicPath string

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

create() public méthode

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
Résultat string

getDatePrefix() protected méthode

Get the date prefix for the migration.
protected getDatePrefix ( ) : string
Résultat string

getMigrationPath() protected méthode

Get the full path name to the migration directory.
protected getMigrationPath ( string $extension ) : string
$extension string
Résultat string

getPath() protected méthode

Get the full path name to the migration.
protected getPath ( string $name, string $path ) : string
$name string
$path string
Résultat string

getStub() protected méthode

Get the migration stub file.
protected getStub ( string $table, boolean $create ) : string
$table string
$create boolean
Résultat string

getStubPath() protected méthode

Get the path to the stubs.
protected getStubPath ( ) : string
Résultat string

populateStub() protected méthode

Populate the place-holders in the migration stub.
protected populateStub ( string $stub, string $table ) : string
$stub string
$table string
Résultat string

Property Details

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$publicPath protected_oe property

protected string $publicPath
Résultat string