Contents

 
Home
PHPRunner 6.1 manual
Prev Page Next Page
 
 

Intellisense config files

 

Intellisense provide autocomplete popups and function calltips in Event Editor that make writing code much easier.

Autocomplete popup

intellisense_example

Calltips

calltip

Intellisense settings stored in the following files located int he same directory where PHPRunner installed.

runner-js-functions.xml - PHPRunner Javascript functions
runner-php-functions.xml -PHPRunner PHP functions
php-functions.xml - built-in PHP functions

runner-js-functions.xml and runner-php-functions.xml

runner-js-functions.xml and runner-php-functions.xml files have the same format. Files contain a list of compounds (classes). Each compound has the the following structure:

· <name> - type name. Nested compound refer refer to this type name.
· <items> - a list of items that belong to compound. Typically a list of functions or variables. Items have the following structure:
· <name> - name, that will be shown in Event Editor autocomplete popup.
· <kind> - either variable or function.
· <type> - variable type for variable or return type for function.
· <desc> - description shown in function calltips.

Functions also feature <params> node that lists function parameters:

<param optional='true'>addSet = false</param>

Attribute optional is used for to display optional parameters in square brackets in function calltips.

php-functions.xml

php-functions.xml provides a list of all built-in PHP functions extracted from PHP documentation. Each function is defined by <function> node that has the following subnodes:

· <name> - function name.
· <class> - functions class this function belongs to e.g.:

<class>Math Functions</class>

· <params> - lists function parameters e.g:

<params>

   <param>string $regexp</param>

   <param optional="true">bool $exclude = false</param>

</params>

· <ret> - return type.
· <desc> - function description.
Converted from CHM to HTML with chm2web Standard 2.85 (unicode)