0
I Use This!
Inactive

Commits : Listings

Analyzed 2 days ago. based on code collected 2 days ago.
Aug 27, 2024 — Aug 27, 2025
Commit Message Contributor Files Modified Lines Added Lines Removed Code Location Date
Fix a bug in Database::datetime() where passing no arguments did not generate a current datetime. More... about 15 years ago
Fix some older, overlooked bugs in the model More... about 15 years ago
A few fixes due to typos in the Model, and a change to the way E() works More... about 15 years ago
Fix some collateral damage of a global find and replace operation More... about 15 years ago
More coding standards updates, and some inline documentation here and there. Lots more to come over the next few weeks. More... about 15 years ago
Tons more coding standards changes. Tons of stuff may also be broken right now. More... about 15 years ago
More coding standards changes More... about 15 years ago
Bring Database and Model up to date with more recent coding standards and remove all instances of ereg More... about 15 years ago
Update prototype to 1.6.1 and remove the often-unused scriptaculous files. More... about 15 years ago
Remove closing PHP tags where not needed More... about 15 years ago
Uh, whoops. static:: still refers to the parent if you haven't overridden the variable. Broke table metadata discovery and caching, which in turn broke every Model-based database operation imaginable. More... over 15 years ago
Forgot to include the new cache library. Doh. More... over 15 years ago
New memcache-based cache library and full (optional) integration with the existing Model class. Can be turned on for any model simply by adding overriding one static variable ($_cachePrefix) in the child class; this causes Model to automagically persist in memcache any record loaded by its primary key. And of course custom data or objects can be stored in the cache through the Cache library. More... over 15 years ago
Typo in last commits; initialize Model::find() criteria to an empty array rather than a false boolean. More... over 15 years ago
Move all GET/POST preprocessing to the Controller rather than the AppController. No idea why I had it there in the first place. More... over 15 years ago
Bring Model up to date with more convenience methods: findById (find a specific record by its primary key as defined in the child class), findAll (return all records in the table), and findSet (same as find() except always returns an array, whether it contain multiple records, a single record, or no records at all - easier for simple iteration). More... over 15 years ago
Fix a bug in the table metadata caching mechanism; we were caching in Model::_field_types rather than the child version. Since this is an internal mechanism of Model, it is never overridden in the child, which would be necessary to make the prior version work. Instead, we cache in Model::_field_types[_table_name] since the table name will always be overridden and is thus accessible via static::_table_name. More... almost 16 years ago
Forgot to remove the include to the experimental Memcache library. More... almost 16 years ago
Remove all of the very old and very experimental Memcache code. This was all written a long time ago with a very early version of Memcached, before the existence of PHP extensions that do it way better and way more efficiently. Generic caching example class to come... More... almost 16 years ago
Somehow I didn't include an NE operand option in Model::find(). Fixed, and removed (buggy, problematic) restriction on limits being greater than 0. More... almost 16 years ago
Send an HTTP 404 header for controllers or methods that don't exist. More... almost 16 years ago
Forgot to remove another reference to the now obsolete and removed Database::row_to_obj method. More... almost 16 years ago
Now that PHP 5.3 supports late bindings, we can introduce huge savings into the database model class. Through extra static-ness, improved table discovery caching leads to much faster instantiation, memory footprint on each instantiated subclassed model object is reduced, print_r's are much easier on the eyes, and the kludgy child find() method override is no longer necessary. More... almost 16 years ago
Remove obsolete Database::row_to_obj and modify Database::query_object to use mysql_fetch_object function. More... almost 16 years ago
Cache table metadata used in Model table discovery so we don't issue a database query every time a Model object is instantiated. Increases page loading time by over 75% in modest cases. More... almost 16 years ago
Add includes for all this new stuff. More... almost 16 years ago
Add sample User model class to illustrate find() functionality. More... almost 16 years ago
Updated Model::find to allow other operands in criteria fields, operands in sort fields (desc/asc), and arguments that specify the LIMIT start and end counts. More... almost 16 years ago
Allow POST variable name containing JSON requests to be overridden in getJsonPostRequest, just as it can be in sendJsonRequest. More... almost 16 years ago
Add Array utility library, currently containing only two methods. More... almost 16 years ago