Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
$${1:arrayName} = array('${2}' => ${3});${4}
|
||||
@@ -0,0 +1,3 @@
|
||||
case '${1:value}':
|
||||
${2:// code...}
|
||||
break;${3}
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* ${1}
|
||||
*/
|
||||
class ${2:ClassName}
|
||||
{
|
||||
${3}
|
||||
function ${4:__construct}(${5:argument})
|
||||
{
|
||||
${6:// code...}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* ${1}
|
||||
*/
|
||||
class ${2:ClassName} extends ${3:AnotherClass}
|
||||
{
|
||||
${4}
|
||||
function ${5:__construct}(${6:argument})
|
||||
{
|
||||
${7:// code...}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
define('${1}'${2});${3}
|
||||
@@ -0,0 +1 @@
|
||||
${1}defined('${2}')${3}
|
||||
@@ -0,0 +1,3 @@
|
||||
do {
|
||||
${2:// code... }
|
||||
} while (${1:/* condition */});"
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* ${1:undocumented class}
|
||||
*
|
||||
* @package ${2:default}
|
||||
* @author ${3:`g:snips_author`}
|
||||
**/${4}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* $2
|
||||
* @return ${4:void}
|
||||
* @author ${5:`g:snips_author`}
|
||||
**/
|
||||
${1:public }function ${2:someFunc}(${3})
|
||||
{${6}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* ${1}
|
||||
*
|
||||
* @author ${2:`g:snips_author`}
|
||||
* @version ${3:$Id$}
|
||||
* @copyright ${4:$2}, `strftime('%d %B, %Y')`
|
||||
* @package ${5:default}
|
||||
**/
|
||||
/**
|
||||
* Define DocBlock *//
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* $1
|
||||
* @package ${2:default}
|
||||
* @author ${3:`g:snips_author`}
|
||||
**/
|
||||
interface ${1:someClass}
|
||||
{${4}
|
||||
} // END interface $1"
|
||||
@@ -0,0 +1 @@
|
||||
echo "${1:string}"${2};
|
||||
@@ -0,0 +1,3 @@
|
||||
else {
|
||||
${1:// code...}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
elseif (${1:/* condition */}) {
|
||||
${2:// code...}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {
|
||||
${4:// code...}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
foreach ($${1:variable} as $${2:key}){
|
||||
${3:// code...}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
foreach ($${1:variable} as $${2:key} => $${3:value}){
|
||||
${4:// code...}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
${1:public }function ${2:FunctionName}(${3})
|
||||
{
|
||||
${4:// code...}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
$_GET['${1}']${2}
|
||||
@@ -0,0 +1 @@
|
||||
$GLOBALS['${1:variable}']${2: = }${3:something}${4:;}${5}
|
||||
@@ -0,0 +1,3 @@
|
||||
if (${1:/* condition */}) {
|
||||
${2:// code...}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
if (${1:/* condition */}) {
|
||||
${2:// code...}
|
||||
} else {
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
include '${1:file}';${2}
|
||||
@@ -0,0 +1 @@
|
||||
include_once '${1:file}';${2}
|
||||
@@ -0,0 +1 @@
|
||||
error_log(var_export(${1}, true));${2}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
${1}
|
||||
?>
|
||||
@@ -0,0 +1 @@
|
||||
$_POST['${1}']${2}
|
||||
@@ -0,0 +1 @@
|
||||
require '${1:file}';${2}
|
||||
@@ -0,0 +1 @@
|
||||
require_once '${1:file}';${2}
|
||||
@@ -0,0 +1 @@
|
||||
$_REQUEST['${1}']${2}
|
||||
@@ -0,0 +1 @@
|
||||
$_SESSION['${1}']${2}
|
||||
@@ -0,0 +1,9 @@
|
||||
switch ($${1:variable}) {
|
||||
case '${2:value}':
|
||||
${3:// code...}
|
||||
break;
|
||||
${5}
|
||||
default:
|
||||
${4:// code...}
|
||||
break;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b};${5}
|
||||
@@ -0,0 +1,6 @@
|
||||
try {
|
||||
${1:// code...}
|
||||
} catch (${2:Exception} $e) {
|
||||
${3:// code...}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
var_export(${1});${2}
|
||||
@@ -0,0 +1,3 @@
|
||||
while (${1:/* condition */}) {
|
||||
${2:// code...}
|
||||
}
|
||||
Reference in New Issue
Block a user