summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
2008-12-01Prototype access control model. There's much left to do, but it's aBharat Mediratta
working implementation.
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-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-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-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-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-27Centralize logging around installing/uninstalling modules.Bharat Mediratta
2008-11-26Add a thumbnail to the root directory, in case it gets displayed in a tag ↵Tim Almdal
dynamic album
2008-11-25Rename get_absolute_url to abs_currentTim Almdal
2008-11-25Normalize atom url generationTim Almdal
2008-11-25Move the in-place-edit JS into the page_footer callback and out ofBharat Mediratta
Theme.php.
2008-11-24Detect browsers that prefer XHTML (Chrome!) and normalize it to HTMLBharat Mediratta
so that we don't ship XML down to Chrome.
2008-11-24Revert the site_title changeTim Almdal
2008-11-23Add a site-config parameter to the config.php file. Created a ↵Tim Almdal
core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value.
2008-11-22Correct case on helper class names. By convention, helper class names are ↵Tim Almdal
lower case: http://docs.kohanaphp.com/general/helpers Remove block_helper file as the abstract class os no longer required.
2008-11-21Fixed a bug in the REST controller dispatcher and added a test case that ↵Jozef Selesi
excercises it.
2008-11-212nd attempt at inserting html by modules.Tim Almdal
2008-11-21Revert module block approachTim Almdal
2008-11-20A look at away to allow modules to define html head contents (links and js) ↵Tim Almdal
and also allow modules to contribute blocks to the layout.
2008-11-20Add a missing slash in the HTTP return codeBharat Mediratta
2008-11-20Correct missing quotesTim Almdal
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-19Fix typo.Bharat Mediratta
2008-11-19Create url::abs_site() and url::abs_file() to allow us to generateBharat Mediratta
full URLs with a clean API, and isolate the cruddy party where we have to hardcode the server protocol into a single file.
2008-11-19Add the original item height and width to the item tableTim Almdal
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-19change mime_type column from 255 chars to 64 Bharat Mediratta
2008-11-19add the mime type column on the item tableTim Almdal
2008-11-18Added the is_installed to the module helper and change to photo.html to not ↵Tim Almdal
try to display a comment if it is not installed
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-15Add Theme::module() and module::get()Bharat Mediratta
2008-11-13Create module helper and refactor all the code that creates, updatesBharat Mediratta
and deletes modules into it.
2008-11-09Implement Item_Controller::put() and delete()Bharat Mediratta
Adjust/simplify photo::create Add image uploading to the scaffolding
2008-11-09style fixBharat Mediratta
2008-11-08Create permanent owner_id column in the item table, and use a softBharat Mediratta
relationship to bind the two. To do this, I overrode __get in Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08Adding user (owner) to items; info moduleFelix Rabinovich
2008-11-0844 --> E_DATABASE_ERRORBharat Mediratta
2008-11-08Change how the modules table doesn't exist is caught. In running unit test, ↵Tim Almdal
sometimes i would get the message "There was an SQL error: Table 'gallery3_unittest.modules' doesn't exist - ...." and sometimes I would get the message "Table modules does not exist in your database." In both cases the error code was 44.
2008-11-06album::set_thumbnail is now part of Item_Model so it can go.Bharat Mediratta
Fix a bug in the scaffolding where we weren't saving the album after adding its thumbnail (so its dimensions weren't getting set).
2008-11-05* Add thumbnail and resize dimensions to the item table and use themBharat Mediratta
properly in the theme. * Move thumbnail and resize generation down into the model for consistency. * Add a sample thumbnail for albums * Fix a bug in the ORM to clear the cache when we reload an object. * Add Kohana docs to the scaffold.
2008-11-05Change the default theme to actually render what's in the Gallery.Bharat Mediratta
Currently only the album view works, albums have no thumbnails, and there's only 1 image in use. Improved Item_Model to have the following API methods file_path() -- returns the path to the source image or album dir thumbnail_path(), thumbnail_url() -- returns path/url to the thumbnail resize_path(), resize_url() -- returns path/url to the resize All tests updated.
2008-11-05Declare install/uninstall stat.cBharat Mediratta
2008-11-04Lots of new stuff!Bharat Mediratta
Replace theme HTML with *almost* the latest stuff from the mockups. (it doesn't include r18467 yet). Our theme format is now modelled after WordPress / Habari's style where you have one entry point per type (eg: album.php) which can load up whatever parts it needs (eg: $theme->display("header")) Created album and photo helpers which have create() functions that form the base of our new API, along with tests for them. Created our own version of the ORM_MPTT since the existing versions were too buggy and unsupported to depend upon. Only has a minimal implementation so far, and the tests are not yet committed. Added path(), thumbnail_path() and resize_path() to Item_Model Extended the scaffolding to allow you to add lots of photos/albums into your hierarchy. Deleted modules/mptt -- we're not going to use this anymore.