Totally Zenned
- Join Date:
- Dec 2007
- Location:
- Payson, AZ
- Posts:
- 1,075
- Plugin Contributions:
- 7
Converting call from application_top to autoloader! Auction Cron Job
I've got most of the other suggextions done, but the code change for application_top was wipe from the email.
How do I convert this from application_top to autoloader!
if (AUCTION_CRON_ENABLE == '0') {
require(DIR_WS_CLASSES . 'class.productauction.php');
productAuction::checkAuctionStatuses();
}
```The way it was used is to check date and time for any closed auctions then process them if true. The switch is to allow for a CRON Job and not do a check on each page load. I've setup the config.auction.php in the auto_loaders folder like so...
$autoLoadConfig[0][] = array('autoType'=>'class',
'loadFile'=> 'class.productauction.php');
$autoLoadConfig[170][] = array('autoType'=>'classInstantiate',
'className'=>'productauction',
'objectName'=>'checkAuctionStatuses');
Also, Is their another way to do the switch?
Dave
Always forward thinking... Lost my mind!