Panda
Last edited January 4, 2008
More by Mike G. »
Package Ideas

Panda_Util

A set of various static methods. While the list is small it can be contained in Panda_Util but if the list grows sub namespaces will need to be created.
  • Panda_Util::echoDefault($output, $default = null)
Panda_SoapClient

Extends the native SoapClient class to provide additional functionality:
  • fix getFunctions() to provide useful data other than formatted strings
  • fix getTypes() to provide useful data other than formatted strings
Panda_Controller_Rest and Panda_Model_Crud

Panda_Controller_Rest::dispatch() should call the corresponding call in the model:

  • Panda_Controller_Rest::get() ....... Panda_Model_Crud::read();
  • Panda_Controller_Rest::post() ...... Panda_Model_Crud::create();
  • Panda_Controller_Rest::put() ....... Panda_Model_Crud::update();
  • Panda_Controller_Rest::delete() .... Panda_Model_Crud::delete();
Miscelaneous

Model Ideas
  • Callbacks: Use an event-like mechanism to register callbacks or triggers. This would emulate beforeSave/afterSave, etc in Cake only users could define their own custom callbacks. This could be implemented by registering all methods as private or protected then using __call() to check for any registered callbacks... call them, then call the original private/protected method.
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.