Definition file editor for PHP

With the PHP Definition File Editor, you can modify or extend the PHP language definition that Pajaro uses in the dynamic hint functions and on the Programming Languages tab. To access the PHP definition file editor, use the PHP definition file editor command, which is located in the main menu. You can also launch it using the button located in the program settings under Facilitation, Dynamic Attributes, Other or in the menu. The button is shown above.

The PHP definition file editor window consists of two tabs: the "Constants and variables" tab and the "Functions" tab.

"Constants and variables" tab

On this tab you define predefined constants and variables and assign them to one of the available categories. You can assign the added variables and constants to categories:

  • PHP constants
  • Apache variables (request)
  • Apache variables (server)
  • PHP variables

After selecting a category, a list of items assigned to the selected category will appear in the list on the left side of the tab. By clicking on the selected one, the "Description" and "Value Type" fields will be filled accordingly. You can then change the selected item.

If you want to add a new item to a selected category, follow the same procedure. Select a category and with the button marked "plus" add a new item. Then you can edit it in the mentioned "Description" and "Item type" fields.

Element types

You can assign different types to the category components on the first tab:

  • string - type "string"
  • int - type "integer"
  • float - type "floating-point number"
  • bool - "logical" type
  • array - "array" type
  • object - type "object"

The types determine how some dynamic hints functions work. The type of the item is also displayed on the Languages tab of the main program window.

"Functions" tab

On this tab you can define functions that are supported in PHP supported in Spider. On the left side of the tab you will find a list of function categories. Categories help you sort functions into groups. Categories are used to present functions hierarchically on the Programming Languages tree in the main window. You can also use this to disable support for selected function categories in dynamic function hints in the Facilitations, dynamic attributes, other settings. You can add and remove categories using the buttons under the list.

Next to the category list is a list of functions assigned to it. When you select a category in the list on the left, the names of all the functions in that category are loaded here. You can add, delete and edit functions using the buttons below the list. Editing and adding a new one is done in the New PHP Function window.

Related topics

To top