// Licensed Materials - Property of IBM // // IBM Cognos Products: cogadmin // // (C) Copyright IBM Corp. 2008, 2011. // // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // // // Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved. // Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated). dojo.provide("com.ibm.cognos.admin.xts.Base"); dojo.declare("com.ibm.cognos.admin.xts.Base",null,{ constructor : function (frag,args){ this.frag = frag; this.args = args; }, initialize: function(){ if (this.frag){ this.buildBridge(); } }, buildBridge: function(){ //Summary // publish any function with _THIS_ as a prefix to global //Tag // protected var proto = this.constructor.prototype; for(var o in proto){ if (typeof(this[o]) == "function" && o.indexOf("_THIS_") == 0){ dojo.global[this.frag.id + o.substr(6)] = dojo.hitch(this, this[o]); } } }, getId: function(id){ //Summary // map the id to _THIS_ //Tag // protected return (this.frag) ? this.frag.id+id : id; } });