Working with Diagrams
In this part:
- Working with Diagrams
- Viewing Diagram
- Adding Node Elements to Diagram
- Creating Node Elements and Members
- Creating Relationship Links Between Elements
- Deleting Node Elements from Diagram
- Navigating to Source from Diagram
- Viewing Changes as Diagram
- Viewing Class Hierarchy as a Class Diagram
- Viewing Siblings and Children
- Viewing Ancestors, Descendants, and Usages
Prerequisites
Before you start working with UML diagrams, make sure that the UML Support plugin is enabled. The plugin is bundled with PhpStorm and is activated by default. If it is not, enable the plugin as described in Enabling and Disabling Plugins.
Basics
UML model in PhpStorm is represented by a Class diagram in standard notation.
PhpStorm enables using UML class diagrams to analyze PHP applications, and the structure of the databases and tables. Besides that, you can explore changes committed to VCS.
Features
In PhpStorm, Class diagram features:
- Ability to view UML model as a diagram in a separate editor tab, in a pop-up window, or as a preview.
- Ability to invoke UML class diagram from the
Project, Structure, Database, Version Control
tool windows, the History tab of the Version Control tool window, and Navigation bar.
In the editor, one can view class diagram for the whole class.
- Navigation from a diagram element to the underlying source code.
- Highlighting siblings and children classes.
- Refactorings (Rename, Move, Safe Delete, Inline).
- Navigation to class, file or symbol by name and to the last edit location.
- Viewing class information at the tooltip, and quick documentation lookup.
- Viewing changed classes as a UML Class diagram.
- Quick hierarchy view in a UML Class diagram pop-up window.
- Viewing subtypes and super classes.
- Ability to find usages of a node element or member.