summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
AgeCommit message (Collapse)Author
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-24K2.4 has its own parentheses supportBharat Mediratta
2009-11-24Rename I18n to Gallery_I18n to avoid conflict with Kohana 2.4Bharat Mediratta
2009-11-21Don't use realpath when calculating the relative paths of embedded ↵Tim Almdal
references in css files. This fixes ticket #910
2009-11-20Paginator: don't try to set the position for "other" page types.Bharat Mediratta
2009-11-20Convert the Simple Uploader form over to Forge, and use the eventBharat Mediratta
model to let the Tags module modify it. This brings it inline with our other module-extensible form based interactions.
2009-11-19Revert "Create theme::get_var(), theme::set_var() methods to set the options ↵Tim Almdal
of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme." This reverts commit 26114972c3388f065220b94a0d5962f20a6ccd0c.
2009-11-18Create theme::get_var(), theme::set_var() methods to set the options of the ↵Tim Almdal
active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18For album pagination, don't let the last_visible_position exceed theBharat Mediratta
total. Fixes ticket #903.
2009-11-17Redesign the way that we consider page types to create buckets of pageBharat Mediratta
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
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-11-15Fix a couple of errors in the refctored paginator code:Bharat Mediratta
1) We weren't showing previous page links for albums when we should have 2) We needed to wrap the results of url::merge() in url::site() so that we generate server-relative urls.
2009-11-14Oops. Fix a typo that the forced page_type to always be "tag"Bharat Mediratta
2009-11-14Fix pagination so that it does not require any domain specific logicBharat Mediratta
to support tags and search. Instead, just modify the page param to the current page.
2009-11-14Rename "pager" to "paginator" so that we differentiate page.html.phpBharat Mediratta
from paginator.html.php
2009-11-14Normalize pagination so that pager.html.php can handle pagination forBharat Mediratta
both albums and movies. Kohana's paginator is not quite sufficient for this, so create our own pagination logic in Theme_View with only the stuff we need. Clearly document the variables available in pager.html so that themers know how to use it. Fixes ticket #626.
2009-11-13Standardize the name of the blocks.Tim Almdal
2009-11-06Clean up the In place edit api:Tim Almdal
1) Only allow 1 in place edit to be active at a time (gets around the issue of using an id to identify the form 2) remove the add_ prefix from some of the api methods 3) clean up inconsistent naming
2009-11-06Create a user_menu for the top of the page. Change the login, edit profile ↵Tim Almdal
and logout portions of the banner to be rendered by the Theme_View::user_menu callback. This fires the user_menu event. Fixes Ticket #871.
2009-11-06Modify the Menu_Element class to allow for the specification of a custom ↵Tim Almdal
view. Also allow the root element to specify a css id.
2009-11-05Remove debugging statementTim Almdal
2009-11-05Refactor the in place editting in tags admin out into a separate widget as ↵Tim Almdal
part ofthe gallery module. Create the jQuery widget, form template and library to support generalized in place editting. Part of the fix for ticket #750.
2009-10-31Added a config parameter to the IdentityProvider to specifiy the ↵Tim Almdal
configuration. This allows the ldap installer to instantiate the ldap Identity provider to use in the install and uninstall methods
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-29Correct the issues that identity::registered_users was calling the backend ↵Tim Almdal
provider everybody method
2009-10-29Add the admin_user api function to the identity helper and the ↵Tim Almdal
IdentityProvider interface.
2009-10-27Guard against developers who forget to internationalize label stringsBharat Mediratta
2009-10-27Remove Menu::compact() in favor of putting an if-then clause inBharat Mediratta
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
2009-10-27Change our menu building blocks to use PHP templates so that themesBharat Mediratta
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-24phpDoc fixes.Bharat Mediratta
2009-10-24Minor style tweaks.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-21Address the issue of the administrator changing the identity provider whilst ↵Tim Almdal
users are logged onto the system. Addressed the issue by adding try/catch logic to the Session::load_user() method. If load_user fails for any reason, then assume that the identity provider has changed, destroy the current session and redirect to the root album.
2009-10-21re-add the lookup_group_by_name API Method.Tim Almdal
2009-10-20remove the lookup_group_by_name as it is not referencedTim 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-18Add a menu item to manage the Identity drivers if there is more than one ↵Tim Almdal
installed
2009-10-18Move the default identity config into the users module and change the ↵Tim Almdal
Identity constructor to look in module::get_var(gallery, identity_provider) for the current identity driver. In addition, don't just arbitrarily lock the use module. Only lock gallery and the module that is referenced by "user_driver_module" variable.
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
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-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-16Finish integrating the move of the user edit/update functions into the user ↵Tim Almdal
module. The premise is that the plugable user module will provide the update screens if the user backend supports updates.
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.