LargoController
class LargoController extendsLargoController
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.
Apply the changes of an Largo session.
Detach annotation labels that were dismissed in a Largo session.
Attach annotation labels that were chosen in a Largo session.
Save changes of an Largo session for a volume.
Get label trees of projects that the user and the volume have in common.
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.
inLargoControllerat line20
protected
validateLargoInput(Request$request)
Validates the input for saving an Largo session.
inLargoControllerat line37
protectedarray
getAffectedAnnotations(array$dismissed,array$changed)
Get a list of unique annotation IDs that are either dismissed or changed.
inLargoControllerat line58
protectedbool
anotationsBelongToVolumes(array$annotations,array$volumes)
Check if all given annotations belong to the given volumes.
inLargoControllerat line73
protectedarray
getRequiredLabelTrees(array$changed)
Returns the IDs of all label trees that must be available to apply the changes.
inLargoControllerat line88
protectedarray
ignoreDeletedLabels(array$dismissed,array$changed)
Removes changes to annotations that should get a new label which no longer exists.
inLargoControllerat 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.
inLargoControllerat line146
protected
applyDismissedLabels(User$user,array$dismissed,bool$force)
Detach annotation labels that were dismissed in a Largo session.
inLargoControllerat line164
protected
applyChangedLabels(User$user,array$changed)
Attach annotation labels that were chosen in a Largo session.
at line48
Response
save(Request$request,int$id)
Save changes of an Largo session for a volume.
at line107
protectedCollection
getAvailableLabelTrees(User$user,Volume$volume)
Get label trees of projects that the user and the volume have in common.