Comment.constructor (site, creator, ipaddress) |
constructor function for comment objects |
Sourcecode in Comment/objectFunctions.js:
1: function constructor(site, creator, ipaddress) { 2: this.site = site; 3: this.online = 1; 4: this.editableby = EDITABLEBY_ADMINS; 5: this.ipaddress = ipaddress; 6: this.creator = creator; 7: this.createtime = this.modifytime = new Date(); 8: return this; 9: } |