ChangeLog – 0.6.7-beta

Released: 19 April 2009

  • Added Debug class
  • Added Model class
  • Implemented Pagination class
  • Added Throwable Interface

    • Added FileNotFoundException class
    • Added ExtensioNotException class
    • Added QueryFailedException class
    • Added DatabaseConnectionException class
    • Modified all classes that throw Exceptions to implement Throwable interface
  • Modified Controller Class

    • Added RedirectTo() method, which by default performs a permanent redirect
    • Added Is404Error() method
    • Added SetView() method. The view file is no longer stored inthe _SESSION, but in the controller class using this method
    • Added SetData() method
    • Added Set404() method
  • Added Cache class
  • Modified CRUD Class

    • Rewrote, finalized and tested Load() method to finalize loading data into the CRUD object via the second argument of the constructor.
    • Removed DestroyAll() method
    • Implemented the Destroy() method
    • Removed code in __construct() that controlled schema caching
    • CRUD now instantiates Model objects for related data, instead of CRUD objects to make events available when saving
  • Modified Database Class

    • Added GetDatabases() abstract method
    • Added GetTables() abstract method
  • Modified Dispatcher Class

    • Added RequireViewFiles() method
    • Added CleanUp() method
    • Added Set404Handler() method
    • Added Set404View() method
    • Added SetFooterView() method
    • Added SetHeaderView() method
    • Added AddRoute() method
    • Modified Connect() to utilize custom routes added by AddRoute()
    • Connect() now returns Request object
  • Modified FileFunctions Library

    • Added HumanReadableSize() method
  • Modified Form Class

    • Added LoadObject() method
  • Modified PostgresDatabase Class

    • Added GetDatabases() method implementation of Database::GetDatabases()
    • Added GetTables() method implementation of Database::GetTables()
    • Modified GetTableForeignKeys() method to track relationship dependencies to help the SaveAll() method.
    • Added IsPrimaryKeyReference() method to determine if a primary key is also a foreign key that references other tables.
    • Modified caching code to use the new Cache class
  • Added Request class, which is now returned by Dispatcher::Connect()
  • Modified StringFunctions Library

    • Added AfterLastOccurrenceOf() method
  • Modified Validation Class

    • Rewrote validation class
  • Fixed bugs in CRUD class

    • Fixed issue with Load() not ignoring invalid argument data types.
    • Fixed __get() and __set() to load empty relationships when non exists for data population.
    • Fixed bugs in SaveAll(), Save(), Insert() and Update()
  • Fixed bugs in FileFunctions library

    • FileInfo seems to, in some cases, return a charset after the mime type. Modified GetMimeType() to strip off the charset.
  • Fixed bugs in PostgresDatabase class

    • All database transactions now properly use the specified database connection, rather than the last database connection.
    • Fixed FormatData() bug caused by new way of loading table column data types