PHP Class Devise\Models\Scaffolding\MigrationScaffolding

Datei anzeigen Open project: devisephp/cms

Protected Properties

Property Type Description
$constants array These are the constants built upon the name of model we are building
$fields array Fields of the model

Public Methods

Method Description
__construct ( Framework $Framework ) Constructor - initialize and inject the framework
buildAndRun ( array $constants, array $fields ) : boolean The primary initialization for building migrations
getMigrationTemplatePath ( ) : string
getTargetFilePath ( ) : string
runMigration ( ) : mixed
saveMigration ( $targetFile, $template ) : mixed

Private Methods

Method Description
buildFields ( ) : string
buildIndexes ( ) : string
buildMigration ( ) : mixed
buildParameters ( $field ) : string
convertFields ( $template ) : mixed
tableDoesNotExist ( ) : boolean

Method Details

__construct() public method

Constructor - initialize and inject the framework
public __construct ( Framework $Framework )
$Framework Devise\Support\Framework

buildAndRun() public method

The primary initialization for building migrations
public buildAndRun ( array $constants, array $fields ) : boolean
$constants array
$fields array
return boolean Did we make migrations or not?

getMigrationTemplatePath() public method

public getMigrationTemplatePath ( ) : string
return string

getTargetFilePath() public method

public getTargetFilePath ( ) : string
return string

runMigration() public method

public runMigration ( ) : mixed
return mixed

saveMigration() public method

public saveMigration ( $targetFile, $template ) : mixed
$targetFile
$template
return mixed

Property Details

$constants protected_oe property

These are the constants built upon the name of model we are building
protected array $constants
return array

$fields protected_oe property

Fields of the model
protected array $fields
return array