summaryrefslogtreecommitdiff
path: root/core/helpers/module.php
AgeCommit message (Collapse)Author
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2009-01-14Since module_Core is static the methods, get_var, set_var, etc should be staticTim Almdal
2009-01-11Remove stray blank line, convert single to double quotes.Bharat Mediratta
2009-01-11Reset module_names / modules early in load_modules() so that unit test ↵Bharat Mediratta
framework can dump the loaded modules after switching databases even if the modules table doesn't exist yet
2009-01-10Big set of changes to comments, with related changes to akismet andBharat Mediratta
user modules. * Don't delete vars when we delete a module. This makes reinstalling a module a lot easier. * Add user::lookup() as the preferred way to load a user, so that other modules don't delve into the user module (that'd be a problem when we swap out user modules) * Notify site admins if Akismet is not fully configured * Bundle all server variables into the comment so that if/when we re-check the comment, we are not using the server info from the site admin's request. * Update Akismet to grab request context data from the comment * Pre-seed comment fields if we have a logged in user. Update comment::create() API to clarify it for this. * Delete comment::update(), that's a controller function. * Add url to User_Model * Add author_name() author_email() and author_url() to Comment_Model. It'll return the appropriate values depending on whether the comment was left by a logged in user or a guest. * Use resetForm() instead of clearForm() when we reload the comment form after ajax submit, this way we preserve the pre-seeded values. * In the user profile page, ignore blank passwords.
2009-01-09Theme Administration v. 2. Doesn't distinguish between regular and admin ↵Felix Rabinovich
themes yet
2009-01-09Un hook the installer from load_modules, so testers can get to the ↵Tim Almdal
scaffolding to install
2009-01-09Stage 1 of the installer. basically check that we can start as far as Kohana ↵Tim Almdal
correctly
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.
2009-01-08module::event now takes an unlimited number of argsBharat Mediratta
added module::incr_var() ftw.
2008-12-26Fix a bug I introduced when I switched from module id to module name; now ↵Bharat Mediratta
deleting cleans up vars and graphics rules
2008-12-26Add module::clear_var()Bharat Mediratta
2008-12-25Rework log and message helpers to be parallel, but separate.Bharat Mediratta
1) they now have their own matching severity constants 2) they both have convenience functions success(), info(), warning() and error() 3) they both have severity_class()
2008-12-23Add very simple graphics toolkits.Bharat Mediratta
Track a set of rules in Graphics_Rule_Model which specify how we turn original images into thumbnails and resizes. There's one set of rules that applies to every image in the Gallery. Track the state of thumbs and resizes with a "dirty" bit. The new graphics helper manages the rules and can rebuild the thumbs and resizes for any images that are considered "dirty". Introduce the concept of an "album cover" which is an item that an album points to. We'll use that item as the source for the album's thumbnail/resize. Conflated with this change (sorry!) I also changed the Var table to use module_name instead of module_id. This may be marginally less efficient, but it's much easier to follow in the database.
2008-12-22Add messaging system for reporting actions back to the user. MakeBharat Mediratta
module install/uninstall work and tie it into the messaging system.
2008-12-22Reinstate the dummy error handler to ensure that we work in a clean install ↵Bharat Mediratta
w/ no database
2008-12-22Lock a couple of modulesBharat Mediratta
2008-12-22Change the way that we track modules.Bharat Mediratta
Each module now has a "module.info" file that has information about the module, including the core. We can display the installed version, and the version in the code. Also take a first shot at a modules admin page.
2008-12-21Add phpdoc comments.Bharat Mediratta
2008-12-20Create module::load_themes() to load the correct theme after we doBharat Mediratta
routing and know whether we're going to an /admin page or a regular one.
2008-12-17Clear out module list in load_modules() before trying any db operationsBharat Mediratta
2008-12-17Switch from cookie sessions to database sessions. We can't use cookieBharat Mediratta
sessions; it encodes all the value into the cookie which means little/no security, transfer costs, and storage limits.
2008-12-17Add initialization to the user module to put the user and group_idsBharat Mediratta
into the session, for easy access. This cuts down the number of queries when we're loading images through file_proxy.php
2008-12-16Don't use model_cache for get_version and set_version; that breaks the ↵Bharat Mediratta
installer.
2008-12-16Use model_cache::get() to reduce duplicate queriesBharat Mediratta
2008-12-151) Move the deletion of the vars into module::delete helperTim Almdal
2) remove the watermark_add_form.html.php
2008-12-12Refaactor module::install() and module::uninstall() out of theBharat Mediratta
scaffolding and unit test code so that we can use it consistently. This fixes an issue where adding a module was not refreshing the statically cached module list causing the test framework to break.
2008-12-12Make the error handler public, else it can't be called from outsideBharat Mediratta
this class (which is the most likely scenario).
2008-12-12Cache modules and module_names when we call load_modules so that we don't ↵Bharat Mediratta
have to check every time
2008-12-12Yet another deal with bootstrapping when we've got no core install yet.Bharat Mediratta
2008-12-12Fix module::_core_installed() hack.Bharat Mediratta
2008-12-12Expand on our core-is-installed checking code.Bharat Mediratta
2008-12-11Guard load_modules() against the case that the database isn't installed.Bharat Mediratta
2008-12-11Change the name of the implmentation of module parameters to module varsTim Almdal
2008-12-10Create a module parameter table. This will be useful if a module wants to ↵Tim Almdal
store information, but is not enough to warrant a table of its own
2008-12-05* Add a moveTo unit testTim Almdal
* Pass the module::event(..., $data) by reference to the handlers
2008-12-04Change the startup code to only put installed modules on the autoloadBharat Mediratta
path. This breaks a bunch of places where we had hardcoded dependencies, so guard all of those cases. Restructure module::available() a bit and the way that we do install/uninstall in the scaffolding.
2008-11-28Remove debugging statementsTim Almdal
2008-11-28Dynamically create the list of available modules. This permits new modules ↵Tim Almdal
to be added without having to update the config.php file
2008-11-28Create module::event() which runs Gallery events. It works byBharat Mediratta
convention. To respond to the "photo_created" event in the gmaps module, you create modules/gmaps/helpers/gmaps_event.php containing class gmaps_event which has function photo_created. Renamed all events from gallery.foo.bar to foo_bar Updated tag module to use new convention.
2008-11-28Rename module::get_list() to module::installed()Bharat Mediratta
2008-11-27Centralize logging around installing/uninstalling modules.Bharat Mediratta
2008-11-22Correct case on helper class names. By convention, helper class names are ↵Tim Almdal
lower case: http://docs.kohanaphp.com/general/helpers Remove block_helper file as the abstract class os no longer required.
2008-11-212nd attempt at inserting html by modules.Tim Almdal
2008-11-18Added the is_installed to the module helper and change to photo.html to not ↵Tim Almdal
try to display a comment if it is not installed
2008-11-15Add Theme::module() and module::get()Bharat Mediratta
2008-11-13Create module helper and refactor all the code that creates, updatesBharat Mediratta
and deletes modules into it.