PHP Класс Frozennode\Administrator\AdminController

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

Защищенные свойства (Protected)

Свойство Тип Описание
$formRequestErrors string
$layout string
$request Illuminate\Http\Request
$session Illuminate\Session\SessionManager

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

Метод Описание
__construct ( Illuminate\Http\Request $request, Illuminate\Session\SessionManager $session )
batchDelete ( string $modelName ) : JSON Batch delete
customModelAction ( string $modelName ) : JSON POST method for handling custom model actions.
customModelItemAction ( string $modelName, integer $id = null ) : JSON POST method for handling custom model item actions.
dashboard ( ) : Response Shows the dashboard page.
delete ( string $modelName, integer $id ) : JSON POST delete method that accepts data via JSON POST and either saves an old.
displayFile ( ) : Image The GET method that displays a file field's file.
fileDownload ( ) : JSON The GET method that runs when a user needs to download a file.
fileUpload ( string $modelName, string $fieldName ) : JSON The POST method that runs when a user uploads a file on a file field.
index ( $modelName ) : Response The main view for any of the data models.
item ( string $modelName, mixed $itemId ) Gets the item edit page / information.
page ( $page ) : Response The pages view.
results ( string $modelName ) : array Gets the database results for the current model.
rowsPerPage ( string $modelName ) : JSON The POST method for setting a user's rows per page.
save ( string $modelName, integer $id = false ) : JSON POST save method that accepts data via JSON POST and either saves an old item (if id is valid) or creates a new one.
settings ( string $settingsName ) : Response The main view for any of the settings pages.
settingsCustomAction ( string $settingsName ) : JSON POST method for handling custom actions on the settings page.
settingsSave ( ) : JSON POST save settings method that accepts data via JSON POST and either saves an old item (if id is valid) or creates a new one.
switchLocale ( string $locale ) : JSON POST method for switching a user's locale.
updateOptions ( string $modelName ) : array Gets a list of related items given constraints.

Защищенные методы

Метод Описание
resolveDynamicFormRequestErrors ( Illuminate\Http\Request $request ) POST method to capture any form request errors.

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

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

public __construct ( Illuminate\Http\Request $request, Illuminate\Session\SessionManager $session )
$request Illuminate\Http\Request
$session Illuminate\Session\SessionManager

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

Batch delete
public batchDelete ( string $modelName ) : JSON
$modelName string
Результат JSON

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

POST method for handling custom model actions.
public customModelAction ( string $modelName ) : JSON
$modelName string
Результат JSON

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

POST method for handling custom model item actions.
public customModelItemAction ( string $modelName, integer $id = null ) : JSON
$modelName string
$id integer
Результат JSON

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

Shows the dashboard page.
public dashboard ( ) : Response
Результат Response

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

POST delete method that accepts data via JSON POST and either saves an old.
public delete ( string $modelName, integer $id ) : JSON
$modelName string
$id integer
Результат JSON

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

The GET method that displays a file field's file.
public displayFile ( ) : Image
Результат Image / File

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

The GET method that runs when a user needs to download a file.
public fileDownload ( ) : JSON
Результат JSON

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

The POST method that runs when a user uploads a file on a file field.
public fileUpload ( string $modelName, string $fieldName ) : JSON
$modelName string
$fieldName string
Результат JSON

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

The main view for any of the data models.
public index ( $modelName ) : Response
Результат Response

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

Gets the item edit page / information.
public item ( string $modelName, mixed $itemId )
$modelName string
$itemId mixed

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

The pages view.
public page ( $page ) : Response
Результат Response

resolveDynamicFormRequestErrors() защищенный Метод

POST method to capture any form request errors.
protected resolveDynamicFormRequestErrors ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

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

Gets the database results for the current model.
public results ( string $modelName ) : array
$modelName string
Результат array of rows

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

The POST method for setting a user's rows per page.
public rowsPerPage ( string $modelName ) : JSON
$modelName string
Результат JSON

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

POST save method that accepts data via JSON POST and either saves an old item (if id is valid) or creates a new one.
public save ( string $modelName, integer $id = false ) : JSON
$modelName string
$id integer
Результат JSON

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

The main view for any of the settings pages.
public settings ( string $settingsName ) : Response
$settingsName string
Результат Response

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

POST method for handling custom actions on the settings page.
public settingsCustomAction ( string $settingsName ) : JSON
$settingsName string
Результат JSON

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

POST save settings method that accepts data via JSON POST and either saves an old item (if id is valid) or creates a new one.
public settingsSave ( ) : JSON
Результат JSON

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

POST method for switching a user's locale.
public switchLocale ( string $locale ) : JSON
$locale string
Результат JSON

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

Gets a list of related items given constraints.
public updateOptions ( string $modelName ) : array
$modelName string
Результат array of objects [{id: string} ... {1: 'name'}, ...]

Описание свойств

$formRequestErrors защищенное свойство

protected string $formRequestErrors
Результат string

$layout защищенное свойство

protected string $layout
Результат string

$request защищенное свойство

protected Request,Illuminate\Http $request
Результат Illuminate\Http\Request

$session защищенное свойство

protected SessionManager,Illuminate\Session $session
Результат Illuminate\Session\SessionManager