summaryrefslogtreecommitdiff
path: root/core/controllers/admin_maintenance.php
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Log the complete exception information for exceptions that happen in tasks ↵Bharat Mediratta
so that we have some clue as to what went wrong
2009-05-02Remove some unnecessary blank lines.Bharat Mediratta
2009-04-22Mark a task as stalled if it's > 15 seconds old (because tasks should ping ↵Bharat Mediratta
back much faster than that)
2009-04-02Completely task-ify the localization scanning code and restore theBharat Mediratta
incoming_translation key cache. The only part of this that is not broken down is the l10n_client::fetch_updates() part.
2009-04-02Continuation of r20518. Remove all the cases were the csrf values inTim Almdal
views were being manually set. Also removed it from the Admin_View.
2009-03-27Put csrf token into Admin_View and Theme_View by default, then use itBharat Mediratta
directly wherever possible instead of access::csrf_token().
2009-03-21Refactor all translation strings that have ambiguous placeholders.Andy Staudacher
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'. Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with preserving CSS classes too...
2009-03-11Refine the task api but removing the optional parameters on theTim Almdal
task::create method call
2009-03-11Get rid of stray 'type' argument to task::get_definitions()Bharat Mediratta
2009-03-09Add a 'cancel all' link tooBharat Mediratta
2009-03-09More tasks cleanup.Bharat Mediratta
Don't join through to the users table; that won't work in embedded mode. Instead, add Tasks_Model::owner() that calls user::lookup() and refer to the object directly in the view. Add Admin_Maintenance:remove_finished_tasks() so that we can easily do old task cleanup. Hide Running / Finished sections if there aren't any running or finished tasks.
2009-03-05Avoid using default task types. Require task::get_definitions() toBharat Mediratta
specify a single type and ask for it appropriately in admin_maintenance. Specify a type for every existing task.
2009-03-05A little task restructuringBharat Mediratta
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27* Refactor task management methods from admin_maintenance.php toTim Almdal
task.php * Added a owner_id field to the task database * Modified the admin maintenace to show the owner of the task <<**** Requires a reinstallation of core ****>>
2009-02-22Standardize to uppercase DESC in the order by method callsTim Almdal
2009-01-16Rename Task to Task_Definition to avoid confusion with Task_Model.Bharat Mediratta
Order the finished tasks by update time in the task list.
2009-01-16Rename Change xxx_task::available() to xxx_task::available_tasks()Bharat Mediratta
Fix a bug in admin_maintenance.html.php where we were only showing the first task
2009-01-16Break task definitions out into the <module>_task helper and create aBharat Mediratta
Task library class as a data structure to hold task definitions.
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-15Simplifying the way t() is called. Refactoring localization function ↵Andy Staudacher
t($message, $options=array()) into 2 separate functions: - the new t($message, $options=array()) is for simple strings, optionally with placeholder interpolation. - t2($singular, $plural, $count, $options=array()) is for plurals.
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2008-12-29Return the task on success so that our UI can show it at 100%Bharat Mediratta
2008-12-28Expand on the maintenance code to make it more robust and give theBharat Mediratta
admin more control. You can now track running tasks, resume stalled tasks, cancel running tasks, and remove finished tasks. Added graphics::compose() as a placeholder for future watermark operations. Added CSRF protection to maintenance urls.
2008-12-28First round of a task framework. Tasks are job definitions stored inBharat Mediratta
the database. They're started with admin/maintenance/start/[task_name] which sends down some JS/HTML which regularly pings the task at admin/maintenance/start/[task_id] until its done. The UI is still very rough. It works, though!