[keyword] !explanation

[note] Q: Why aren't you making (more) use of database functionality of the core Drupal7 entities, "fieldable" entities, and the Entity API in your graphical UML for PHP demos ? A: Because I have not yet reversed those aspects of Drupal7 into graphical UML.

Applies to

In order to demonstrate the Webel recipe for PHP the database interactions for the demo modules on this site are made deliberately very simple. This is in part to simplify the representation of those parts of the module involving the database interaction, but largely because I have not yet reverse engineered the Drupal7 core entity/field system of the Entity API system into the Webel UML recipe for UML.

[note] Q: Why do some diagrams and models contain so many static public methods and basically fully static "Helper" and "Builder" Classes with only a few instantiated objects ? A: It's an interim step for progressive migration to classes and objects.

Applies to

Detailed answer: Because this is part of the migration process from a non-OO Drupal7 project to a more OO one using the Webel process. As a first step, flat functions from Drupal7-style include files are encapsulated - along with relevant data constants - into static public class methods. This is just UML-friendly enough to enable the 1st stage of reverse engineering into graphical UML with PEAR:PHP_UML !

[note] Focus diagrams do not always show every relationship between all elements; usually only the main relationships from the focus element to neighbours are shown. Relationships between its operators and neighbours and between neighbours are not always shown

Applies to

[note] In this diagram the UML containment operator is used between Package/Model symbols and their contained elements, rather than graphical containment.

Applies to

[note] If you are just writing a Class that demonstrates the usage of an Interface via a given implementation the demo Class does not necessarily need a dedicated Interface. It should however still offer interaction via Interfaces.

Applies to
Subscribe to RSS - !explanation