Home Download Buy Blog Forum Support

PHP Completion

PHP Completion

Postby alphalogic on Sun Jun 16, 2013 9:06 am

PHP Completion should include (in PHP.sublime-completions):

predefined constants: TRUE , FALSE , NULL
__LINE__ , __FILE__ , __DIR__ , __FUNCTION__ , __CLASS__ , __TRAIT__ , __METHOD__ , __NAMESPACE__
PHP_VERSION , PHP_DEBUG , PHP_OS , PHP_LIBDIR , PHP_DATADIR , PHP_SYSCONFDIR , PHP_CONFIG_FILE_PATH etc...
E_ERROR , E_WARNING , E_PARSE , E_NOTICE , E_CORE_ERROR , E_CORE_WARNING , E_COMPILE_ERROR etc...

$this variable
ternary operator: (expr) ? (val1) : (val2);

completion for functions:
global statement
global: { "trigger": "global", "contents": "global ${1:varname};" }
static statement
static: { "trigger": "static", "contents": "static ${1:varname};" }
return statement
return: { "trigger": "return", "contents": "return ${1:varname};" }
sizeof() function
sizeof: { "trigger": "sizeof", "contents": "sizeof(${1:var})" }
Last edited by alphalogic on Thu Aug 08, 2013 8:16 am, edited 4 times in total.
alphalogic
 
Posts: 10
Joined: Tue May 14, 2013 8:02 am

PHP Completion

Postby alphalogic on Tue Aug 06, 2013 6:31 am

PHP Completion should include completion for Classes and Objects.
alphalogic
 
Posts: 10
Joined: Tue May 14, 2013 8:02 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 13 guests