PHP Class Backend\ModuleBuilderController

Inheritance: extends backend\AdminController
Show file Open project: doptor/doptor

Public Methods

Method Description
__construct ( ModuleBuilder $moduleBuilder )
create ( ) Show the form for creating a new module.
destroy ( integer $id ) : Illuminate\Http\RedirectResponse Remove the specified module from storage.
download ( $id )
edit ( integer $id ) Show the form for editing the module.
getFormDropdowns ( $form_id ) : array Get all the dropdown fields, for the form
getFormFields ( $id, $module_id = null ) : array Get al the form fields in a form as an associative array
index ( ) Display a listing of the modules.
store ( ) Store a newly created resource in storage.
update ( integer $id ) : Illuminate\Http\RedirectResponse | BinaryFileResponse Update the specified menu entry in storage.

Private Methods

Method Description
formDropdownSources ( $module_id = null ) : array
formatInput ( $zip_file, $input ) Format the input parameters, so as to make them ready for saving to DB

Method Details

__construct() public method

public __construct ( ModuleBuilder $moduleBuilder )
$moduleBuilder Services\ModuleBuilder

create() public method

Show the form for creating a new module.
public create ( )

destroy() public method

Remove the specified module from storage.
public destroy ( integer $id ) : Illuminate\Http\RedirectResponse
$id integer
return Illuminate\Http\RedirectResponse

download() public method

public download ( $id )

edit() public method

Show the form for editing the module.
public edit ( integer $id )
$id integer

getFormDropdowns() public method

Get all the dropdown fields, for the form
public getFormDropdowns ( $form_id ) : array
$form_id
return array

getFormFields() public method

Get al the form fields in a form as an associative array
public getFormFields ( $id, $module_id = null ) : array
$id
return array

index() public method

Display a listing of the modules.
public index ( )

store() public method

Store a newly created resource in storage.
public store ( )

update() public method

Update the specified menu entry in storage.
public update ( integer $id ) : Illuminate\Http\RedirectResponse | BinaryFileResponse
$id integer
return Illuminate\Http\RedirectResponse | Symfony\Component\HttpFoundation\BinaryFileResponse