Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:MetalMatze/ci-snippets

  • Loading branch information...
commit ec9e3d748bcb711669a7aef1b7ce1e3fd6f5cab8 2 parents dbe8ca9 + a13afaf
@MetalMatze MetalMatze authored
View
1  README.md
@@ -80,6 +80,7 @@ If you find error or wathever just fork it and send me a pull request.
* db_update
* db_where
* db_last
+* db_order
#### Misc
View
10 db_insertbatch.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+\$this->db->insert_batch('${1:Table}', \$${2:object});
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>db_insertbatch</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php</scope>
+ <description>CI - Active Record DB Insert Batch</description>
+</snippet>
View
11 db_order.sublime-snippet
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[
+\$this->db->order_by('${1:title}', '${2:desc}');
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>db_order</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php</scope>
+ <description>CI - Active Record DB Order By</description>
+
+</snippet>
View
10 db_truncate.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[
+\$this->db->truncate('${1:Table}');
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>db_truncate</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php</scope>
+ <description>CI - Active Record Truncate Table</description>
+</snippet>
Please sign in to comment.
Something went wrong with that request. Please try again.