Skip to content

Commit 20149cd

Browse files
committed
first import
0 parents  commit 20149cd

27 files changed

+644
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1:index}
5+
*/
6+
any function ${1:index}(event,rc,prc)}{
7+
${0}
8+
event.setView("${TM_FILENAME/\.cfm//}/${1}");
9+
}
10+
]]></content>
11+
<tabTrigger>action</tabTrigger>
12+
<scope>source.cfscript</scope>
13+
<description>Handler Action</description>
14+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes when an exception occurs in this handler
5+
*/
6+
function onError(event,rc,prc,faultAction,exception,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>onerror</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>OnError Action</description>
13+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes when you execute an action that is missing
5+
*/
6+
function onMissingAction(event,rc,prc,missingAction,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>onma</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>OnMissingAction</description>
13+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes after your '${1} action only
5+
*/
6+
any function post${1}(event,rc,prc,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>postaction</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>Post{Action} action</description>
13+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes after all handler actions
5+
*/
6+
any function postHandler(event,rc,prc,action,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>post</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>PostHandler action</description>
13+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes before your '${1} action only
5+
*/
6+
any function pre${1}(event,rc,prc,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>preaction</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>Pre{Action} action</description>
13+
</snippet>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* Executes before all handler actions
5+
*/
6+
any function preHandler(event,rc,prc,action,eventArguments){
7+
${0}
8+
}
9+
]]></content>
10+
<tabTrigger>pre</tabTrigger>
11+
<scope>source.cfscript</scope>
12+
<description>PreHandler action</description>
13+
</snippet>

orm/ActiveEntity.sublime-snippet

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* A cool ${1:EntityName} entity
5+
*/
6+
component persistent="true" table="${2:TableName}" extends="coldbox.system.orm.hibernate.ActiveEntity"{
7+
8+
// Primary Key
9+
property name="id" fieldtype="id" column="id" generator="${3:native}";
10+
11+
// Properties
12+
${0}
13+
14+
// Validation
15+
this.constraints = {
16+
// Example: age = { required=true, min="18", type="numeric" }
17+
};
18+
19+
// Constructor
20+
function init(){
21+
super.init();
22+
23+
return this;
24+
}
25+
}
26+
27+
]]></content>
28+
<tabTrigger>active</tabTrigger>
29+
<scope>source,text</scope>
30+
<description>Create an Active ORM Entity</description>
31+
</snippet>

orm/Entity.sublime-snippet

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* A cool ${1:EntityName} entity
5+
*/
6+
component persistent="true" table="${2:TableName}"{
7+
8+
// Primary Key
9+
property name="id" fieldtype="id" column="id" generator="${3:native}";
10+
11+
// Properties
12+
${0}
13+
14+
// Validation
15+
this.constraints = {
16+
// Example: age = { required=true, min="18", type="numeric" }
17+
};
18+
19+
// Constructor
20+
function init(){
21+
22+
return this;
23+
}
24+
}
25+
26+
]]></content>
27+
<tabTrigger>entity</tabTrigger>
28+
<scope>source,text</scope>
29+
<description>Create an ORM Entity</description>
30+
</snippet>

orm/ORMService.sublime-snippet

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* A ColdBox Generic ORM entity service
5+
*/
6+
component extends="coldbox.system.orm.hibernate.BaseORMService" singleton{
7+
8+
/**
9+
* Constructor
10+
*/
11+
function init(){
12+
13+
// init super class
14+
super.init();
15+
16+
// Use Query Caching
17+
setUseQueryCaching( ${1:false} );
18+
// Query Cache Region
19+
setQueryCacheRegion( '${2:query.region}' );
20+
// EventHandling
21+
setEventHandling( ${3:true} );
22+
23+
${0}
24+
25+
return this;
26+
}
27+
28+
}
29+
]]></content>
30+
<tabTrigger>ormservice</tabTrigger>
31+
<scope>source,text</scope>
32+
<description>Create a ColdBox Generic ORM Entity Service</description>
33+
</snippet>

0 commit comments

Comments
 (0)