It is (so far) a purely educational tutorial module conceived to demonstrate (progressively) "one of each" of the possible features and capabilities of contributed Drupal7 modules, encapsulated in truly object-oriented form, and with a high level of support for graphical Unified Modeling Language (UML) diagrams of the system. The demos run live on this site. Or you can now experiment with it easily yourself: Download: OOE bundle with adapted Drupal-7.36 and installation instructions.
The OOE module was intentionally spawned from existing Drupal.org tutorials such as:
Many of the demos in OOE = Object Oriented Examples = One Of Each - such as CurrentPosts - are object-oriented adaptations of such tutorials, and are offered with sincere thanks to the original developers of those Drupal tutorials and examples.
For example, DemoOfForms is adapted from the Drupal7: Example: Form API, but translated into the object-oriented world using a form controller and object-oriented form building components (instead of Drupal form arrays with Drupal "by convention" array keys).
This module and this site promote together progress towards true object-orientation in Drupal by demonstrating a bridge system between the non-OO "hook and handler" (and structured arrays) world of Drupal and a completely object-oriented PHP system for interacting with Drupal core that never requires you to remember or type a Drupal structured array key ever again !
All of the demos (such as the minimal Demo project, DemoOfPageArguments , DemoOfForms) are driven by the OoeBridge that "maps" the ooe.module file into a truly, completely, object-oriented space (except for those examples like CurrentPosts deliberately designed here to show you "how not to do it" the old non-OO Drupal hook/handler/array way).
Best of all, the (very strict) Webel coding style of OOE is developed to be "friendly" to reverse-engineering into graphical Unified Modeling Language (UML) diagrams, at least as much as can be achieved with type-hinting and documentation tricks in PHP.
And without understanding those special UML-friendly PHP coding policies you will likely also not understand: Webel UML for PHP: necessary departures from Drupal coding and documentation standards: special OO bridge method naming conventions; and UML-friendly 'I' prefix Interface names.
The OOE = Object Oriented Examples = One Of Each tutorial module is, and will always, be a work in progress, and is offered in the hope that it is useful to those Drupal developers intererested in OOP and design patterns, and that it helps promote a move towards true object-orientation in Drupal, and especially more use of true object-orientation in contributed module development.
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.