Lambda
This module lets you create a module without writing PHP code.
Warning: this module requires PHP 5.2!
Based on the aspect oriented nature of Drupal, it adds functional/declarative way with strict typing to create modules.
Advantages of the declarative programming and strict typing:
- easy testing
- more secure
- less bugs (bugs based on type errors are not possible [eg.: you get null or false instead of something])
- every single bit is reusable
Features:
- easy integration (all you have to do is to write some 10-lines-long classes)
- easy exporting (patterns, bones etc), since the modules itself can be stored in XML, YAML or any other format (CSV, tabulated txt, RDF, OWL)
- "code" "runs" in a managed context
The lambda_builder GUI will be made in Flex.
This module is under heavy development.
Development note: with D7 code freeze, the 6.x development branch will be suspended.
Testing instructions
- Set error reporting to
E_ALL | E_STRICTin php.ini - Or set
php_value error_reporting 8191in .htaccess - If you have a other modules installed, and you get a lot of E_STRICT warnings about static function calls (which is valid in PHP 4), you might want to set error reporting to E_ALL (6143).
- Install xdebug
- If you have devel installed, set error handler to "None"
(this number is tested on PHP 5.2, it may vary depending on your PHP version; you can check it by typing print E_ALL|E_STRICT to the php interpreter, invoked by php -a)
Extra requirements for modules
- all: SPL (normally part of PHP)
- lambda_xml: SimpleXML (normally part of the PHP)
