Skip to content

Instantly share code, notes, and snippets.

View wagstaffj's full-sized avatar

Jason Wagstaff wagstaffj

View GitHub Profile
Application.cfc
component extends=framework.one {
this.ormenabled = true;
this.datasource = "store";
this.ormSettings.dbCreate = "dropcreate";
this.ormSettings.logsql = true;
this.ormSettings.dialect = "Oracle10g";
variables.framework.reloadApplicationOnEveryRequest = true;
<cfset variables.epoch = Now().getTime() />
<cfhttp method="get" url="http://www.umsl.edu/campus-calendar/2015/index.xml" />
<cfset variables.events = XMLParse(cfhttp.filecontent) />
<cfset variables.xmlsearchpath = "//event[start > #variables.epoch#]" />
<cfset variables.eventresults = XMLSearch(variables.events,variables.xmlsearchpath) />
component accessors="true" {
property daysBefore;
property daysAfter;
property type="struct" name="errorMessage" default="#StructNew()#";
function validate(){
return true;
}