obj-section.js
Summary
No overview generated for 'obj-section.js'
function Section(p,id,ti,ty,nu) {
this.objname = "section";
this.par = p;
this.oid = id;
this.title = ti;
this.type = ty;
this.num = nu;
this.topics = new Array();
this.topicsID = new Array();
}
Section.prototype.getTopicByID = function(i) {
var r = this.topicsID[i];
return r;
}
Section.prototype.containsMediaByFilter = function(f) {
var check = false;
for (var i=0; i<this.topics.length; i++) {
var ct = this.topics[i];
for (var j=0; j<ct.pages.length; j++) {
if (ct.pages[j].media.filtertype == f) {
check = true;
j = ct.pages.length;
i = this.topics.length;
}
}
}
return check;
}
Section.prototype.dump = function() {
var d = "Section Dump\n";
d += "\tthis.objname: "+this.objname+"\n";
d += "\tthis.oid: "+this.oid+"\n";
d += "\tthis.par: "+this.par+"\n";
d += "\tthis.title: "+this.title+"\n";
d += "\tthis.num: "+this.num+"\n";
d += "\tthis.type: "+this.type+"\n";
d += "\tthis.topics: "+this.topics+"\n";
dump(d);
}
Documentation generated by
JSDoc on Tue Mar 4 12:01:48 2008