//----------------------- // WBT Structure Class // by Caspar Noetzli // www.crealogix.com // ---------------------- // //--------------------------- // WBT_Structure Constructor //--------------------------- WBT_Structure = function (objRef) { this.objRef = objRef this.version = "v2004-01-08-001_clx"; }; //--------------------------- // WBT_Structure getVersion //--------------------------- WBT_Structure.prototype.getVersion = function (objRef) { return ("WBT Structure Class Version: "+this.version) }; //--------------------------- // WBT_Structure loadData //--------------------------- WBT_Structure.prototype.loadData = function(welchesXML) { // lade das dataObject this.dataObj = new IMS_DATA(this, welchesXML); }; //--------------------------- // WBT_Structure showStructure (Hilfsfunktion) //--------------------------- WBT_Structure.prototype.showStructure = function() { // Zeige die komplette Struktur this.dataObj.showStructure(this.DataObj.getSectionData()); }; //--------------------------- // WBT_Structure getModulIdent //----------------------------- WBT_Structure.prototype.getModulIdent = function() { return (this.structureData.ident); }; //--------------------------- // WBT_Structure getModulTitle //----------------------------- WBT_Structure.prototype.getModulTitle = function() { return (this.structureData.title); } //--------------------------- // WBT_Structure getAuthoringMode //----------------------------- WBT_Structure.prototype.getAuthoringMode = function() { return (this.authoring_mode); }; //--------------------------- // WBT_Structure getTestMode //----------------------------- WBT_Structure.prototype.getTestMode = function() { return (this.Test_mode); }; //--------------------------- // WBT_Structure getModulSubtitle //----------------------------- WBT_Structure.prototype.getModulSubtitle = function() { return (this.structureData.subtitle); }; //--------------------------- // WBT_Structure getModulType //----------------------------- WBT_Structure.prototype.getModulType = function() { return (this.structureData.modultype); }; //--------------------------- // WBT_Structure getModulIcon //----------------------------- WBT_Structure.prototype.getModulIcon = function() { return (this.structureData.icontype+"_"+this.structureData.modulColor+"_mc"); };//--------------------------- // WBT_Structure getModulColor //----------------------------- WBT_Structure.prototype.getModulColor = function() { return (this.structureData.modulColor); }; WBT_Structure.prototype.getModulImage = function() { return (this.structureData.modulImage); }; //--------------------------- // WBT_Structure getModulIcon //----------------------------- WBT_Structure.prototype.getModulIcon = function() { return (this.structureData.icontype+"_"+this.structureData.modulColor+"_mc"); }; //--------------------------- // WBT_Structure getMoodbildText //----------------------------- WBT_Structure.prototype.getMoodbildText = function() { return (this.structureData.presentation_material[0].flow_mat[0].material[2].mattext[0]._value); }; //--------------------------------- // WBT_Structure getNavButtonLabel //--------------------------------- WBT_Structure.prototype.getNavigationButtonLabel = function(welcherButtonType) { var tAnzahlNavButtons = this.structureData.presentation_material[0].flow_mat[0].flow_mat[0].material.length for (var i=0;i