class ImportAdminController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Response
index()

Shows the import admin page.

Response
show(ArchiveManager $manager, string $token)

Shows the import admin page for a specific import which wasn't completed yet.

Response
showUserImport(UserImport $import, string $token)

Show the view for an unfinished user import.

Response
showLabelTreeImport(LabelTreeImport $import, string $token)

Show the view for an unfinished label tree import.

Response
showVolumeImport(VolumeImport $import, string $token)

Show the view for an unfinished volume tree import.

array
hideUserCredentials(array $user)

Hides sensitive user credentials that should not be returned to the frontend.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

at line 21
Response index()

Shows the import admin page.

Return Value

Response

at line 39
Response show(ArchiveManager $manager, string $token)

Shows the import admin page for a specific import which wasn't completed yet.

Parameters

ArchiveManager $manager
string $token

Import token

Return Value

Response

at line 64
protected Response showUserImport(UserImport $import, string $token)

Show the view for an unfinished user import.

Parameters

UserImport $import
string $token

Return Value

Response

at line 89
protected Response showLabelTreeImport(LabelTreeImport $import, string $token)

Show the view for an unfinished label tree import.

Parameters

LabelTreeImport $import
string $token

Return Value

Response

at line 144
protected Response showVolumeImport(VolumeImport $import, string $token)

Show the view for an unfinished volume tree import.

Parameters

VolumeImport $import
string $token

Return Value

Response

at line 193
array hideUserCredentials(array $user)

Hides sensitive user credentials that should not be returned to the frontend.

Must be public to be used as a callable in map().

Parameters

array $user

Return Value

array