PHP Класс Backend\ModuleBuilderController

Наследование: extends backend\AdminController
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
formDropdownSources ( $module_id = null ) : array
formatInput ( $zip_file, $input ) Format the input parameters, so as to make them ready for saving to DB

Описание методов

__construct() публичный Метод

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

create() публичный Метод

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

destroy() публичный Метод

Remove the specified module from storage.
public destroy ( integer $id ) : Illuminate\Http\RedirectResponse
$id integer
Результат Illuminate\Http\RedirectResponse

download() публичный Метод

public download ( $id )

edit() публичный Метод

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

getFormDropdowns() публичный Метод

Get all the dropdown fields, for the form
public getFormDropdowns ( $form_id ) : array
$form_id
Результат array

getFormFields() публичный Метод

Get al the form fields in a form as an associative array
public getFormFields ( $id, $module_id = null ) : array
$id
Результат array

index() публичный Метод

Display a listing of the modules.
public index ( )

store() публичный Метод

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

update() публичный Метод

Update the specified menu entry in storage.
public update ( integer $id ) : Illuminate\Http\RedirectResponse | BinaryFileResponse
$id integer
Результат Illuminate\Http\RedirectResponse | Symfony\Component\HttpFoundation\BinaryFileResponse