mediaCtrl
extends jController
in package
Table of Contents
Methods
- defaultIllustration() : jResponseBinary
- Get default illustration image for the Lizmap instance.
- getCssFile() : jResponseBinary|jResponseRedirect|jResponseText
- Get a CSS file stored in the repository in a "media/themes" folder.
- getDefaultTheme() : jResponseZip
- Get default Lizmap theme as a ZIP file.
- getMedia() : jResponseBinary|jResponseJson
- Get a media file (image, html, csv, pdf, etc.) store in the repository.
- illustration() : jResponseBinary|jResponseHtml|jResponseJson
- Get illustration image for a specified project.
- themeImage() : jResponseBinary|jResponseJson
- Get logo or background image defined in lizmap admin theme configuration.
- canBeCached() : bool
- Check if cache can be used because it is impossible to use cache on other request type that GET or HEAD.
- defaultIllustrationEtag() : mixed
- defaultIllustrationPath() : mixed
- error() : jResponseRedirect
- Returns error.
- error401() : jResponseJson
- Return 401.
- error403() : jResponseJson
- Return 403.
- error404() : jResponseJson
- Return 404.
- isMethodAllowed() : bool
- setEtagCacheHeaders() : jResponse
Methods
defaultIllustration()
Get default illustration image for the Lizmap instance.
public
defaultIllustration() : jResponseBinary
Return values
jResponseBinary —object The image for this project
getCssFile()
Get a CSS file stored in the repository in a "media/themes" folder.
public
getCssFile() : jResponseBinary|jResponseRedirect|jResponseText
Url to images are replaced by getMedia URL.
Return values
jResponseBinary|jResponseRedirect|jResponseText —object The transformed CSS file
getDefaultTheme()
Get default Lizmap theme as a ZIP file.
public
getDefaultTheme() : jResponseZip
Return values
jResponseZip —file containing the default theme
getMedia()
Get a media file (image, html, csv, pdf, etc.) store in the repository.
public
getMedia() : jResponseBinary|jResponseJson
Used to display media in the popup, via the information icon, etc.
Return values
jResponseBinary|jResponseJson —object The media
illustration()
Get illustration image for a specified project.
public
illustration() : jResponseBinary|jResponseHtml|jResponseJson
Return values
jResponseBinary|jResponseHtml|jResponseJson —object The image for this project
themeImage()
Get logo or background image defined in lizmap admin theme configuration.
public
themeImage() : jResponseBinary|jResponseJson
Return values
jResponseBinary|jResponseJson —configured theme logo
canBeCached()
Check if cache can be used because it is impossible to use cache on other request type that GET or HEAD.
protected
canBeCached() : bool
Return values
booldefaultIllustrationEtag()
protected
defaultIllustrationEtag() : mixed
defaultIllustrationPath()
protected
defaultIllustrationPath() : mixed
error()
Returns error.
protected
error(string $message) : jResponseRedirect
Parameters
- $message : string
Return values
jResponseRedirecterror401()
Return 401.
protected
error401(string $message) : jResponseJson
Parameters
- $message : string
Return values
jResponseJsonerror403()
Return 403.
protected
error403(string $message) : jResponseJson
Parameters
- $message : string
Return values
jResponseJsonerror404()
Return 404.
protected
error404(string $message) : jResponseJson
Parameters
- $message : string
Return values
jResponseJsonisMethodAllowed()
protected
isMethodAllowed(jResponseBinary $rep) : bool
Parameters
- $rep : jResponseBinary
Return values
bool —true if the method is allowed, false otherwise
setEtagCacheHeaders()
protected
setEtagCacheHeaders(jResponse $resp, string $etag) : jResponse
Parameters
- $resp : jResponse
- $etag : string
Return values
jResponse —the response updated