summaryrefslogtreecommitdiff
path: root/core/controllers/scaffold.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-26clean up whitespace errors introduced in last commitBharat Mediratta
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-18Clean up tmp when packagingBharat 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-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Unlink var/modules dir also when packagingBharat Mediratta
2009-05-13Clean out old dirs before packaging.Bharat Mediratta
2009-04-28auto install organize moduleBharat Mediratta
2009-03-20Oops, we need UNIX_TIMESTAMP() instead of NOW()Bharat Mediratta
2009-03-20Do some data normalization so that the install files will have stableBharat Mediratta
ordering and known values. This way subsequent packaging runs won't have any differences unless there's a real data change.
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-16Revive the install() and uninstall() functions in Scaffold_ControllerBharat Mediratta
because we need those to make a package. Fix the packaging code to ignore whatever prefix is being used by the developer who is doing the packaging. Update the install.sql file (there were a variety of small inconsistencies, probably from hand-editing. Don't hand-edit this file!)
2009-03-16Move security into the constructor. Protecting the index() call is easily ↵Bharat Mediratta
bypassed.
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 profiling and debugging out of the scaffolding and into theTim Almdal
developer module.
2009-03-10Add profiling/debugging switches in the Scaffold menu.Bharat Mediratta
2009-03-08Post process the sql generation code to support prefixesBharat 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-04Delete test(), it should never have been checked in.Bharat Mediratta
2009-03-03Use the gallery root directory on the batch::operation call whenTim Almdal
generating random albums and images
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-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-28The scaffolding, simple_uploader and local_import now call two newTim Almdal
events: start_add_batch and end_add_batch. The parameter is a batch id which is generated on the first add request. The protocol is call the add_photo as many times as required and then call finish when done. Also renamed the add method in local_import to add_photo so it is consistent with simple_uploader
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-26Use the Database::update function instead of a raw SQL queryTim Almdal
2009-02-22Remove the $item from the various graphics functions, that was a badBharat Mediratta
idea. Instead convert movies to jpeg before doing any transformations, which keeps the graphics functions clean and abstract and dealing solely with image types. Lighter/simpler solution.
2009-02-191) Rename the module media_rss to rssTim Almdal
2) Protect the fullsize image with a permission check 3) Added a content:encoded element to each item which allows the image to show up in the body of the feed.
2009-02-08rollback r20001-r19998, r19995. This may require a reinstallTim Almdal
2009-02-06Implement fix for ticket #35. *** Requires reinstall of core ***Tim Almdal
* Added new field in items table (path) which is sanitized version of name. * Added __set method on Items_module to set the path field whenever the name field is changed. * Made some changes to the scaffolding so missing the path column would not kill the scaffolding. * Changed MY_url::site so not having a 3rd parameter won't throw an error.
2009-02-05Rename "welcome" controller to "scaffold" so that we can eventuallyBharat Mediratta
have a welcome page.