You are here

public function JuiceboxGallery::getChecksum in Juicebox HTML5 Responsive Image Galleries 7.2

Get a gallery checksum.

Return value

string An md5 hash of the image and option data that can be used to validate the uniqueness of this gallery's data and settings.

Overrides JuiceboxGalleryInterface::getChecksum

File

includes/JuiceboxGallery.inc, line 197
A php-only set of methods to create the script and markup components of a Juicebox gallery.

Class

JuiceboxGallery
Class to generate the script and markup for a Juicebox gallery.

Code

public function getChecksum() {
  return md5(json_encode($this->images) . json_encode($this->options));
}