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