Changeset 1521
- Timestamp:
- 05/17/08 21:33:27 (5 years ago)
- Files:
-
- 1 modified
-
coldbox/trunk/src/system/plugins/XMLParser.cfc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
coldbox/trunk/src/system/plugins/XMLParser.cfc
r1500 r1521 894 894 /* TracerPanel */ 895 895 if ( structKeyExists(DebuggerSettingNodes[1], "TracerPanel") ){ 896 StructInsert(ConfigStruct.DebuggerSettings, "showTracerPanel", trim(DebuggerSettingNodes[1].TracerPanel.xmlAttributes.show) ); 897 StructInsert(ConfigStruct.DebuggerSettings, "expandedTracerPanel", trim(DebuggerSettingNodes[1].TracerPanel.xmlAttributes.expanded) ); 896 debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"TracerPanel",DebuggerSettingNodes[1].TracerPanel.xmlAttributes); 898 897 } 899 898 /* InfoPanel */ 900 899 if ( structKeyExists(DebuggerSettingNodes[1], "InfoPanel") ){ 901 StructInsert(ConfigStruct.DebuggerSettings, "showInfoPanel", trim(DebuggerSettingNodes[1].InfoPanel.xmlAttributes.show) ); 902 StructInsert(ConfigStruct.DebuggerSettings, "expandedInfoPanel", trim(DebuggerSettingNodes[1].InfoPanel.xmlAttributes.expanded) ); 900 debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"InfoPanel",DebuggerSettingNodes[1].InfoPanel.xmlAttributes); 903 901 } 904 902 /* CachePanel */ 905 903 if ( structKeyExists(DebuggerSettingNodes[1], "CachePanel") ){ 906 StructInsert(ConfigStruct.DebuggerSettings, "showCachePanel", trim(DebuggerSettingNodes[1].CachePanel.xmlAttributes.show) ); 907 StructInsert(ConfigStruct.DebuggerSettings, "expandedCachePanel", trim(DebuggerSettingNodes[1].CachePanel.xmlAttributes.expanded) ); 904 debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"CachePanel",DebuggerSettingNodes[1].CachePanel.xmlAttributes); 908 905 } 909 906 /* RCPanel */ 910 907 if ( structKeyExists(DebuggerSettingNodes[1], "RCPanel") ){ 911 StructInsert(ConfigStruct.DebuggerSettings, "showRCPanel", trim(DebuggerSettingNodes[1].RCPanel.xmlAttributes.show) ); 912 StructInsert(ConfigStruct.DebuggerSettings, "expandedRCPanel", trim(DebuggerSettingNodes[1].RCPanel.xmlAttributes.expanded) ); 908 debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"RCPanel",DebuggerSettingNodes[1].RCPanel.xmlAttributes); 913 909 } 914 910 … … 1005 1001 1006 1002 <!------------------------------------------- PRIVATE -------------------------------------------> 1007 1008 <!--- ************************************************************* ---> 1009 1003 1004 <!--- Debug Panel attribute insert ---> 1005 <cffunction name="debugPanelAttributeInsert" access="private" returntype="void" hint="Insert a key into a panel attribute" output="false" > 1006 <!--- ************************************************************* ---> 1007 <cfargument name="Config" required="true" type="struct" hint=""> 1008 <cfargument name="Panel" required="true" type="string" hint=""> 1009 <cfargument name="PanelXML" required="true" type="any" hint=""> 1010 <!--- ************************************************************* ---> 1011 <cfscript> 1012 /* Show Key */ 1013 if( structKeyExists(arguments.panelXML,"show") ){ 1014 StructInsert(arguments.config, "show#arguments.Panel#", trim(arguments.panelXML.show) ); 1015 } 1016 /* Expanded Key */ 1017 if( structKeyExists(arguments.panelXML,"expanded") ){ 1018 StructInsert(arguments.config, "expanded#arguments.Panel#", trim(arguments.panelXML.expanded) ); 1019 } 1020 </cfscript> 1021 </cffunction> 1022 1023 <!--- read file ---> 1010 1024 <cffunction name="readFile" access="private" output="false" returntype="string" hint="Facade to Read a file's content"> 1011 1025 <!--- ************************************************************* ---> … … 1017 1031 </cffunction> 1018 1032 1019 <!--- ************************************************************* ---> 1020 1033 <!--- Get Absolute Path ---> 1021 1034 <cffunction name="getAbsolutePath" access="private" output="false" returntype="string" hint="Turn any system path, either relative or absolute, into a fully qualified one"> 1022 1035 <!--- ************************************************************* --->
