summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimeon Simeonov2013-09-20 19:35:11 +0200
committerSimeon Simeonov2013-09-20 19:35:11 +0200
commit5209ed708be9f6233393cbdef8c8faf640d3ba4f (patch)
treee324a0c54815843cffd097411368e54ff18300c0
parent7bf6712498ad2618bee7bf5b3866fb6da0772339 (diff)
Few more PHP-snippets
-rw-r--r--.emacs.d/mysnippets/text-mode/php-mode/ife10
-rw-r--r--.emacs.d/mysnippets/text-mode/php-mode/ppf6
-rw-r--r--.emacs.d/mysnippets/text-mode/php-mode/ppg6
-rw-r--r--.emacs.d/mysnippets/text-mode/php-mode/pps6
4 files changed, 28 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/php-mode/ife b/.emacs.d/mysnippets/text-mode/php-mode/ife
new file mode 100644
index 0000000..eca1f01
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/php-mode/ife
@@ -0,0 +1,10 @@
1#name : php if (...) { ... } else { ... }
2# --
3if (${1:condition})
4{
5 $0
6}
7else
8{
9
10} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/php-mode/ppf b/.emacs.d/mysnippets/text-mode/php-mode/ppf
new file mode 100644
index 0000000..e526c42
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/php-mode/ppf
@@ -0,0 +1,6 @@
1#name : php public function
2# --
3public function ${1:name}()
4{
5 $0
6}
diff --git a/.emacs.d/mysnippets/text-mode/php-mode/ppg b/.emacs.d/mysnippets/text-mode/php-mode/ppg
new file mode 100644
index 0000000..b648335
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/php-mode/ppg
@@ -0,0 +1,6 @@
1#name : php public function
2# --
3public function get${1:name}()
4{
5 return $this->$0;
6}
diff --git a/.emacs.d/mysnippets/text-mode/php-mode/pps b/.emacs.d/mysnippets/text-mode/php-mode/pps
new file mode 100644
index 0000000..4eb0fad
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/php-mode/pps
@@ -0,0 +1,6 @@
1#name : php public function
2# --
3public function set${1:name}(${2:value})
4{
5 $this->$0$2 = $2;
6}