LargoController
class LargoController extendsController
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Validates the input for saving an Largo session.
Get a list of unique annotation IDs that are either dismissed or changed.
Check if all given annotations belong to the given volumes.
Returns the IDs of all label trees that must be available to apply the changes.
Removes changes to annotations that should get a new label which no longer exists.
Detach annotation labels that were dismissed in a Largo session.
Attach annotation labels that were chosen in a Largo session.
Details
inControllerat line21
bool
isAutomatedRequest(Request$request =null)
Determines if the request was done by an automated script (with API token or ajax).
inControllerat line15
protectedRedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
at line20
protected
validateLargoInput(Request$request)
Validates the input for saving an Largo session.
at line37
protectedarray
getAffectedAnnotations(array$dismissed,array$changed)
Get a list of unique annotation IDs that are either dismissed or changed.
at line58
protectedbool
anotationsBelongToVolumes(array$annotations,array$volumes)
Check if all given annotations belong to the given volumes.
at line73
protectedarray
getRequiredLabelTrees(array$changed)
Returns the IDs of all label trees that must be available to apply the changes.
at line88
protectedarray
ignoreDeletedLabels(array$dismissed,array$changed)
Removes changes to annotations that should get a new label which no longer exists.
at line128
protected
applySave(User$user,array$dismissed,array$changed,bool$force =false)
Apply the changes of an Largo session.
Removes the dismissed annotation labels and creates the changed annotation labels.
at line146
protected
applyDismissedLabels(User$user,array$dismissed,bool$force)
Detach annotation labels that were dismissed in a Largo session.
at line164
protected
applyChangedLabels(User$user,array$changed)
Attach annotation labels that were chosen in a Largo session.