summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/drivers
AgeCommit message (Collapse)Author
2013-01-25#1956 - Escape LIKE queries (for _ and %).shadlaws
In MySQL queries, _ and % characters are treated as wildcards (similar to ? and *, respectively). - Added escape_for_like function to MY_Database.php - Added unit test to Database_Test - Corrected the five unescaped instances in the code using this function.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-28Coding style fixes: identation on line 48+removed trailing whitespaces, ↵Joe7
added spaces around =s
2010-12-28Using ON DUPLICATE KEY UPDATE instead of SELECT+UPDATE/INSERT style method ↵Joe7
(that does 2 trips to Database server and is less optimal). exists() method is not needed anymore thus got removed
2010-12-28Added limit on select as for the outcome it doesn't matter if there are 20 ↵Joe7
rows or just 1. Is sufficient to return straight after reading 1 row.
2010-09-18The Kohana folks removed the cache cleanup code back inBharat Mediratta
http://dev.kohanaframework.org/projects/kohana2/repository/revisions/4605 So now our cache entries don't expire. For now, do cache expiration whenever we render Admin > Maintenance, since that's the type of place that users will go when they want their cache to expire anyway.
2010-09-06Fix some broken identity APIs:Bharat Mediratta
- add_user_to_group and remove_user_from_group should take Group_Definition instances to be consistent - add_user_to_group and remove_user_from_group in drivers/IdentityProvider.php should not be static
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-24Fix for ticket #1034: Fix db cache driver delete() call which was missed in ↵Andy Staudacher
a recent refactoring / fix.
2010-02-21Fix delete() function of DB based Cache driver. It expected a scalar key / ↵Andy Staudacher
tag value, but it was always an array of keys / tags. (compare to system/libraries/Cache.php and the File.php driver)
2010-02-14Minor security tightening of IdentityProvider::change_provider().Andy Staudacher
2010-01-17Change IdentityProvider::create_user() to take $email as well, since that's ↵Bharat Mediratta
a required parameter for the Gallery driver.
2009-12-21Fix some bugs in the cache database driver, and update the tests for K24.Bharat Mediratta
2009-12-02Use select() instead of select("*")Bharat Mediratta
2009-12-02Convert more database calls over to the new formatBharat Mediratta
- admin/maintenance page loads, the rebuild thumbs/resizes task works - Fixed up some conversion bugs in the Cache driver
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-25Call execute() after upate() and insert().Bharat Mediratta
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-11-16If an empty array is passed into set method, then make sure the tag value ↵Tim Almdal
being stored in the database is null, not "Array"
2009-10-29Add the add_user_to_group and remove_user_from_group api method calls. If ↵Tim Almdal
the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
2009-10-29Add the admin_user api function to the identity helper and the ↵Tim Almdal
IdentityProvider interface.
2009-10-24phpDoc fixes.Bharat Mediratta
2009-10-22Change Identity adminstration to use the uninstall/install methods when ↵Tim Almdal
changing providers.
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-21re-add the lookup_group_by_name API Method.Tim Almdal
2009-10-20Add lookup_group Identity provider API and change the permissions controller ↵Tim Almdal
to use it to get the group it is modifying
2009-10-20Add a groups api method on the Identity provider and change ↵Tim Almdal
access_Core::_get_all_groups() to use this to get the defined groups.
2009-10-20Changes to Identity interface to allow for multiple Identity providers. ↵Tim Almdal
What I've tested to this point, is you can install a new provider, switch to it, login as administrator, uninstall the default user module, reinstall the user module, switch back to the user module and login.
2009-10-19Simplify the user interface by moving the password reset functionality into ↵Tim Almdal
the user module Bagging the User_Definition and Group_Definition abstract classes and replacing them with interfaces with the same names. Make sure all the unit tests work.
2009-10-16Cleanup merge of user/group helpers into Identity interface. Reduce ↵Tim Almdal
redundant code in the user module and remove references to the Identity helper from the user module as the user module should be able to access things directly. Simplify the get_user_list api method to just accept an array of ids to return user objects for.
2009-10-14Clean up phpDoc and change the Identity driver so only one configuration can ↵Tim Almdal
be active at a given time.
2009-10-13Merge branch 'master' into talmdal_devTim Almdal
Conflicts: modules/gallery/controllers/admin_users.php modules/gallery/controllers/password.php modules/gallery/helpers/group.php modules/gallery/helpers/user.php modules/notification/helpers/notification.php
2009-10-07Implement a user::is_writable() API method and disable the user add, updates ↵Tim Almdal
and display if the Identity driver does not support writes. This is set in the config.identity.php
2009-10-07Change the __set method on User_Definition to actually set the value as ↵Tim Almdal
opposed to return it.
2009-10-06Allow a groups property on the User implementation and load the Identity ↵Tim Almdal
drivers early in the process so the session deserialization works.
2009-10-06Encapsulate the user and group model in Gallery_User and Gallery_Group ↵Tim Almdal
classes which extend the User_Definition and Group_Definition classes defined in the Identity API
2009-10-05Handle the filters on Identity/Gallery::list_users and ↵Tim Almdal
Identity/Gallery::list_groups
2009-10-05Access the form validation rules via the API for groups and usersTim Almdal
2009-10-05The initial commit of refactoring the user/group adminsitration into a driver.Tim Almdal
Create an Identity library that defines the interface the Gallery3 expects Move the user and group helpers into the gallery module to provide the familiar interface into the Identity library. Create a Gallery Identity back-end that is supplied by the user module. The vision here is that all user and group code that is gallery or ui specific is contained within the core product. Anything that relates to manipulating a user or group is contained in the back end code that can be replaced.
2009-06-29Revert to serializing and deserializing data. The cache table can'tBharat Mediratta
accept PHP constructs like arrays (the tests were choking on this). Update tests to reflect the new `key` column.
2009-06-28Modify the cache table to make id the primary key for consistency withBharat Mediratta
other gallery 3 tables. Update the driver to match, add more upgrader code, update the installer block and change the gallery module version to 6.
2009-06-28Change the cache column of the caches table to a large blob. This fixes ↵Tim Almdal
ticket #485 and gives us the extra adavantage of not having to serialize the data (as the database driver handles that for us)
2009-06-28Clean up code (i.e. preamble, tabs) from the caching implementation so the ↵Tim Almdal
unit tests pass
2009-06-27The rest of the caching driver implementation that i somehow forgot.Tim Almdal