<!-- Represents a cronjob which will be installed,updated or deleted. Extends the type "cronjob_delete". -->
<xs:complexType name="cronjob">
<xs:all>
- <xs:element name="classpath" type="woltlab_varchar_nullable" minOccurs="0" />
+ <xs:element name="classname" type="woltlab_varchar_nullable" minOccurs="0" />
<xs:element name="description" type="woltlab_varchar_nullable" minOccurs="0" />
<xs:element name="startminute" type="woltlab_varchar" minOccurs="1" />
<xs:element name="starthour" type="woltlab_varchar" minOccurs="1" />
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/cronjobs.xsd">
<import>
<cronjob>
- <classpath>lib/system/cronjob/GetUpdateInfoCronjob.class.php</classpath>
+ <classname>wcf\system\cronjob\GetUpdateInfoCronjob</classname>
<description>Gets update package information</description>
<startminute>0</startminute>
<starthour>2</starthour>
</cronjob>
<cronjob>
- <classpath>lib/system/cronjob/RefreshSearchRobotsCronjob.class.php</classpath>
+ <classname>wcf\system\cronjob\RefreshSearchRobotsCronjob</classname>
<description>Refreshes list of search robots</description>
<startminute>0</startminute>
<starthour>3</starthour>
</cronjob>
<cronjob>
- <classpath>lib/system/cronjob/CleanUpCronjobLogCronjob.class.php</classpath>
+ <classname>wcf\system\cronjob\CleanUpCronjobLogCronjob</classname>
<description>Deletes old entries from cronjob log.</description>
<startminute>0</startminute>
<starthour>12</starthour>
</cronjob>
<cronjob>
- <classpath>lib/system/cronjob/CleanUpSessionLogCronjob.class.php</classpath>
+ <classname>wcf\system\cronjob\CleanUpSessionLogCronjob</classname>
<description>Deletes old entries from session log.</description>
<startminute>0</startminute>
<starthour>10</starthour>
</cronjob>
<cronjob>
- <classpath>lib/system/cronjob/CleanupListenerCronjob.class.php</classpath>
+ <classname>wcf\system\cronjob\CleanupListenerCronjob</classname>
<description>Executes cleanup system.</description>
<startminute>5,20,35,50</startminute>
<starthour>*</starthour>
public $objectListClassName = 'wcf\data\cronjob\CronjobList';
/**
- * @see wcf\page\MultipleLinkPage::readObjects()
+ * @see wcf\page\MultipleLinkPage::initObjectList()
*/
- public function readObjects() {
+ public function initObjectList() {
+ parent::initObjectList();
+
$this->objectList->getConditionBuilder()->add("cronjob.packageID IN (?)", array(PackageDependencyHandler::getDependencies()));
$this->sqlOrderBy = "cronjob.".$this->sortField." ".$this->sortOrder;
-
- parent::readObjects();
}
/**
/**
* @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::$tagName
*/
- public $tagName = 'cronjobs';
+ public $tagName = 'cronjob';
/**
* @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::handleDelete()
*/
protected function handleDelete(array $items) {
$sql = "DELETE FROM wcf".WCF_N."_".$this->tableName."
- WHERE classPath = ?
+ WHERE className = ?
AND packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
foreach ($items as $item) {
$statement->execute(array(
- $item['attributes']['classpath'],
+ $item['attributes']['classname'],
$this->installation->getPackageID()
));
}
* @see wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::validateImport()
*/
protected function validateImport(array $data) {
- CronjobUtil::validate($startMinute, $startHour, $startDom, $startMonth, $startDow);
+ CronjobUtil::validate($data['startMinute'], $data['startHour'], $data['startDom'], $data['startMonth'], $data['startDow']);
}
/**