class ImportController 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).

RedirectResponse
fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

Response
store(Request $request, ArchiveManager $manager)

Initiate a new import.

Response
update(ArchiveManager $manager, Request $request, string $token)

No description

Response
destroy(ArchiveManager $manager, string $token)

No description

updateUserImport(UserImport $import, Request $request)

Perform a user import.

updateLabelTreeImport(LabelTreeImport $import, Request $request)

Perform a label tree import.

updateVolumeImport(VolumeImport $import, Request $request)

Perform a volume import.

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

in Controller at line 15
protected RedirectResponse fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

Return Value

RedirectResponse

at line 34
Response store(Request $request, ArchiveManager $manager)

Initiate a new import.

Parameters

Request $request
ArchiveManager $manager

Return Value

Response

at line 73
Response update(ArchiveManager $manager, Request $request, string $token)

No description

Parameters

ArchiveManager $manager
Request $request
string $token

Import token

Return Value

Response

at line 109
Response destroy(ArchiveManager $manager, string $token)

No description

Parameters

ArchiveManager $manager
string $token

Import token

Return Value

Response

at line 126
protected updateUserImport(UserImport $import, Request $request)

Perform a user import.

Parameters

UserImport $import
Request $request

at line 142
protected updateLabelTreeImport(LabelTreeImport $import, Request $request)

Perform a label tree import.

Parameters

LabelTreeImport $import
Request $request

at line 169
protected updateVolumeImport(VolumeImport $import, Request $request)

Perform a volume import.

Parameters

VolumeImport $import
Request $request