PHP 클래스 Devise\Models\Scaffolding\MigrationScaffolding

파일 보기 프로젝트 열기: devisephp/cms

보호된 프로퍼티들

프로퍼티 타입 설명
$constants array These are the constants built upon the name of model we are building
$fields array Fields of the model

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
buildFields ( ) : string
buildIndexes ( ) : string
buildMigration ( ) : mixed
buildParameters ( $field ) : string
convertFields ( $template ) : mixed
tableDoesNotExist ( ) : boolean

메소드 상세

__construct() 공개 메소드

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

buildAndRun() 공개 메소드

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

getMigrationTemplatePath() 공개 메소드

public getMigrationTemplatePath ( ) : string
리턴 string

getTargetFilePath() 공개 메소드

public getTargetFilePath ( ) : string
리턴 string

runMigration() 공개 메소드

public runMigration ( ) : mixed
리턴 mixed

saveMigration() 공개 메소드

public saveMigration ( $targetFile, $template ) : mixed
$targetFile
$template
리턴 mixed

프로퍼티 상세

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

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

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

Fields of the model
protected array $fields
리턴 array