summaryrefslogtreecommitdiff
path: root/core/helpers
AgeCommit message (Collapse)Author
2009-03-20Set our version to 3.0 Alpha 3 and add 'logs' as a dir we create at install timeBharat Mediratta
2009-03-19Rejigger the way we do reinstalls while Kohana is running.Bharat Mediratta
core_installer::install() now takes an $initial_install param that allows us to enforce that we're doing a clean install. Use this in both the scaffolding and the unit test code. Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-18Fix for ticket #153. The sort column was not not initialized forTim Almdal
movies or photos. Turns out that when you go to delete, ORM tries to check for children and apply the sort order.
2009-03-18Fix failed unit test: private methods are required to begin with an ↵Tim Almdal
underscore(_)
2009-03-18Remove trailing ?>Tim Almdal
2009-03-18Remove semi-colons from single sql statements and correct anoterTim Almdal
instance of {items` which won't get prefixed properly
2009-03-18Functional l10n_client / server interaction:Andy Staudacher
- Get / verify API Key from l10n server - Submit translations - Fetch translations / updates Reference: Tasks: 75, 76, 55 TODO: Move out of core (and a series of other tasks).
2009-03-17Treat calls to install() with TEST_MODE set to be initial installs. At ↵Bharat Mediratta
least for now.
2009-03-16Switch the locale::$locales data structure to be an array instead of aBharat Mediratta
stdClass because we're not allowed to asort() stdClass objects in PHP 5.2.6.
2009-03-16Set the sort_column and sort_order for the root albumBharat Mediratta
2009-03-16Oops, fix a typo.Bharat Mediratta
2009-03-16Get rid of the extra robust code we had in here to make theBharat Mediratta
scaffolding work when the Gallery wasn't installed yet. Now we force users through the installer.
2009-03-16Initialize $result in get_html()Bharat Mediratta
2009-03-16Don't count on the uri having 3 components; that breaks on newer versions of ↵Bharat Mediratta
PHP.
2009-03-16Illegal use of $this in static function site(). Replace with $theme.Bharat Mediratta
2009-03-16Thin down the scaffolding code so that all that is there is the testTim Almdal
data creation and the packaging code. The rest ofthe functionality is either no longer required, or moved to the developer module (MPTT Tree). Also provide checking for the active user to be an admin.
2009-03-15Move the start/stop translating menu item to the admin menuTim Almdal
2009-03-15Move profiling and debugging out of the scaffolding and into theTim Almdal
developer module.
2009-03-14style fixesBharat Mediratta
2009-03-14Invert the check for https vs http.Tim Almdal
2009-03-12Remove event handlers that are are no longer called (start_batch and end_batch)Tim Almdal
2009-03-11$task_definitions -> $task_defBharat Mediratta
2009-03-11Refine the task api but removing the optional parameters on theTim Almdal
task::create method call
2009-03-11Fix the Var_Test by making sure that the cache is cleared or updatedTim Almdal
when a variable is set or cleared.
2009-03-10access::allow/deny/reset functions will now throw an exception if youBharat Mediratta
don't pass in a Group_Model as the argument. This prevents us from setting permissions on the wrong group by accidentally passing in a User_Model.
2009-03-10Minor change to the task api with the addition of two optionalTim Almdal
parameters. The first allows the specification of a task name. Non-maintenance tasks are not defined as part of availabl_tasks so we can't get the name from the task definitions. The 2nd allows the specification of a context when the task is completed.
2009-03-10Add profiling/debugging switches in the Scaffold menu.Bharat Mediratta
2009-03-09Restructure the sort order to maintain the sort column and sort orderTim Almdal
as two separate columns in the item table.
2009-03-09Get rid of Task_Definition types: they're not necessary. ThisBharat Mediratta
incidentally fixes the the problem that admin/maintenance tasks have been broken.
2009-03-09Don't let graphics::resize() upscale images.Bharat Mediratta
Fixes ticket #117.
2009-03-09On second thought, make the description column varchar(2048) instead.Bharat Mediratta
If I understand correctly, this is better for performance. I could be wrong here, though.
2009-03-09Make the description a text column so that we can handle much largerBharat Mediratta
descriptions.
2009-03-09Tweak abs_file() and abs_site() to generate https urls as appropriate.Bharat Mediratta
Fixes ticket #125
2009-03-09Instead of putting after_install in the url, put it in the session.Bharat Mediratta
This helps us to make sure that we only see the welcome message once.
2009-03-08Log the user in as admin after running the web installer, and giveBharat Mediratta
them a nice "Welcome to Gallery 3" dialog. The text in there needs a little work but it's a start. In the process, re-build the install.sql using the scaffolding code.
2009-03-08Update sort order processing per Bharat's feedbackTim Almdal
* Remove mime type and type as sortable fields * Change the internal representation to serialized array * Shorten the database field to varchar(64)
2009-03-08Implement Sortable albums. Current sort fields include (CreationTim Almdal
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-07Add in-request caching of vars that we've already looked up. We'reBharat Mediratta
still doing too many database queries, but this cuts down some dupes.
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-03-05Implement a Maintenance mode as per ticket: #15Tim Almdal
2009-03-04Remove cruft from APIBharat Mediratta
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
batch::start() before starting a series of events, and batch::stop() when you're done. In batch mode, the notification module will store up pending notifications. When the batch job is complete, it'll send a single digested email to each user for all of her notifications. Updated the scaffold and local_import to use this. Haven't modified SimpleUploader yet.
2009-03-03Create a proxy event (gallery_event) which is called when the requestTim Almdal
is completing.
2009-03-03Add the ability for modules to define hooks. The challenge is thatTim Almdal
when the hooks are run, we haven't added all the installed modules to the path, So if a module defines a hook it will never be run. This change runs any module defined hooks as part of the gallery initialization.
2009-03-03Remove the === false and === true checksTim Almdal
I really mean it this time
2009-03-03Refactored the batch Api: 1) created a small batch helper class:Tim Almdal
Starting a batch call batch::operation(name, item). In the case of adding photos name = add and item is the parent of the new items. When the operation is finished the batch::end_operation(name) is called. operation and end_operation events are called. Handlers (i.e. item_created) can call batch::in_progress(name) to determine if a batch is being processed.
2009-03-03If backticks (`) are used to delimit the name of the table inTim Almdal
database, Kohana gets confused an appends the prefix outside of the back ticks
2009-03-01Simplify the batch api by having the core event handlers forTim Almdal
start_batch and end_batch add and remove the batch id from the session. Modules wishing to do batch processing, just need to fire the start_batch and end_batch events. Other modules that need to be aware of batches (i.e. notifications) just check the session for "batch_id".
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.