The first step of the ADMIN.php refactoring is to extract methods from ADMIN.php to helper classes, cleaning the admin class and providing reusable methods for the rest of the system. This task is almost done, although some work is still necessary (there is more code to extract) and it was not well tested yet.
Many object logic and almost all database access were moved to 12 helper classes: BLOG_DB, PLUGIN_DB, MEMBER_DB, ITEM_DB, COMMENT_DB, TEAM_DB, CATEGORY_DB, BAN_DB, SKIN_DB, TEMPLATE_DB, CONFIG_DB and LOG_DB.
Improvements on ADMIN.php and the helper classes so far:
Also: deprecated functions
Here's a list of proposed libraries for the admin area that can also be useful for plugins. Please add others you think are worth. They should be preferably:
| Name & links | Description | Info |
|---|---|---|
| phpSavant docs | Summary: A “pure-php” template system. Benefits: * separates business logic from presentation. * makes code cleaner and easier to maintain. * allows easy theming (for those not scared whith a <?php tag). * allows the use of plugins. you can build, by example, a date/time form widget to use in the entire application. * allows to build a customized markup compiler (so the templates won't be pure php). * may be used both to build the admin area and for plugins output. | Size: 144 KB / 49 KB zipped (including all plugins and filters) Latest release: 2006-01-01 |
| PEAR::Pager end-user docs API docs | Summary: A class to page an array of data. Benefits: * allows complete customization of the output. * allows internationalization. * allows various widgets (“go to page X”, “display X results per page”). * allows different pagination styles (it comes with two, but more can be added). * it even works with mod_rewrite. * may be used both to build admin area's lists and to page plugin results. | Size: 69 KB / 19KB zipped (including two pagination styles) Latest release: 2005-09-28 |