Our classes extend both Controller and ApiController, so we need to use traits to add some common methods
Class ConfigPublicController
Note: Type casting only works if the "@param" parameters are also included in this class as their not yet inherited
Class FilesPublicController
Note: Type casting only works if the "@param" parameters are also included in this class as their not yet inherited
Checks that we have a valid token linked to a valid resource and that the user is authorised to access it
Finds configurations files and returns a configuration array
Checks the current and parent folders for configuration files and to see if we're allowed to look for media file Supports explicit inheritance
Thrown when the service ran into an internal server error
Class EventSource
Wrapper for server side events (http://en.wikipedia.org/wiki/Server-sent_events)
This version is tailored for the Gallery app, do not use elsewhere!