summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2008-12-04Add unit tests to test growing and contracting the left and right pointersTim Almdal
Added a delete method to ORM_MPTT that contracts the tree when an item is deleted
2008-12-04Before deleting an item, save the path to the image in the var directory as ↵Tim Almdal
once the item is deleted, the $item->file_path() is no longer valid.
2008-12-03Fix internationalized string.Bharat Mediratta
2008-12-03Rename file::unlink() to dir::unlink(). This creates an API that isBharat Mediratta
clearer about its actions, otherwise we may accidentally blow away an entire hierarchy when we think we're deleting a single file (there's a reason why rm won't let you delete dirs that aren't empty!) Name it "dir" instead of "directory" because apparently "directory" is already reserved. Move the delete call out of Items_Controller and into the model. The model is responsible for keeping state integrity, not the controller.
2008-12-03Remove @todoTim Almdal
2008-12-03Add a MY_file class that extends the file helper by creating an unlink ↵Tim Almdal
method that deletes a file or an album directory. Modify Items_Controller::_delete to call this new helper method when deleting an item
2008-12-03Implement two testsBharat Mediratta
2008-12-03Fix a bug where we weren't actually deleting permissions (hooray for unit ↵Bharat Mediratta
tests!)
2008-12-03If the the post and get arrays don't contain a _method parameter, then use ↵Tim Almdal
the request::method() to determine the actual request method (i.e. delete doesn't show up in either places)
2008-12-03Test stubsBharat Mediratta
2008-12-03Move the form html into the controllerBharat Mediratta
2008-12-03Add /welcome/form/add/photos to give you the add photo form.Bharat Mediratta
2008-12-03Re-enable access_cache propagation now that we've patched the MySQL driver.Bharat Mediratta
2008-12-03get rid of a stray space that was breaking the File_Structure_TestBharat Mediratta
2008-12-03Temporarily disable some code to get tests to pass.Bharat Mediratta
2008-12-03Drop the right tables at uninstall timeBharat Mediratta
2008-12-03Fix a bad copy/pasted commentBharat Mediratta
2008-12-02Remove the variable from inside _()Tim Almdal
2008-12-02The rearrange module will now add an album if you drag the "new album" onto ↵Tim Almdal
the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item.
2008-12-02Oops, this was missing from the last fix.Bharat Mediratta
2008-12-02Fix a problem in _update_access_cache() where if the intent isBharat Mediratta
default, we weren't properly propagating ALLOW where necessary.
2008-12-01Tighten up ul.permissionsBharat Mediratta
2008-12-01Fix profiler settings in the scaffoldingBharat Mediratta
2008-12-01style the permission tree a little tighterBharat Mediratta
2008-12-01Add access::reset() so that you can specify your intent to use theBharat Mediratta
parent's permissions. Update scaffolding to demonstrate that it works.
2008-12-01Clean up styles a bit to make it more obvious what's going on. ShowBharat Mediratta
edit permissions too to demonstrate that we're doing something different for the different type of permissions.
2008-12-01Add @todosBharat Mediratta
2008-12-01Prototype access control model. There's much left to do, but it's aBharat Mediratta
working implementation.
2008-11-30Move rearrange HTML generation into welcome.php so that we gracefullyBharat Mediratta
handle the case where the DB is not installed yet.
2008-11-29Add access model (not fully baked yet).Bharat Mediratta
Update scaffolding to allow addition of just albums (helpful for testing permissions)
2008-11-29The gui part of rearranging albums and photos on the welcome page. Haven't ↵Tim Almdal
finished the ajax back end to actually do the move, but thought i'd put the gui up so people can play
2008-11-29Insure that the page and offset refere to valid itemsTim Almdal
2008-11-28Remove debugging statementsTim Almdal
2008-11-28Dynamically create the list of available modules. This permits new modules ↵Tim Almdal
to be added without having to update the config.php file
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-28Rename module::get_list() to module::installed()Bharat Mediratta
2008-11-28Add credits theme callback, point the powered-by link at GMCBharat Mediratta
2008-11-28Add an easy way to add a bunch of servers from the server sideBharat Mediratta
2008-11-28Correct parameter on gallery.album.created event firingTim Almdal
2008-11-28Move the form drawing code back into form.html.php -- I'm going toBharat Mediratta
take a shot at fixing it up in the view file so that it's mostly HTML, not mostly PHP. If that fails, I'll move it back into a helper.
2008-11-28Add tag() functionBharat Mediratta
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-28Add event plumbing to allow the tag module to be notified when a photo is ↵Tim Almdal
created. Eventually this will be used to parse the image meta data and extract tags;
2008-11-27Set resize to 640x480 for now to avoid breaking the default theme layoutBharat Mediratta
2008-11-27Create a form_helper class containing the function Draw_Form so we don't ↵Tim Almdal
have to always check to see if the DrawForm method is already defined in pages that could have multiple forms.
2008-11-271) Create a Theme_View class that combines the functionality of the Theme ↵Tim Almdal
class with the View class. 2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)
2008-11-27Move the ADMIN global nav option into the core module and only show it if ↵Bharat Mediratta
we're logged in as an admin user
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-27Make tags look a little better.Bharat Mediratta
2008-11-27Centralize logging around installing/uninstalling modules.Bharat Mediratta