diff options
| author | Simeon Simeonov | 2013-09-20 19:35:11 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2013-09-20 19:35:11 +0200 |
| commit | 5209ed708be9f6233393cbdef8c8faf640d3ba4f (patch) | |
| tree | e324a0c54815843cffd097411368e54ff18300c0 | |
| parent | 7bf6712498ad2618bee7bf5b3866fb6da0772339 (diff) | |
Few more PHP-snippets
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/php-mode/ife | 10 | ||||
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/php-mode/ppf | 6 | ||||
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/php-mode/ppg | 6 | ||||
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/php-mode/pps | 6 |
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 | # -- | ||
| 3 | if (${1:condition}) | ||
| 4 | { | ||
| 5 | $0 | ||
| 6 | } | ||
| 7 | else | ||
| 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 | # -- | ||
| 3 | public 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 | # -- | ||
| 3 | public 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 | # -- | ||
| 3 | public function set${1:name}(${2:value}) | ||
| 4 | { | ||
| 5 | $this->$0$2 = $2; | ||
| 6 | } | ||
