summaryrefslogtreecommitdiff
path: root/modules/user
AgeCommit message (Collapse)Author
2008-12-15Switched login display from display in the header to a dialog. Validation ↵Chad Kieffer
errors don't display on first failed attempt, will fix later. Moved jquery js, images, css out to respective folders.
2008-12-15Change the login form so that the legend is populatedTim Almdal
2008-12-12Move the view permission cache directly into the item table for efficiency. ↵Bharat Mediratta
Unit tests ftw!
2008-12-12Add user::guest() convenience functionBharat Mediratta
2008-12-12Get rid of all pseudo users and pseudo groups, while preserving allBharat Mediratta
other functionality. This makes our user/group and access code fully consistent.
2008-12-10Remove navigation_top() and navigation_bottom() as they're subsumed by the ↵Bharat Mediratta
new menu code
2008-12-09Move code to delete users and add/remove users from groups into theBharat Mediratta
model.
2008-12-09move user::delete() to User_Model::delete()Bharat Mediratta
2008-12-08Refactor Menu code to create allow you to create menus using aBharat Mediratta
chainable factory interface and retrieve them by ids. Streamlined the HTML creation code a little bit in the process, moved the basic menu functionality into Theme_View and created the option to have different menus other than site_navigation().
2008-12-08Restructure Menu processing to respect the differnent types of menu items ↵Tim Almdal
(Menu's, Menu_Link, Menu_Dialog)
2008-12-07Merge gallery3/branches/menus back into gallery3/trunkTim Almdal
2008-12-06Removed tabs, todo, added descriptionChad Kieffer
2008-12-05Don't need to pass the event, it's not used.Chad Kieffer
2008-12-01Prototype access control model. There's much left to do, but it's aBharat Mediratta
working implementation.
2008-12-01Grouped inline form styles. No longer using gInline class in favor of ↵Chad Kieffer
specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup.
2008-11-28Create module::event() which runs Gallery events. It works byBharat Mediratta
convention. To respond to the "photo_created" event in the gmaps module, you create modules/gmaps/helpers/gmaps_event.php containing class gmaps_event which has function photo_created. Renamed all events from gallery.foo.bar to foo_bar Updated tag module to use new convention.
2008-11-28Use return false instead of preventDefault() to prevent link action, thx TimChad Kieffer
2008-11-28Rename item events and create events for comment create, login, logout, user ↵Tim Almdal
creation. I probably forgot some, but its a start.
2008-11-27Update tests to reflect the fact that the admin group is gone.Bharat Mediratta
Fix a bug in user::create(), found by the unit tests (hooray)!
2008-11-27Give the admin user actual admin privilegesBharat Mediratta
2008-11-27Add navigation_top() and navigation_bottom() insertion pointsBharat Mediratta
Move "My Gallery" navigation tab into the user module and only show it if you're logged in
2008-11-27Centralize logging around installing/uninstalling modules.Bharat Mediratta
2008-11-27Move javascript from default theme to appropriate modulesTim Almdal
2008-11-26Re-enable code to drop view columns from the items table when deleting groups.Bharat Mediratta
2008-11-26Ignore errors from dropping view columns from the items table.Bharat Mediratta
2008-11-26Clean tag creationTim Almdal
2008-11-26Add support for marking users as "admin"Bharat Mediratta
2008-11-26Add support in the scaffolding for adding users to groups, adding andBharat Mediratta
removing users and groups.
2008-11-26group::create() and group::delete() now manage the view_## columns inBharat Mediratta
the items table. Convert installer over to using new creation API.
2008-11-26Create user/group create/delete functions and have the scaffolding use them.Bharat Mediratta
2008-11-24Make login form JS unobtrusive. Needs work.Chad Kieffer
2008-11-22Move all block callbacks from View::block_type() toBharat Mediratta
$theme->block_type() so that the themer has a consistent interface. Also added a bunch more callbacks and normalized the names so that the module author has plenty of options for where stuff gets put on the page. Especially renamed album/photo/sidebar to be album_blocks() photo_blocks() and sidebar_blocks() to make it clear that those are going to be larger content sections and not just basic insertion points. Used __call() to collapse all functions in the theme, which incidentally makes it trivially easy to add a new insertion point.
2008-11-22Cleanup of header to normalize margins and white space. Improved display of ↵Chad Kieffer
user login form. Added gHide, gShowBlock, gShowInline, gClose classes to handle show and hide functions. Half-baked idea which will need refinement.
2008-11-21Use the new block mechanism to insert user related content into the html pagesTim Almdal
2008-11-20Add a @todo to change user "joe" in the future.Bharat Mediratta
2008-11-20* Added HTTP status constants and helper functions to REST helper.Jozef Selesi
* HTTP header setting in comment module now going through REST helper API. * Fixed items controller test. * Fixed user installer test. * Fixed _create() handling in the REST controller. * Fixed routing for edit and add forms. * Added some tests for the REST controller. * Set svn:eol-style to LF on a bunch of files. * Added preamble to MY_Forge.php.
2008-11-19Change the way that we do RESTful routing.Bharat Mediratta
1) We now use __call() in REST_Controller to handle any requests to a controller that were not already handled. In the case of RESTful controllers, this should be the only entry point (although they're free to break the model and add other ones.. nothing stops them). This means that we can remove all the catch-all routes in routes.php which greatly simplifies it. 2) Move request_method() and output_format() out of REST_Controller and into the REST helper in core/helpers/rest.php 3) Experiment with letting the various subclasses check the output_format and deal with it themselves. This simplifies the API, but it might be a bad idea in that it might push too much work to the individual controllers. It's a balancing act, time will tell, I'm willing to change it back later.
2008-11-18* Changed REST API. Now there are two separate methods for forms:Jozef Selesi
GET /form/edit/{controller}/{resource_id} -> controller::_form_edit($resource) GET /form/add/{controller}/{parameters} -> controller::_form_add($parameters) * Updated comment, user and core modules to reflect the API changes * Cleaned up routing and handling of requests to /{controller}
2008-11-18- All comments of an item can now be seen /comments?item_id=Jozef Selesi
- Return proper Content-Type header for GET /comments requests - Got rid of the query processing for index() in REST_Controller() - Small misc fixes
2008-11-18First iteration of REST controller refactoring. RESTful controllers that ↵Jozef Selesi
refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this: GET /controller -> controller::_index() POST /controller -> controller::_create() GET /controller/id -> controller::_show() PUT /controller/id -> controller::_update() DELETE /controller/id -> controller::_delete() GET /form/edit/controller/resource_id -> controller::_form() GET /form/add/controller/data -> controller::_form()
2008-11-18Move User_Controller to Users_Controller per jozefs request.Bharat Mediratta
2008-11-18Synchronize the model rules with the database definitions and vice-versa.Tim Almdal
2008-11-17Add output formats to our REST controllers. Add support for JSON andBharat Mediratta
XML to the comment controllers as a proof of concept. It's not fully baked; we should examine ways to create helpers to make this process easier.
2008-11-16Add _method=put to the edit formBharat Mediratta
Properly implement User_Controller::_put()
2008-11-16Drop the call to render() and just use the View's __toString method toBharat Mediratta
print it out.
2008-11-16Create Forge::add_rules_from() which pulls validation rules from the model andBharat Mediratta
associates them with the form. This replaces the various _add_validation_rules() functions in the user and comment modules. Move user edit form into user helper for consistency with the comment module. Implement missing _form method in the user controller.
2008-11-16Rename gLogin -> gLoginFormBharat Mediratta
This disambiguates forms from blocks (for example in the comment module we were calling both the form and block gComments).
2008-11-16Create MY_Forge to specify the defaul htmlTim Almdal
2008-11-16create a regular user and make scaffolding assign owner to logged in userFelix Rabinovich
2008-11-15Destroy the session on logout, don't just delete the user.Bharat Mediratta