Christoph Studer

mwlib 0.2 released

You are not logged in [Login]

mwlib 0.2 released

Written on 01.07.2004 00:26

by Christoph Studer <christoph@studer.tv>


Today I released mwlib 0.2 and eventually an example website so you can try it out very easily.

I use mwlib for all of my new websites. Even for those as small as 3 pages. The advantages of templates are worth the setup time.

New features / improvements are:

mwlib in general

  • Wrote SETUP-SITE, so you know how to create a new website that makes use of mwlib.
  • Wrote a documentation for mwlib templates
  • Restructuring the `objectsmodule'. You can now simply inherit from this module if you want a module with database objects. mwDBObject-Classes and type/relation information are automatically loaded.
  • `_cache' can be set to '-1' to set an infinite timeout.
  • Introduced the `_cachesourcefile' parameter for module output caching. If the given file is newer than the cache, mwlib refreshes it. Very useful for Menus stored in menus.xml etc.
  • Removed some 'useless' modules from the default mwlib modules.
  • Added code comments in phpDoc-Format. DB libraries are almost completely commented at the code side.
  • Many, many improvements I forgot. Those listed cannot be all according to the time I've spent ;)


modules / libraries
  • menu: you can have more than one menus defined in menus.xml. This can e.g. be used to have an offline and and online version of the menu. The active menu can be chosen in the template or in the menu module config.
  • mwDBObjects: you can now specify an implementing class for types in the type defintion XML. This allows you to have many types implemented by one class (may even be 'mwDBObject', the generating class for all DB Objects).
  • mwDBObject/objectsmodule: Added some handlers to mwDBObjects so you may redefine the behaviour of DB Objects in your implementing classes.


Comments

Comments are disabled

No comments yet