function __construct($row) { $this->row = $row; // bind db row to this object foreach ($row as $k => $v) { $this->{$k} = $row[$k]; } $this->params = $this->explode_assoc("=", "\n", $this->params); $this->thumb(); //Write status icons $this->status = galleryUtils::writeGalleryStatus($this); //Write owner name $this->owner = galleryUtils::genericGetUserName($this->get('uid')); //Write gallery name $this->url = JRoute::_("index.php?option=com_rsgallery2&gid=" . $this->get('id')); $this->galleryName = htmlspecialchars(stripslashes($this->get('name'))); //Write HTML for thumbnail $this->thumbHTML = "<div class=\"img-shadow\"><a href=\"" . $this->url . "\">" . galleryUtils::getThumb($this->get('id'), 0, 0, "") . "</a></div>"; //Write description jimport('joomla.filter.output'); $this->description = JFilterOutput::ampReplace($this->get('description')); }