With sincere gratitude from Webel IT Australia to Drupal CMS. Although it's not perfect, it is very powerful and is very popular with good reason.
A Webel module bridge for Drupal consists of a special Drupal .module file (say 'ooe.module') and a Webel Drupal-PHP-bridge implementation Class such as OoeBridge for the main OOE = Object Oriented Examples = One Of Each tutorial module.
This enables one to (code modules for Drupal7 in a truly, purely object-oriented PHP and (best of all) one can then also model the module system in graphical Unified Modeling Language (UML) !
The main .module file should delegate every (!) non-OO function to the Webel bridge class with identical method signatures, except please always drop the module name from each delegate method ! This includes bridge method equivalents of hook functions.
This special OOE bridge convention means that the delegate methods (only) of such bridge classes (only) must depart from the Drupal OO coding standard recommendation that:
'Methods and class properties should use lowerCamel naming'
This is in order to match the non-OO Drupal coding standard that:
'Functions and variables should be named using lowercase, and words should be separated with an underscore'.
This applies only to hook and handler delegate methods:
This educational site is brought to you by Webel IT Australia, experts in database-driven web technology for industry, engineering, education and science. Webel is one of Australia's most experienced Drupal CMS web site specialists.
'It ain't necessarily so,
It ain't necessarily so,
The t'ings dat yo' li'ble,
To read in de [Drupal6/7] Bible,
It ain't necessarily so.'
Heresy: Doctrine rejected as false by religious authorities.
Logical fallacy: Appeal to popularity, Argumentum ad populum.
© 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.