*/ /** * Required classes */ GalleryCoreApi::requireOnce('modules/checkout/classes/CheckoutTransactionHelper.class'); /** * This controller will handle housekeeping in the database * by deleting transactions that haven't had a buyer's address * submitted within 1 hour. * * Might be a good idea to schedule something like wget with * cron to get this page once a day... * * @package Checkout * @subpackage UserInterface * */ class HouseKeeperController extends GalleryController { /** * @see GalleryController::handleRequest() */ function handleRequest($form) { list($ret) = CheckoutTransactionHelper::purgeDeadTransactions(); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $results['redirect']['view'] = ''; $results['status'] = array(); $results['error'] = array(); $results['isError'] = false; return array(null, $results); } } ?>