Service
in package
The class prepares the information stored in the database and makes it available to the application in a structured way.
Table of Contents
- HOST_LIVE = 'genericexhibitionplatform.beyondmatter.eu'
- THUMBOR_ALLOWED_FILES = ['jpg', 'jpeg', 'png']
- THUMBOR_MAX_HEIGHT = 960
- THUMBOR_MAX_WIDTH = 1280
- THUMBOR_SECRET = 'nbthumbor'
- THUMBOR_SERVER = 'https://genericexhibitionplatform.beyondmatter.eu/thumbor'
- $db : mixed
- $dbh : mixed
- $utils : mixed
- __construct() : mixed
- getExhibitionData() : array<string|int, mixed>
- show all exhibition data
- getExhibitionItemInfo() : mixed
- getInfoData() : mixed
- getFileWithTimestamp() : string
- The function checks if required image has correct file-extension, adds file-modification-timestamp to filename and return the resulting thumbor-url
- getThumborUrl() : string
- The function converts the given $filePath and converts it into a thumbor-url the given values for max-width and max-height will be taken into account
Constants
HOST_LIVE
public
mixed
HOST_LIVE
= 'genericexhibitionplatform.beyondmatter.eu'
THUMBOR_ALLOWED_FILES
public
mixed
THUMBOR_ALLOWED_FILES
= ['jpg', 'jpeg', 'png']
THUMBOR_MAX_HEIGHT
public
mixed
THUMBOR_MAX_HEIGHT
= 960
THUMBOR_MAX_WIDTH
public
mixed
THUMBOR_MAX_WIDTH
= 1280
THUMBOR_SECRET
public
mixed
THUMBOR_SECRET
= 'nbthumbor'
THUMBOR_SERVER
public
mixed
THUMBOR_SERVER
= 'https://genericexhibitionplatform.beyondmatter.eu/thumbor'
Properties
$db
public
mixed
$db
$dbh
public
mixed
$dbh
$utils
public
mixed
$utils
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getExhibitionData()
show all exhibition data
public
getExhibitionData([ $showHidden = false ]) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —getExhibitionItemInfo()
public
getExhibitionItemInfo(mixed $objectId) : mixed
Parameters
- $objectId : mixed
Return values
mixed —getInfoData()
public
getInfoData() : mixed
Return values
mixed —getFileWithTimestamp()
The function checks if required image has correct file-extension, adds file-modification-timestamp to filename and return the resulting thumbor-url
private
getFileWithTimestamp( $file) : string
Parameters
Return values
string —getThumborUrl()
The function converts the given $filePath and converts it into a thumbor-url the given values for max-width and max-height will be taken into account
private
getThumborUrl( $filePath) : string