PhpStorm 7.1.0 Web Help

View | Tool Windows | Hierarchy

Use this tool window to analyze and navigate through hierarchies of classes. The tool window is available only after you have built a hierarchy for the first time.

The contents of the tool window are not automatically updated as you navigate through the source code or switch between editor tabs. The tool window shows the results of the latest hierarchy command and is updated when you run the next hierarchy command, unless the tab with one of the previously built hierarchies is pinned.

Toolbar buttons

Item Description Available In
img When this button is pressed, the hierarchical tree shows both the parent and child classes of the selected class, which is marked with an arrow img in the tree of results. Class hierarchies
img Depending on the hierarchy type:
  • For class hierarchies - when this button is pressed, the tool window shows all classes that extend the selected class.
  • For call hierarchies - when this button is pressed, the tool window shows the callees of the selected method.
Class hierarchies
Call hierarchies
img Depending on the hierarchy type:
  • For class hierarchies - when this button is pressed, the tool window shows the hierarchy of each supertype of the current class.
  • For call hierarchies - when this button is pressed, the tool window shows the callers of the selected method.
Class hierarchies
Call hierarchies
img When this button is pressed, the elements within a tree are sorted alphabetically. All hierarchies
Scope Use this drop-down list to limit the scope of the current hierarchy:
  • Project - PhpStorm traces usages of the method across the project.
  • Test - PhpStorm traces usages of the method across the test classes.
  • All - PhpStorm traces usages of the method across the project and the libraries.
  • This class - the scope is limited to the current class.
Call hierarchies

Note

In a method hierarchy, the tree-views of the following classes are avilable:

  • img - where this method is defined.
  • img - where this method is not defined, but defined in the superclass.
  • img - where this method should be defined, because the class is not abstract.
img If you made any changes of the classes or the class structure, they become visible in the Hierarchy tool window only after you press this button. All hierarchies
img Toggle the Autoscroll to source mode. When the button is pressed, every time the node is focused, the corresponding line of source code is highlighted in the editor. All hierarchies
pin.png When this button is pressed, the current tab will not be overwritten; instead, the results of the next command will be displayed in a new tab. All hierarchies
img Click this button to close the selected tab of results. All hierarchies
img Click this button to show reference page. All hierarchies

See Also

Procedures:

Getting Started:

Web Resources: