function init($nextgen_gallery_id, $foogallery_title) { $this->nextgen_gallery_id = $nextgen_gallery_id; $this->foogallery_title = $foogallery_title; $this->status = self::PROGRESS_QUEUED; $nextgen = new FooGallery_NextGen_Helper(); //load the gallery and pictures $this->nextgen_gallery = $nextgen->get_gallery($this->nextgen_gallery_id); $this->nextgen_pictures = $nextgen->get_gallery_images($this->nextgen_gallery_id); $this->import_count = count($this->nextgen_pictures); $this->is_part_of_current_import = true; }