summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
AgeCommit message (Collapse)Author
2010-02-01Corrected copy paste errors in g2_import task. Fixes ticket #949.Tim Almdal
2010-01-31Fix lots of warnings that pop up when we're in E_STRICT mode. They'reBharat Mediratta
mostly issues around uninitialized variables, calling non-static functions in a static context, calling Session functions directly instead of on its singleton, passing non-variables by reference, and subclasses not using the same interface as the parent class.
2010-01-29Oops, forgot to bump the version to 2 in install().Bharat Mediratta
2010-01-27Convert back to using ORM::factory(..., $id) instead of calling where().Bharat Mediratta
2010-01-27Convert __toString() to use (string) cast instead.Bharat Mediratta
2010-01-24Updated for model based validation.Bharat Mediratta
2010-01-01Remove an obsolete todo.Bharat Mediratta
2010-01-01Start tracking the original G2 url and id for all entities. This willBharat Mediratta
allow us to map G2 image urls to the appropriate G3 ones.
2009-12-24Don't treat objects like strings.Bharat Mediratta
2009-12-06Update database query.Bharat Mediratta
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-11-19Revert "Create theme::get_var(), theme::set_var() methods to set the options ↵Tim Almdal
of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme." This reverts commit 26114972c3388f065220b94a0d5962f20a6ccd0c.
2009-11-19Revert "Make sure that calls to the theme::get_var() have sane defaults in ↵Tim Almdal
the event that the theme does not supply them." This reverts commit 51f2b547672ab69a7a04d37b723c6afbeb584a59.
2009-11-19Make sure that calls to the theme::get_var() have sane defaults in the event ↵Tim Almdal
that the theme does not supply them.
2009-11-18Create theme::get_var(), theme::set_var() methods to set the options of the ↵Tim Almdal
active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-03Get rid of "skipping" messages because they're overly verbose if you resume ↵Bharat Mediratta
an import. This fixes ticket #856.
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-26Merge branch 'master' into talmdal_devTim Almdal
2009-10-25Move g2_import styles from the theme to the module.Chad Kieffer
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
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-21Change this files to use the API instead of referencing the group tables ↵Tim Almdal
directly
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
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-04Fixed previous over zealous find and replace.Chad Kieffer
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-08-29Update all code to use helper method html::clean(), html::purify(), ... ↵Andy Staudacher
instead of SafeString directly.
2009-08-29Merge commit 'upstream/master'Andy Staudacher
Conflicts: modules/akismet/views/admin_akismet.html.php modules/comment/helpers/comment_rss.php modules/gallery/helpers/gallery_rss.php modules/gallery/libraries/I18n.php modules/gallery/views/permissions_browse.html.php modules/gallery/views/simple_uploader.html.php modules/info/views/info_block.html.php modules/organize/controllers/organize.php modules/organize/views/organize.html.php modules/organize/views/organize_album.html.php themes/default/views/album.html.php themes/default/views/movie.html.php themes/default/views/photo.html.php
2009-08-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-27Remove 'ENGINE=InnoDB' specification from tables that we create. UseBharat Mediratta
the system's default table specification. Fixes ticket #597.
2009-07-28Use events to generate menus, instead of having xxx_menu helpers.Bharat Mediratta
This is the first step towards having a simple, lightweight and unified API for module interaction.
2009-07-28Standardize the specification of tags.Tim Almdal
With this patch a comma(,) is the only valid tag separator. Spaces are allowed in tags and phrases no longer need to be specified with a dot. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-07-18Reduce import logging to errors only to reduce the size of the logs.Bharat Mediratta
Excessive logging results in a very slow import.
2009-07-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
2009-07-14Remove extra debug statements.Bharat Mediratta
2009-07-09Correct the pattern match to compress multiple spaces into a singleTim Almdal
dot.
2009-07-09Change the tag importer to convert spaces to a dot in multi word tags.Tim Almdal
2009-07-07Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
Conflicts: modules/g2_import/helpers/g2_import.php
2009-07-07Allow the task::log method to take an array of lines and change g2_import.phpTim Almdal
helper to use this approach.
2009-07-07Clean up some indentation.Bharat Mediratta
2009-07-07Change references to Gallery 2 and Gallery 3 to consistently refer toTim Almdal
Gallery n as opposed any variants of this.
2009-07-06Change wording of failed to import tags to make it consistent with the other ↵Tim Almdal
failed import messages. Thanks shai
2009-07-06correct spacing in a message. thanks shaiTim Almdal
2009-07-06Fix for tickets #312 and #370. Added a task logging api. Changed g2_importTim Almdal
to write all activity to the "log file". The "log file" is stored in the persistent cache.
2009-07-04Lets try the BBCode conversion again... go with basic tags even if some areTim Almdal
deprecated.
2009-07-04Change the BBCode Transformation to use the <span class=""> where possibleTim Almdal
2009-07-04Revert "Change the bbcode transformation to more standard tags that can be"Tim Almdal
This reverts commit 4ba022438e29dd305435a18e94a0bc08b5dd76a4.
2009-07-04Change the bbcode transformation to more standard tags that can beTim Almdal
easily style via css
2009-07-03Fix for #364 = G2 Import Doesn't support markupTim Almdal
Create a _transform_bbcode which coverts the g2 bbcode to html. The html won't be rendered until ticket #400 is implemented as pclean() excapse the html
2009-07-02Fix for ticket #359 and a partial fix for ticket #345.Tim Almdal
In G2, text strings have the &, ", < and > replaced by &amp;, &quote;, &lt; and &gt; respectively. Created the _decode_html_special_chars method in helpers/g2_import.php to revert these character strings.
2009-07-02Fix for ticket #390.Tim Almdal
Added a call to GalleryCoreApi::fetchItemViewCounts to retrieve the gallery2 view counts forthe imported items.