This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component | |
output = 'false' | |
accessors = 'true' | |
{ | |
/* ENTITY SPECIFIC */ | |
property name='messageType' type ='string'; | |
property name='messageTitle' type ='string'; | |
property name='messageText' type ='string'; | |
/*** CONSTRUCTOR ********************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component | |
accessors = true | |
{ | |
property name='someprop'; | |
public function someMethod() { | |
error = h[; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction access="public" name="qry_ordersGet" output="no" returntype="query"> | |
<cfargument name="orderKeyList" type="string" required="no" default=""> | |
<cfargument name="personKeyList" type="string" required="no" default=""> | |
<cftry> | |
<cfquery | |
name="qry_ordersGet" | |
datasource="#variables.datasource#"> | |
SELECT o.tablePK | |
,o.tblPeopleFK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public any function onAdminHTMLFootRender($) { | |
var str = ''; | |
savecontent variable='str' { | |
WriteOutput('<script> | |
jQuery(document).ready(function($){ | |
$(".nav-site-inner .container>ul").append(''<li><a href="/plugins/#variables.framework.package#"><i class="icon-book"></i><span>Your Plugin Name</span></li>''); | |
}); | |
</script>'); | |
} | |
return str; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component | |
output="false" | |
{ | |
public SingletonFactory function init() | |
output = 'false' | |
{ return this; } | |
public any function getObject(required String objectName) | |
output = 'false' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component | |
output = 'false' | |
{ | |
public UserFacade function init() output = 'false' | |
{ | |
//reset(); | |
return this; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
... | |
<ormcfclocation>path/to/entites</ormcfclocation> | |
... | |
<plugin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id='myContext'> | |
<!--- bind property rule to form field ---> | |
<cfset vt.aliasRule( | |
object = 'address', | |
property = 'countryCode' | |
fieldname = 'billingAddressCountry' | |
context = 'myContext' ) /> | |
<input name="billingAddressCountry" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Permission.cfc: | |
property name="groups" fieldtype="many-to-many" cfc="Group" | |
type="array" singularname="Group" | |
fkcolumn="user_permission_id" inversejoincolumn="user_group_id" | |
linktable="user_permission_link" inverse="true"; | |
public void function addGroup(required Group group) { | |
arguments.group.addPermission(this); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local.rsSites = arguments.$.getBean('settingsManager').getList(); // all sites | |
local.rsPlugin = arguments.$.getBean('pluginManager').getPlugin( variables.framework.package ); // plugin record | |
local.pluginAssignments = arguments.$.getBean('pluginManager').getAssignedSites( local.rsPlugin.moduleID ); // recordset of sites this plugin belongs to | |
local.pluginXML = arguments.$.getBean('pluginManager').getPluginXML( local.rsPlugin.moduleID ); | |
// loop assigned sites and make sure they are setup per the plugin requirements | |
for (site in local.pluginAssignments) { | |
// make sure all class (defined in plugin/config.xml.cfm) extentions exist | |
application.configBean.getClassExtensionManager().loadConfigXML( local.pluginXML, site.siteID ); |