summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-06-11Rename the comparator to something that makes more sense (to me), and make ↵Bharat Mediratta
it static. Follow-on to 5d9e71741754809ebe5f543eb874634e6fc8cc9d for #1859.
2012-05-11Sort modules by visible name, not id. Fixes #1859.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-04-23Use an absolute url for the upgrader link. Also, clear the upgrade_nowBharat Mediratta
site status message every time we go to Admin > Modules. Fixes #1695.
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-08Use the code version when installing a module that has no installer,Bharat Mediratta
instead of hardcoding version 1. Fixes #1589.
2010-12-28Use db::expr instead of "new Database_Expression". Resolves #1560.Bharat Mediratta
2010-11-28Replace self::func() with <helper_name>::func() for all public APIsBharat Mediratta
and constants to make overloading easier. Fixes #1510.
2010-11-08Implement module::clear_all_vars($module_name)Bharat Mediratta
Also switch from using ORM to Database_Builder for the SQL because it's cleaner, and clean up the test. Fixes #1479.
2010-09-29Stop caching all module variables in the vars table using theBharat Mediratta
name=_cache row. If that overflows, it will cause us to be unable to load variables, and we can't recover from that. Instead, use the Cache table. Bump the gallery module to v40. Fixes ticket #1405.
2010-09-08Detect out-of-date modules and put up a message for site admins.Bharat Mediratta
Fixes ticket #1353.
2010-09-08Detect when a module fails to upgrade properly and put up anBharat Mediratta
informative message to help the user know that she needs to get a newer copy of the module. Fixes ticket #1189.
2010-09-07Fix typo.Bharat Mediratta
2010-09-06Don't bomb on the race condition when we're trying to create theBharat Mediratta
gallery/_cache row and it already exists. Fixes ticket #1338.
2010-08-06Add a "weight" column to the module table. This allows us to specifyBharat Mediratta
module ordering, which is currently being done in the moduleorder contrib module. By default, the weight will be the same as the id of the row which means that new modules will get added at the end of the list. This is covered in the upgrade case as well. The one gotcha is that we need to make sure that we don't try to sort by the weight column if the gallery module version is < 32, which is something we haven't done before.
2010-06-05Undo the change added in e4eedbce2298535540cb651d75ba6f1bf42cf02bBharat Mediratta
which deactivates modules on upgrade. No idea why we did that, but it breaks upgrading because it deactivates any module that's been upgraded.
2010-06-05Fix a comment typo.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
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-24Remove the one last remaining reference to "no_module_admin".Tim Almdal
2010-01-22Change the check_environment method in the module helper and the module ↵Tim Almdal
installers to can_activate to reflect that it is doing more than just checking the environment.
2010-01-21Internationalize all strings in admin_modules.hmtl and corrected comments.Tim Almdal
2010-01-21The admin module controller allows modules to provide a check_environment methodTim Almdal
which is called prior to installation. The method allows the module to provide an error message or warnings if the module can not be installed or activated without issues. The admin module controller also will fire a pre_deactivate event, which allows modules to indicate issues that may arise be deactivating the specified module. These messages are displayed in a dialog box prior to installation in order to allow the gallery administrator to determine the appropriate action before proceeding. Lays the foundation for implementing a fix for ticket #937
2009-12-22ORM::factory() in K24 does not allow you to specify an alternate keyBharat Mediratta
for lookup. So instead of doing: ORM::factory("foo", array("some_key" => "some_value")) you have to do: ORM::factory("foo"->where("some_key", "=" "some_value")->find()
2009-12-17Convert some database queries.Bharat Mediratta
2009-12-06Update more database calls.Bharat Mediratta
2009-11-29Update a few more occurrences of ORM/Database -> Database_BuilderBharat Mediratta
2009-11-29Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/helpers/theme.php modules/gallery/libraries/Admin_View.php modules/gallery/libraries/Theme_View.php
2009-11-28Rework the theme loading code to allow themes to be treated as GalleryBharat Mediratta
modules, and have an admin subdirectory that is treated like a Kohana module (as distinct from a Gallery module). The main advantage of creating the separate admin subdirectory is that we will not load an admin theme and a site theme at the same time. We'll only load a few specialized bits of the site theme while the admin theme is active. Concrete examples. A site theme named "xxx": - will receive events at themes/xxx/helpers/xxx_event.php - will have working controllers at themes/xxx/controllers/xxx.php If theme xxx has an admin subdir, then in admin mode it: - will receive events at themes/xxx/admin/helpers/xxx_event.php - will have working controllers at themes/xxx/admin/controllers/xxx.php
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-25ORM::orderby -> ORM::order_byBharat Mediratta
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-12Change the keys of the block arrays in block manager to be a md5 hash of ↵Tim Almdal
module_name:block_id. This allows easier lookup of blocks to remove when modules are being deactivated. Change the module activation/deactivation to call (activate|deactivate)_blocks instead of just the sidebar blocks. This insures that when a module is deactivated any admin dashboard blocks are removed as well the site sideboard blocks. Fix for ticket #876.
2009-10-27Add a flag in the module.info (no_module_admin) to indicate that this module ↵Tim Almdal
shouldn't be managed by the default module administration screen. This module will always be locked on that screen.
2009-10-26Change the upgrader so that it never deactivactes the gallery nor the ↵Tim Almdal
current identity provider modules. Call module::deactive to truly deactivate the module.
2009-10-22Change Identity adminstration to use the uninstall/install methods when ↵Tim Almdal
changing providers.
2009-10-22When uninstalling a module call graphics:remove_rules instead of graphics ↵Tim Almdal
remove_rule.
2009-10-18Merge branch 'master' into talmdal_devTim Almdal
Conflicts: lib/gallery.common.css themes/admin_wind/views/admin.html.php themes/night_wind/views/sidebar.html.php themes/wind/views/sidebar.html.php
2009-10-18Optimize the get method to retrieve the module information from the loaded ↵Tim Almdal
modules. In addition add a method "info" to return the module information contained in the module.info file
2009-10-18Move the default identity config into the users module and change the ↵Tim Almdal
Identity constructor to look in module::get_var(gallery, identity_provider) for the current identity driver. In addition, don't just arbitrarily lock the use module. Only lock gallery and the module that is referenced by "user_driver_module" variable.
2009-10-04Revert "Create a gallery::plugin_path which returns the appropriate path to ↵Tim Almdal
the module or theme. This checks for the existence of an application/modules or application/themes first." This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
2009-10-04Create a gallery::plugin_path which returns the appropriate path to the ↵Tim Almdal
module or theme. This checks for the existence of an application/modules or application/themes first.
2009-09-30Add functionality to activate sidebar blocks when the module is activated ↵Tim Almdal
and deactivate the sidebar blocks when the module is deactivated.
2009-09-29Remove a debugging log statementTim Almdal
2009-09-29Remove the @todo and optimize the gallery_event call for 3 and 4 ↵Tim Almdal
arguments... context menu events have 4 arguments.
2009-09-29* Remove the @todo in module event and always try to call ↵Tim Almdal
gallery_event::$function first * Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php * Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-05Change the module installer so that you don't need to provide your ownBharat Mediratta
install() function if all you're going to do is to set the version of the module from module.info into the database. This means that for some simple modules, you don't need an install.php file at all.
2009-08-03Combine the quick menu and the thumb menu into a single menu calledBharat Mediratta
the "context" menu. This new context menu is generated using the typical event processing system, like our other menus. The specialized quick CSS and JS is now gone, replaced by our generic menu handling code. It's all rolled together currently using the thumb_menu UI for easy packaging. All the CSS and JS is updated. NOTE: the non-dialog links (rotate, album_cover) have a broken UI because they return JSON which the quick.js code handled specially, but we don't handle properly now. I need to fix this.
2009-06-30Fix i18n issue - accidentally called t() on translated messages. Please ↵Andy Staudacher
truncate incoming_translations after this update to get rid of bad messages in your DB.