<?php
namespace wcf\system\cronjob;
use wcf\data\cronjob\Cronjob;
+use wcf\system\event\EventHandler;
use wcf\system\WCF;
/**
$statement->execute(array(
(TIME_NOW - (86400 * 30))
));
+
+ EventHandler::getInstance()->fireAction($this, 'execute');
}
}
<?php
namespace wcf\system\cronjob;
use wcf\data\cronjob\Cronjob;
+use wcf\system\event\EventHandler;
/**
* Cronjob for a hourly system cleanup.
public function execute(Cronjob $cronjob) {
parent::execute($cronjob);
- return;
- // TODO
+ EventHandler::getInstance()->fireAction($this, 'execute');
}
}