Stefan Gabos web developer extraordinaire
Monthly Archives: March 2011
Zebra_Image is a compact, lightweight, object-oriented image manipulation library written in and for PHP, that provides methods for performing several types of image manipulation operations. It doesn’t require any external libraries other than the GD2 extension (with which PHP usually comes pre-compiled with).
In version 2.1.1 a bug where the script would produce warnings on some particular transparent GIF images was fixed. Thanks to Olof Fredriksson for reporting!
Zebra_Pagination is a generic pagination class that automatically generates navigation links given the total number of items and the number of items per page.
This is a *generic* pagination class, meaning that it does not display any records! It is up to developer to fetch the actual data and displaying it based on the information returned by this class. The advantage is that it can be used to paginate over records coming from any source (arrays, database, etc).
In version 1.1 a bug was fixed where the "padding" method was not working. Another bug was fixed where the "set_page" method was not working correctly. Also, from now on, when there is a single page available, the pagination links are not displayed anymore. The default style was tweaked a bit.
Zebra_Database it is an advanced, compact (one-file only), lightweight, object-oriented MySQL database wrapper built upon PHP’s MySQL extension. It provides methods for interacting with MySQL databases that are more intuitive and fun to use than PHP’s default ones.
In version 2.2 a bug was fixed where the "select" method war returning a boolean value rather than a resource (thanks to Monil); the class now uses "lazy connection" meaning that it will not actually connect to the database until the first query is run; the debug console now shows also session variables; the "show_debug_console" method can now be instructed to return output rather than print it to the screen; the highlighter now highlights more keywords; improved documentation for the "connect" method.