PHP Class Backend\ModuleBuilderController

Inheritance: extends backend\AdminController
Afficher le fichier Open project: doptor/doptor

Méthodes publiques

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

Méthode 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 méthode

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

create() public méthode

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

destroy() public méthode

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

download() public méthode

public download ( $id )

edit() public méthode

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

getFormDropdowns() public méthode

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

getFormFields() public méthode

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

index() public méthode

Display a listing of the modules.
public index ( )

store() public méthode

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

update() public méthode

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