PHP 클래스 Frozennode\Administrator\AdminController

상속: extends Illuminate\Routing\Controller
파일 보기 프로젝트 열기: summerblue/administrator

보호된 프로퍼티들

프로퍼티 타입 설명
$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