Sourcecode in Image/objectFunctions.js:
1: function dumpToZip(z) {
2: var data = new HopObject();
3: if (this.thumbnail)
4: data.thumbnail = this.thumbnail.dumpToZip(z);
5: data.alias = this.alias;
6: data.filename = this.filename;
7: data.fileext = this.fileext;
8: data.width = this.width;
9: data.height = this.height;
10: data.alttext = this.alttext;
11: data.createtime = this.createtime;
12: data.modifytime = this.modifytime;
13: data.exporttime = new Date();
14: data.creator = this.creator ? this.creator.name : null;
15: data.modifier = this.modifier ? this.modifier.name : null;
16: // add the image file to the zip archive
17: z.add(this.getFile(), "images");
18: return data;
19: }
|