Includes Mapping Properties

The Includes Mapping Properties page allows you to map external paths which are required in your files to locations in your project.

 

To access the Includes Mapping Properties page, right-click a PHP project in PHP Explorer view and select Properties | Resource -or- select the project and from the menu bar go to Project | Properties | Includes Mapping Properties.

The Include Mapping process allows you to have code assist and refactoring / organize includes options available from a file located in your project when you include a file situated on the corresponding file system/server path.

This is done by mapping a server or file system path to a folder in your project.

 

 

Usage Example

Example:

In your code you include an 'a.php' file from the server path localhost/abc/a.php:

During the development process, you want the refactoring/organize includes and code assist options available to you in the code to be taken from an a.php file situated in 'folder1' of your 'abc' project.

In order to achieve this, you should map the include path 'localhost/abc/' to '/abc/folder1'.

PDT will behave as though a.php has been included from within your project and content for refactoring/organize includes and code assist operations will now be taken from the a.php file situated in folder1 of your 'abc' project.

 

 

Instructions on how to complete a procedure

To create a new Include Map:

  1. Click New.
    The New Include Mapping dialog is displayed.

  1. In the 'Include' field, enter the server/external file system path

  2. Click the Browse button to the right of the 'Map to' field and select a folder in your project to which the include path will be mapped.

  3. Click OK.
    The Include Mapping will be added to the Include Mapping list.

Whenever a file is included from the selected path, the refactoring/organize includes and code assist options available to it will be taken from the file in the location to which it has been mapped in your project.

 

 

Related Links

Related Links:

Path Mapping

Refactoring

Code Assist

Code Analyzer Properties

File Network Properties

Formatter Properties

IPHP Debug Properties

PHP Include Path Properties

PHP Interpreter Properties

PHP Java Bridge Properties

PHP Task Tags Properties