great work! about time that somebody took up the challenge.
missing suggestions / feature requests:
- nxcExtensionSettings::executesql: it is hardcoded to mysql :(, it uses a bad directory for sql files (an eZP standard does exist for that!), it does not check if file exists, and it is a function that actually exists in ezdbschema. Last but not least, using .dba file for defining sql elements needed by an extension is now recommended - try in 4.3 the upgrade_check/db page
- class nxcextension: remove include_once, let autoload do its magic via class_exists
- dependencies should be able to specify
+ versions (eg. I need ezjscore 0.2 min and 0.99 max)
+ min/max ezp versions, too
+ possibly a specific db, or other ez feature (eg webdav). harder to implement...
- I'd recommend to specify the extension dependencies in the existing ezinfo.php file, by adding a new static method to that class - this leaves us with a dependency specification that is not ties to the way it is checked/implemented (might like to read that and code that into pear packages later, and leave pear to do the checking/handling)
Principal Consultant International Business
Member of the Community Project Board