Commit Graph
11 Commits
Author SHA1 Message Date
Bharat Mediratta bfca0c7903 Refactor the install/upgrade code to be more flexible.
Add xxx_installer::upgrade($version) method so that upgrade stanzas
are separate from install stanzas.  In the old code, to do an upgrade
meant that you had to re-evolve everything from the initial install
because we'd step through each version's changes.  But what we really
want is for the initial install to start off in the perfect initial
state, and the upgrades to do the work behind the scenes.  So now the
install() function gets things set up properly the first time, and the
upgrade() function does any work to catch you up to the latest code.
See gallery_installer.php for a good example.
2009-06-23 12:00:49 -07:00
unostarandBharat Mediratta 1e4bf621f1 corrected misprint
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-06 01:25:11 +08:00
Tim Almdal 0f987880e6 Fix for ticket #320 2009-06-02 12:08:47 -07:00
Bharat Mediratta 7aed923908 Restructure the module lifecycle.
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-26 05:28:59 +00:00
Bharat Mediratta 5495037a3d Gee it's May already. Update copyright to 2009. 2009-05-13 20:04:58 +00:00
Tim Almdal c4cdecc05f 1) Change the image block so it has the correct url in the anchor tag.
2) Change the wrapping class to gImageBlock instead of gImage so the
quick kinks aren't enabled
2009-02-27 13:44:19 +00:00
Bharat Mediratta 3193c19ca9 Remove unneeded code. 2009-02-27 05:40:29 +00:00
Bharat Mediratta cd0f9a5d6c Optimize the code by ditching the count query; we don't need it. 2009-02-27 05:39:51 +00:00
Tim Almdal d097b4fc02 Update to image_block based on bharat's feedback
1) move the rand_key column into core
2) don't do a max rand, just try to a get a random number less than
the current random number if that doesn't successd look the other way
2009-02-26 23:38:17 +00:00
Tim Almdal 63b3b505c1 Remove debugging statement 2009-02-26 16:02:43 +00:00
Tim Almdal f87e1de3ec Implement a random image block for the side bar. Ticket #13 2009-02-26 15:02:04 +00:00