/** The constructor of the class. */ function __construct(knj_gallery_group $knj_gallery_group, $id, $data = null) { $this->knj_gallery_group = $knj_gallery_group; $this->knj_gallery = $knj_gallery_group->getKNJGallery(); $this->dbconn = $this->knj_gallery->getDBConn(); parent::__construct($this->dbconn, "pictures", $id, $data); }