Tim Almdal
beb63a8380
Clean up the In place edit api:
...
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-06 23:05:20 -08:00
Tim Almdal
b5f2dbc2c4
Create a user_menu for the top of the page. Change the login, edit profile 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-06 14:08:46 -08:00
Tim Almdal
b01056da91
Modify the Menu_Element class to allow for the specification of a custom view. Also allow the root element to specify a css id.
2009-11-06 13:03:48 -08:00
Tim Almdal
8ac7a5c0d3
Remove debugging statement
2009-11-05 13:21:40 -08:00
Tim Almdal
03408f3e39
Refactor the in place editting in tags admin out into a separate widget as 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-11-05 13:00:41 -08:00
Tim Almdal
8db2406c00
Added a config parameter to the IdentityProvider to specifiy the configuration. This allows the ldap installer to instantiate the ldap Identity provider to use in the install and uninstall methods
2009-10-31 14:11:06 -07:00
Tim Almdal
c6fbd34f28
Add the add_user_to_group and remove_user_from_group api method calls. If the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
2009-10-29 19:16:08 -07:00
Tim Almdal
392e24e56b
Correct the issues that identity::registered_users was calling the backend provider everybody method
2009-10-29 12:12:22 -07:00
Tim Almdal
0bb2b7659f
Add the admin_user api function to the identity helper and the IdentityProvider interface.
2009-10-29 11:12:55 -07:00
Bharat Mediratta
145a3f80ce
Guard against developers who forget to internationalize label strings
2009-10-27 19:35:21 -07:00
Bharat Mediratta
13faf6035d
Remove Menu::compact() in favor of putting an if-then clause in
...
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-27 14:00:32 -07:00
Bharat Mediratta
76c0c7f3a1
Change our menu building blocks to use PHP templates so that themes
...
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-27 13:48:41 -07:00
Bharat Mediratta
abb080f232
phpDoc fixes.
2009-10-24 10:56:56 -07:00
Bharat Mediratta
73a01d475b
Minor style tweaks.
2009-10-24 10:55:22 -07:00
Tim Almdal
b74b131e25
Change Identity adminstration to use the uninstall/install methods when changing providers.
2009-10-22 22:30:25 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. 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-22 13:11:03 -07:00
Tim Almdal
7638834e97
Address the issue of the administrator changing the identity provider whilst 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-21 15:17:23 -07:00
Tim Almdal
f04177f138
re-add the lookup_group_by_name API Method.
2009-10-21 11:49:42 -07:00
Tim Almdal
0d53ed619a
remove the lookup_group_by_name as it is not referenced
2009-10-20 17:24:17 -07:00
Tim Almdal
b28c758d4a
Add lookup_group Identity provider API and change the permissions controller to use it to get the group it is modifying
2009-10-20 17:21:33 -07:00
Tim Almdal
3ece1a01f2
Add a groups api method on the Identity provider and change access_Core::_get_all_groups() to use this to get the defined groups.
2009-10-20 17:01:19 -07:00
Tim Almdal
7f9441c33d
Changes to Identity interface to allow for multiple Identity providers. 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-20 16:32:22 -07:00
Tim Almdal
098b57bf18
Simplify the user interface by moving the password reset functionality into 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-19 12:53:44 -07:00
Tim Almdal
c9a030dd08
Add a menu item to manage the Identity drivers if there is more than one installed
2009-10-18 09:21:34 -07:00
Tim Almdal
6d5c12e13e
Move the default identity config into the users module and change the 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-18 08:00:33 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
bc241e44c2
Cleanup merge of user/group helpers into Identity interface. Reduce 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-16 08:55:26 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php 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-16 08:53:31 -07:00
Tim Almdal
be6765336e
Finish integrating the move of the user edit/update functions into the user module. The premise is that the plugable user module will provide the update screens if the user backend supports updates.
2009-10-16 08:53:30 -07:00
Tim Almdal
5b4f309163
Clean up phpDoc and change the Identity driver so only one configuration can be active at a given time.
2009-10-14 09:47:04 -07:00
Tim Almdal
d9720b77e9
Merge branch 'master' into talmdal_dev
...
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-13 11:48:42 -07:00
Tim Almdal
03d0311618
Implement a user::is_writable() API method and disable the user add, updates and display if the Identity driver does not support writes. This is set in the config.identity.php
2009-10-07 21:40:05 -07:00
Tim Almdal
c787e46c2a
Change the __set method on User_Definition to actually set the value as opposed to return it.
2009-10-07 20:14:51 -07:00
Tim Almdal
6671bd8b85
Allow a groups property on the User implementation and load the Identity drivers early in the process so the session deserialization works.
2009-10-06 18:30:09 -07:00
Tim Almdal
da84a46ccb
Clean up extra single quotes from copy and paste
2009-10-06 18:30:09 -07:00
Tim Almdal
c068384504
Encapsulate the user and group model in Gallery_User and Gallery_Group classes which extend the User_Definition and Group_Definition classes defined in the Identity API
2009-10-06 11:20:51 -07:00
Tim Almdal
8285cd58e2
Handle the filters on Identity/Gallery::list_users and Identity/Gallery::list_groups
2009-10-05 18:10:39 -07:00
Tim Almdal
ca17727478
Access the form validation rules via the API for groups and users
2009-10-05 17:08:27 -07:00
Tim Almdal
08c01fec6c
The initial commit of refactoring the user/group adminsitration into a driver.
...
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-10-05 16:27:52 -07:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Tim Almdal
b2a9bf43af
Change gallery::find_file to not assume that the absolute path is relative to the document root. Instead ignore all th path parts until one of application, modules, themes, or libs is found. Fixes ticket #827
2009-10-01 12:44:18 -07:00
Chad Kieffer
e1e8904e4a
Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's and classes in the login/reset password dialog.
2009-09-30 22:49:36 -06:00
Tim Almdal
60d35b8992
Use the block_manager to manage site sidebar panels. Fixes ticket #110 .
...
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list.
* Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks.
* Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks
* Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach
* Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules.
* Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules.
* Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated
* Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-30 07:31:12 -07:00
Tim Almdal
89a67dba63
* Remove the @todo in module event and always try to call gallery_event::$function first
...
* Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php
* Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-29 08:50:53 -07:00
Bharat Mediratta
a0a62a0992
Do a pass on the gallery::find_file and Gallery_View::{script,css} PHPdoc.
2009-09-28 19:30:34 -07:00
Tim Almdal
28624bb8f1
Update the PHPDoc for gallery::find_file and convert Gallery_View::script/css to use gallery::find_file
2009-09-28 09:04:44 -07:00
Tim Almdal
c51c76dcaa
Fix Admin_View to look for the the variable active_admin_theme instead of active_site_theme. In addition check for the existence of THEMEPATH . instead of theme/
2009-09-24 15:06:40 -07:00
Tim Almdal
59c1c36639
Hopefully the last 2 errant occurrences of default as it relates to theme names
2009-09-24 14:50:30 -07:00
Bharat Mediratta
4e1e24ba1a
Add a movie_menu() theme callback, and have the default theme call it
...
in the sidebar on movie page types.
2009-09-16 20:34:42 -07:00
Bharat Mediratta
752c857116
Rename ORM_MPTT::is_descendant() to ORM_MPTT::contains() to make the
...
API a little clearer. Write a test for it, too.
2009-09-10 10:28:43 -07:00