summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
2009-05-20Add a default image quality level. There's no UI for it, except AdminBharat Mediratta
> Settings > Advanced. The default is 75.
2009-05-18This takes us the next step closer to providing bulk edit. We stillTim Almdal
can't edit, but we are getting closer :-). This change sets up a framework for modules to contribute edit panels to the organize drawer. Currently implemented General (albums and photos), Sort Order (albums only) and Manage Tags
2009-05-17Add var/tmpBharat Mediratta
2009-05-17Rollback some of the changes from r20822. But still pull theTim Almdal
determination of the function name and arguments to outside the module loop
2009-05-16Don't allow photos, albums or movies to have a trailing period to avoidBharat Mediratta
security problems. Ref http://dev.kohanaphp.com/issues/684). This plus r20823 resolves ticket #248.
2009-05-16Don't allow albums/photos/movies to end in "." because it risksBharat Mediratta
securit issues (and so Kohana won't route them, see http://dev.kohanaphp.com/issues/684). Partial fix for ticket #248.
2009-05-16Modify the module::event method to accept 2 additional parametersTim Almdal
instead of a variable list and then pass both of these parameters by reference to the event handlers. 2 parameters cover 100% of our existing event calls.
2009-05-16Support renaming albums, photos and movies.Bharat Mediratta
Fixes ticket #278.
2009-05-16Don't allow the various ::create() methods to take "/" in the name.Bharat Mediratta
2009-05-16Rename the theme menu options under the Appearance menu.Bharat Mediratta
2009-05-14Fix for ticket #268Tim Almdal
1) Added a clear method to model_cache 2) Cleared the model_cache, when the make_album_cover or remove_album_cover is called.
2009-05-14Use the active user as the new item's owner, if no owner id is specifiedBharat Mediratta
2009-05-14Cache variables in core._cache so that we can retrieve them all in aBharat Mediratta
single query. In most cases, we were fetching 4-5 variables per page load, so this is 2-3x faster.
2009-05-14Introduce a relative_path_cache column in the items table. This letsBharat Mediratta
us avoid doing lots of MPTT lookups to find the parent path when we're trying to generate thumbnails, etc. Invalidate the cache at all the right times. This greatly reduces our query count on album page views. This fixes ticket #40.
2009-05-14Overload ORM_Iterator to cache models as we pull them out of theBharat Mediratta
result set. This allows us to see the cache and avoid further lookups.
2009-05-14Use model_cache() instead of ORM::factory()Bharat Mediratta
2009-05-13Use the $filename not the $name to find the path extension.Bharat Mediratta
2009-05-13I should test this stuff before I submit it, eh.Bharat Mediratta
2009-05-13Store the ffmpeg path in a variable.Bharat Mediratta
2009-05-13Fix menu typo.Bharat Mediratta
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Add the "advanced settings" controller which lets you see all theBharat Mediratta
vars. We'll eventually turn this into a registry where you can edit settings directly (at your own risk).
2009-05-13Create a new "add" permission and require it at the controller levelBharat Mediratta
when adding photos/movies/albums
2009-05-13Exclude the root album from the "dirty images" queryBharat Mediratta
Clean some HTML out of a translated string.
2009-05-13Oops, use filename instead of nameBharat Mediratta
2009-05-13Display the server load average in the platform block. Fixes ticket #198.Bharat Mediratta
2009-05-12Allow configurable padding optionsBharat Mediratta
2009-05-11Fix for #226Tim Almdal
2009-05-10remove_rule() should mark thumbs/resizes dirty also. Resolves ticket #269, ↵Bharat Mediratta
thanks jstricker!
2009-05-10Change TINYINT(2) to SMALLINT for compliance (thanks Romain LE DISEZ)Bharat Mediratta
2009-05-09Force the 'GD Version' key to existBharat Mediratta
2009-05-07Allow sorting by Capture Date.Bharat Mediratta
2009-05-07Grab photo capture date and captions from EXIF/IPTC data.Bharat Mediratta
- Add a "captured" column to the items table. - Pull the DateTime EXIF field and put it into the captured column - Pull the Caption EXIF & IPTC fields and put them into the description field if there was not already a value there
2009-05-03Don't try to make a new photo the album cover unless we can edit the parent ↵Bharat Mediratta
album
2009-05-02Mark functions as staticBharat Mediratta
2009-05-02Revert r20668; if we call our helper 'gallery' then it interferes with ↵Bharat Mediratta
g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble.
2009-05-02Rename core helper to gallery helper to indicate that it's more of an ↵Bharat Mediratta
app-wide helper. 'core' doesn't make as much sense
2009-05-02Create item helper and move move_item(), remove_album_cover() andBharat Mediratta
make_album_cover() functions into it.
2009-05-02Move make_album_cover and remove_album_cover out of Item_Model andBharat Mediratta
into the core helper. Clean up interactions so that when we remove an album cover we pick a new one, or clean out the old album cover if there are no other choices.
2009-05-01Forgot these when i created the make_album_cover methodTim Almdal
2009-04-29Refactor the creation and removal of the album covers intoTim Almdal
make_album_cover and remove_album_cover methods in Item_Model. Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-22Throw an exception in graphics::resize() if the input file is emptyBharat Mediratta
2009-04-22Refactor the move functionality into a helper function so it can beTim Almdal
called from organize
2009-04-18whitespace cleanupBharat Mediratta
2009-04-17Be graceful if exec() is disabledBharat Mediratta
2009-04-12changed order of form fields in photo and album forms so that the confusing ↵Jakob Hilden
"name" field is not on top anymore changed "name" label to "Filename" for photos and "Directory Name" for albums
2009-04-12Fix indentation.Bharat Mediratta
2009-04-09Fix the spelling of "appearance_menu" and update user_menu so that theBharat Mediratta
user/groups admin menu option appears again.
2009-04-08Fixes issues with Server Add:Tim Almdal
1) Fixes Ticket #208 2) Fixes Ticket #190 3) Fixes an unticketed issue where two items could collide when creating the thumbnail and/or resize. For example, loading a.flv and a.jpg would have generated the same thumbnail image. This change adds a random value to the name to avoid conflicts. 4) Added item::__set() to clear the relative path if the name changes
2009-04-06Fix up the quick-edit code on the photos page. Everything but "move"Bharat Mediratta
is implemented. Can't do move easily because it's tricky to handle the post-move redirect.