PHP Class Frozennode\Administrator\AdminController

Inheritance: extends Illuminate\Routing\Controller
Afficher le fichier Open project: summerblue/administrator

Protected Properties

Свойство Type Description
$formRequestErrors string
$layout string
$request Illuminate\Http\Request
$session Illuminate\Session\SessionManager

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
resolveDynamicFormRequestErrors ( Illuminate\Http\Request $request ) POST method to capture any form request errors.

Method Details

__construct() public méthode

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

batchDelete() public méthode

Batch delete
public batchDelete ( string $modelName ) : JSON
$modelName string
Résultat JSON

customModelAction() public méthode

POST method for handling custom model actions.
public customModelAction ( string $modelName ) : JSON
$modelName string
Résultat JSON

customModelItemAction() public méthode

POST method for handling custom model item actions.
public customModelItemAction ( string $modelName, integer $id = null ) : JSON
$modelName string
$id integer
Résultat JSON

dashboard() public méthode

Shows the dashboard page.
public dashboard ( ) : Response
Résultat Response

delete() public méthode

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
Résultat JSON

displayFile() public méthode

The GET method that displays a file field's file.
public displayFile ( ) : Image
Résultat Image / File

fileDownload() public méthode

The GET method that runs when a user needs to download a file.
public fileDownload ( ) : JSON
Résultat JSON

fileUpload() public méthode

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
Résultat JSON

index() public méthode

The main view for any of the data models.
public index ( $modelName ) : Response
Résultat Response

item() public méthode

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

page() public méthode

The pages view.
public page ( $page ) : Response
Résultat Response

resolveDynamicFormRequestErrors() protected méthode

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

results() public méthode

Gets the database results for the current model.
public results ( string $modelName ) : array
$modelName string
Résultat array of rows

rowsPerPage() public méthode

The POST method for setting a user's rows per page.
public rowsPerPage ( string $modelName ) : JSON
$modelName string
Résultat JSON

save() public méthode

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
Résultat JSON

settings() public méthode

The main view for any of the settings pages.
public settings ( string $settingsName ) : Response
$settingsName string
Résultat Response

settingsCustomAction() public méthode

POST method for handling custom actions on the settings page.
public settingsCustomAction ( string $settingsName ) : JSON
$settingsName string
Résultat JSON

settingsSave() public méthode

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
Résultat JSON

switchLocale() public méthode

POST method for switching a user's locale.
public switchLocale ( string $locale ) : JSON
$locale string
Résultat JSON

updateOptions() public méthode

Gets a list of related items given constraints.
public updateOptions ( string $modelName ) : array
$modelName string
Résultat array of objects [{id: string} ... {1: 'name'}, ...]

Property Details

$formRequestErrors protected_oe property

protected string $formRequestErrors
Résultat string

$layout protected_oe property

protected string $layout
Résultat string

$request protected_oe property

protected Request,Illuminate\Http $request
Résultat Illuminate\Http\Request

$session protected_oe property

protected SessionManager,Illuminate\Session $session
Résultat Illuminate\Session\SessionManager