public function JuiceboxGallery::setId in Juicebox HTML5 Responsive Image Galleries 7.2
Setter method for the gallery ID (in case it was not passed in constructor).
Parameters
string $value: The gallery id value to set.
boolean $reset: Whether-or-not to reset the current value if it is already set.
Return value
boolean Returns TRUE on successful update and FALSE if update not performed.
Overrides JuiceboxGalleryInterface::setId
File
- includes/
JuiceboxGallery.inc, line 59 - 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 setId($value, $reset = TRUE) {
if ($reset || empty($this->id)) {
$this->id = $value;
return TRUE;
}
return FALSE;
}