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.

__construct()

Creates a new instance.

RedirectResponse
store(Request $request, ArchiveManager $manager)

Initiate a new import.

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

No description

RedirectResponse
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 22
__construct()

Creates a new instance.

at line 42
RedirectResponse store(Request $request, ArchiveManager $manager)

Initiate a new import.

Parameters

Request $request
ArchiveManager $manager

Return Value

RedirectResponse

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

No description

Parameters

ArchiveManager $manager
Request $request
string $token

Import token

at line 116
RedirectResponse destroy(ArchiveManager $manager, string $token)

No description

Parameters

ArchiveManager $manager
string $token

Import token

Return Value

RedirectResponse

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

Perform a user import.

Parameters

UserImport $import
Request $request

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

Perform a label tree import.

Parameters

LabelTreeImport $import
Request $request

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

Perform a volume import.

Parameters

VolumeImport $import
Request $request