Changeset 2434
- Timestamp:
- 06/27/10 00:24:54 (20 months ago)
- Location:
- branches/5.2/www/requirements/mura
- Files:
-
- 5 edited
-
Handler/standardSetContentRendererHandler.cfc (modified) (1 diff)
-
MuraScope.cfc (modified) (3 diffs)
-
event.cfc (modified) (4 diffs)
-
servletEvent.cfc (modified) (3 diffs)
-
settings/settingsBean.cfc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2/www/requirements/mura/Handler/standardSetContentRendererHandler.cfc
r2097 r2434 26 26 27 27 <cfset event.setValue('contentRenderer',createObject("component","#event.getSite().getAssetMap()#.includes.contentRenderer").init(event))/> 28 28 <cfset event.setValue("themeRenderer",event.getSite().getThemeRenderer())> 29 29 </cffunction> 30 30 -
branches/5.2/www/requirements/mura/MuraScope.cfc
r2418 r2434 21 21 </cfif> 22 22 <cfreturn this> 23 </cffunction> 24 25 <cffunction name="OnMissingMethod" access="public" returntype="any" output="false" hint="Handles missing method exceptions."> 26 <cfargument name="MissingMethodName" type="string" required="true" hint="The name of the missing method." /> 27 <cfargument name="MissingMethodArguments" type="struct" required="true"/> 28 <cfset var local=structNew()> 29 <cfset var object=""> 30 31 <cfif len(MissingMethodName)> 32 33 <cfif isObject(getEvent()) and structKeyExists(variables.instance.event,MissingMethodName)> 34 <cfset object=variables.instance.event> 35 <cfelseif isObject(getThemeRenderer()) and structKeyExists(getThemeRenderer(),MissingMethodName)> 36 <cfset object=getThemeRenderer()> 37 <cfelseif isObject(getContentRenderer()) and structKeyExists(getContentRenderer(),MissingMethodName)> 38 <cfset object=getContentRenderer()> 39 <cfelseif isObject(getContentBean()) and structKeyExists(getContentBean(),MissingMethodName)> 40 <cfset object=getContentBean()> 41 <cfelse> 42 <cfthrow message="The method '#arguments.MissingMethodName#' is not defined"> 43 </cfif> 44 45 <cfsavecontent variable="local.thevalue2"> 46 <cfif not structIsEmpty(MissingMethodArguments)> 47 <cfinvoke component="#object#" method="#MissingMethodName#" argumentcollection="#MissingMethodArguments#" returnvariable="local.theValue1"> 48 <cfelse> 49 <cfinvoke component="#object#" method="#MissingMethodName#" returnvariable="local.theValue1"> 50 </cfif> 51 </cfsavecontent> 52 53 <cfif isDefined("local.theValue1")> 54 <cfreturn local.theValue1> 55 <cfelseif isDefined("local.theValue2")> 56 <cfreturn local.theValue2> 57 <cfelse> 58 <cfreturn ""> 59 </cfif> 60 <cfelse> 61 <cfreturn ""> 62 </cfif> 23 63 </cffunction> 24 64 … … 44 84 </cffunction> 45 85 86 <cffunction name="getThemeRenderer" output="false" returntype="any"> 87 <cfreturn event("themeRenderer")> 88 </cffunction> 89 46 90 <cffunction name="getContentBean" output="false" returntype="any"> 47 91 <cfreturn event("contentBean")> … … 83 127 </cfif> 84 128 <cfreturn this> 85 </cffunction>86 87 <cffunction name="OnMissingMethod" access="public" returntype="any" output="false" hint="Handles missing method exceptions.">88 <cfargument name="MissingMethodName" type="string" required="true" hint="The name of the missing method." />89 <cfargument name="MissingMethodArguments" type="struct" required="true"/>90 <cfset var local=structNew()>91 <cfset var object="">92 93 <cfif len(MissingMethodName)>94 95 <cfif isObject(getEvent()) and structKeyExists(variables.instance.event,MissingMethodName)>96 <cfset object=variables.instance.event>97 <cfelseif isObject(getContentRenderer()) and structKeyExists(getContentRenderer(),MissingMethodName)>98 <cfset object=getContentRenderer()>99 <cfelseif isObject(getContentBean()) and structKeyExists(getContentBean(),MissingMethodName)>100 <cfset object=getContentBean()>101 <cfelse>102 <cfthrow message="The method '#arguments.MissingMethodName#' is not defined">103 </cfif>104 105 <cfsavecontent variable="local.thevalue2">106 <cfif not structIsEmpty(MissingMethodArguments)>107 <cfinvoke component="#object#" method="#MissingMethodName#" argumentcollection="#MissingMethodArguments#" returnvariable="local.theValue1">108 <cfelse>109 <cfinvoke component="#object#" method="#MissingMethodName#" returnvariable="local.theValue1">110 </cfif>111 </cfsavecontent>112 113 <cfif isDefined("local.theValue1")>114 <cfreturn local.theValue1>115 <cfelseif isDefined("local.theValue2")>116 <cfreturn local.theValue2>117 <cfelse>118 <cfreturn "">119 </cfif>120 <cfelse>121 <cfreturn "">122 </cfif>123 129 </cffunction> 124 130 -
branches/5.2/www/requirements/mura/event.cfc
r2291 r2434 7 7 Mura CMS is distributed in the hope that it will be useful, 8 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ᅵSee the 10 10 GNU General Public License for more details. 11 11 12 12 You should have received a copy of the GNU General Public License 13 along with Mura CMS. If not, see <http://www.gnu.org/licenses/>.13 along with Mura CMS. ᅵIf not, see <http://www.gnu.org/licenses/>. 14 14 15 15 Linking Mura CMS statically or dynamically with other modules constitutes 16 16 the preparation of a derivative work based on Mura CMS. Thus, the terms and 17 conditions of the GNU General Public License version 2 ( GPL) cover the entire combined work.17 conditions of the GNU General Public License version 2 (ᅵGPLᅵ) cover the entire combined work. 18 18 19 19 However, as a special exception, the copyright holders of Mura CMS grant you permission 20 20 to combine Mura CMS with programs or libraries that are released under the GNU Lesser General Public License version 2.1. 21 21 22 In addition, as a special exception, the copyright holders of Mura CMS grant you permission23 to combine Mura CMS with independent software modules that communicate with Mura CMS solely22 In addition, as a special exception, ᅵthe copyright holders of Mura CMS grant you permission 23 to combine Mura CMS ᅵwith independent software modules that communicate with Mura CMS solely 24 24 through modules packaged as Mura CMS plugins and deployed through the Mura CMS plugin installation API, 25 provided that these modules (a) may only modify the /trunk/www/plugins/ directory through the Mura CMS25 provided that these modules (a) may only modify the ᅵ/trunk/www/plugins/ directory through the Mura CMS 26 26 plugin installation API, (b) must not alter any default objects in the Mura CMS database 27 27 and (c) must not alter any files in the following directories except in cases where the code contains … … 38 38 For clarity, if you create a modified version of Mura CMS, you are not obligated to grant this special exception 39 39 for your modified version; it is your choice whether to do so, or to make such modified version available under 40 the GNU General Public License version 2 without this exception.You may, if you choose, apply this exception40 the GNU General Public License version 2 ᅵwithout this exception. ᅵYou may, if you choose, apply this exception 41 41 to your own modified versions of Mura CMS. 42 42 ---> … … 141 141 </cffunction> 142 142 143 <cffunction name="getThemeRenderer" returntype="any" access="public" output="false"> 144 <cfreturn getValue('themeRenderer') /> 145 </cffunction> 146 143 147 <cffunction name="getSite" returntype="any" access="public" output="false"> 144 148 <cfif len(getValue('siteid'))> … … 188 192 <cfset setValue("localHandler",createObject("component","#application.configBean.getWebRootMap()#.#getValue('siteid')#.includes.eventHandler").init())> 189 193 </cfif> 194 195 <cfset setValue("themeRenderer",application.settingsManager.getSite(getValue("siteID")).getThemeRenderer())> 196 190 197 <cfreturn this> 191 198 </cffunction> -
branches/5.2/www/requirements/mura/servletEvent.cfc
r2291 r2434 7 7 Mura CMS is distributed in the hope that it will be useful, 8 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ᅵSee the 10 10 GNU General Public License for more details. 11 11 12 12 You should have received a copy of the GNU General Public License 13 along with Mura CMS. If not, see <http://www.gnu.org/licenses/>.13 along with Mura CMS. ᅵIf not, see <http://www.gnu.org/licenses/>. 14 14 15 15 Linking Mura CMS statically or dynamically with other modules constitutes 16 16 the preparation of a derivative work based on Mura CMS. Thus, the terms and 17 conditions of the GNU General Public License version 2 ( GPL) cover the entire combined work.17 conditions of the GNU General Public License version 2 (ᅵGPLᅵ) cover the entire combined work. 18 18 19 19 However, as a special exception, the copyright holders of Mura CMS grant you permission 20 20 to combine Mura CMS with programs or libraries that are released under the GNU Lesser General Public License version 2.1. 21 21 22 In addition, as a special exception, the copyright holders of Mura CMS grant you permission23 to combine Mura CMS with independent software modules that communicate with Mura CMS solely22 In addition, as a special exception, ᅵthe copyright holders of Mura CMS grant you permission 23 to combine Mura CMS ᅵwith independent software modules that communicate with Mura CMS solely 24 24 through modules packaged as Mura CMS plugins and deployed through the Mura CMS plugin installation API, 25 provided that these modules (a) may only modify the /trunk/www/plugins/ directory through the Mura CMS25 provided that these modules (a) may only modify the ᅵ/trunk/www/plugins/ directory through the Mura CMS 26 26 plugin installation API, (b) must not alter any default objects in the Mura CMS database 27 27 and (c) must not alter any files in the following directories except in cases where the code contains … … 38 38 For clarity, if you create a modified version of Mura CMS, you are not obligated to grant this special exception 39 39 for your modified version; it is your choice whether to do so, or to make such modified version available under 40 the GNU General Public License version 2 without this exception.You may, if you choose, apply this exception40 the GNU General Public License version 2 ᅵwithout this exception. ᅵYou may, if you choose, apply this exception 41 41 to your own modified versions of Mura CMS. 42 42 ---> … … 178 178 </cffunction> 179 179 180 <cffunction name="getThemeRenderer" returntype="any" access="public" output="false"> 181 <cfreturn getValue('themeRenderer') /> 182 </cffunction> 183 180 184 <cffunction name="getContentBean" returntype="any" access="public" output="false"> 181 185 <cfreturn getValue('contentBean') /> -
branches/5.2/www/requirements/mura/settings/settingsBean.cfc
r2335 r2434 115 115 <cfset variables.instance.theme=""/> 116 116 <cfset variables.instance.contentRenderer=""/> 117 <cfset variables.instance.themeRenderer=""> 117 118 118 119 <cffunction name="init" returntype="any" output="false" access="public"> … … 1176 1177 </cffunction> 1177 1178 1179 <cffunction name="getThemeRenderer" output="false"> 1180 <cfif not isObject(variables.instance.themeRenderer)> 1181 <cfif fileExists(expandPath(getThemeIncludePath()) & "/contentRenderer.cfc")> 1182 <cfset variables.instance.themeRenderer=createObject("component","#getThemeAssetMap()#.contentRenderer")> 1183 <cfelse> 1184 <cfset variables.instance.themeRenderer=createObject("component","mura.cfobject").init()> 1185 </cfif> 1186 </cfif> 1187 <cfreturn variables.instance.themeRenderer> 1188 </cffunction> 1189 1178 1190 </cfcomponent>
Note: See TracChangeset
for help on using the changeset viewer.
