PHP Project Outline View

The PHP Project Outline View displays all PHP elements and element types in the current project. The elements are grouped according to type and are displayed  in a tree-like browser.

Note:    If an element name is used more than once, it will appear separately for each file it is used in.

The PHP Outline View displays only PHP elements belonging to the current PHP project.

Figure:  Outline View Integrated with Editor

Features
Integration with Editor

The PHP Project Outline View is integrated with the Editor, therefore, if you select a PHP element in the View, the Editor will jump to the element's declaration in the file in which it is declared. In addition, the View enables you to add PHPdoc blocks to any PHP element.

Note:    Toggle the link to Editor on/off using the Link with Editor button (see Figure above).

Toggle, Sort
  1. Press the toggle button. The list of elements will be grouped according to type (Class \ Constant \ Function \ etc).

  2. Press the sort button. The list of elements will be grouped alphabetically (including sub nodes).

PHP Element Types

The PHP Element types are represented by the icons listed in the table shown below.

Table:  PHP Project Outline View - PHP Element Types

PHP Element Type

Icon

Description

Classes

 

Green ball, large, around the letter "C"; Class's name

Interfaces

Purple ball, large, around the letter "I", large; Variable's name

Functions

Green ball, small, Function's name**

Class Variables

Empty green ball, small; Variable's name

Class Constants

Empty green ball, red letter "c" as superscript; Constant's name**

Constants

TBD

Included Files

 

File's name

TBD*****

TBD*****

Adding PHPdoc Blocks

PHP Element Without Parameters or Return

  1. Go to the PHP Project Outline View.

  2. Select (or create and then select) a PHP Element with no parameters or return statement. The Editor will jump to the element's declaration.

  3. Right click; select Source | Add PHP Doc.

 

Figure:  Creating a PHPdoc Block

  1. The following, empty, PHPdoc block will be inserted into the code (before the PHP element)..

Figure:  PHP func

  1. Enter a description for the element and save.

PHP Element With Parameters and/or a Return Statement

  1. Repeat the above, however, add parameters to the element, e.g.,
       function browse_magazine($first,$second)  {}

  2. This time, the following, empty, PHPdoc block will be inserted into the code before the element. In this case the PHPdoc Block includes references to the function's parameters (of unknown type.

  1. If we use the following functions, of known/mixed types, we obtain the PHPdoc blocks shown following.

 

  1.  The PHPdoc blocks include all descriptive element types present at the time the PHPdoc block is created.

Note:    If a PHPdoc block already exists, the option will not be available.
If components are added to the PHP element after the PHPdoc block has been created, the PHPdoc block must be updated manually (or erased and re-created).