/**
 * TopologyController
 */
TopologyController = function() {
	TopologyController.superclass.constructor.call(this);
}

EasyKat.extend( TopologyController, CustomController,
{
	getTopologyTableAction : function() 
	{       
        var strDlg	= getdlgvar("dlg");
		var teil	= (getdlgvar("teil") == "undefined" ? false : getdlgvar("teil"));
        var rows	= { colAnz: 1, Pictures: [] };
        
        if ((strDlg != "") && (strDlg != "systemcharakteristik") && (strDlg != "lager.systemcharakteristik"))
            rows = caMainController.topologieKlasse.getTopologie(strDlg, teil);
		
		var data = {
			values: [rows]
		};
		
		echo data.toJSON();        
	}
});