PHP 클래스 Services\ModuleInstaller

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

공개 메소드들

메소드 설명
Unzip ( $file, $path ) : boolean Unzip the module file
__construct ( )
addToBuiltForms ( ) Get the information about the forms used in the module and save/update their entries in the database, so that they can be edited later(if required).
addToBuiltModules ( $module, $form_ids ) Get the information about the module and save/update their entries in the database, so that they can be edited later(if required).
alterTables ( $form ) Alter existing table(s) in DB
copyModule ( $temp_module_dir ) Copy the module from temporary folder to modules
createTables ( $form ) Create new table(s) in DB
dbMigrate ( )
fixInput ( ) : array Fix the input to store in DB
installModule ( $file ) : array Install the module
runMigrations ( )
storeMigrationData ( )
uploadModule ( $file ) : array Upload the module to server

비공개 메소드들

메소드 설명
checkIfRequiredModulesExist ( ) Check if the modules required for this module exist or not
manageTables ( ) Mange table(s) in DB (CREATE/ALTER)
seedDatabase ( )

메소드 상세

Unzip() 공개 메소드

Unzip the module file
public Unzip ( $file, $path ) : boolean
$file
$path
리턴 boolean

__construct() 공개 메소드

public __construct ( )

addToBuiltForms() 공개 메소드

Get the information about the forms used in the module and save/update their entries in the database, so that they can be edited later(if required).
public addToBuiltForms ( )

addToBuiltModules() 공개 메소드

Get the information about the module and save/update their entries in the database, so that they can be edited later(if required).
public addToBuiltModules ( $module, $form_ids )

alterTables() 공개 메소드

Alter existing table(s) in DB
public alterTables ( $form )
$form

copyModule() 공개 메소드

Copy the module from temporary folder to modules
public copyModule ( $temp_module_dir )
$temp_module_dir

createTables() 공개 메소드

Create new table(s) in DB
public createTables ( $form )
$form

dbMigrate() 공개 메소드

public dbMigrate ( )

fixInput() 공개 메소드

Fix the input to store in DB
public fixInput ( ) : array
리턴 array

installModule() 공개 메소드

Install the module
public installModule ( $file ) : array
$file
리턴 array $input

runMigrations() 공개 메소드

public runMigrations ( )

storeMigrationData() 공개 메소드

public storeMigrationData ( )

uploadModule() 공개 메소드

Upload the module to server
public uploadModule ( $file ) : array
$file
리턴 array