<th class="columnID columnCronjobID{if $sortField == 'cronjobID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=cronjobID&sortOrder={if $sortField == 'cronjobID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
<th class="columnText columnExpression"><span>{lang}wcf.acp.cronjob.expression{/lang}</span></th>
<th class="columnText columnDescription{if $sortField == 'descriptionI18n'} active {@$sortOrder}{/if}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=descriptionI18n&sortOrder={if $sortField == 'descriptionI18n' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.description{/lang}</a></th>
+ <th class="columnText columnPackage{if $sortField == 'packageID'} active {@$sortOrder}{/if}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=packageID&sortOrder={if $sortField == 'packageID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.package.name{/lang}</a></th>
<th class="columnDate columnNextExec{if $sortField == 'nextExec'} active {@$sortOrder}{/if}"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=nextExec&sortOrder={if $sortField == 'nextExec' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.acp.cronjob.nextExec{/lang}</a></th>
{event name='columnHeads'}
{$cronjob->getDescription()}
{/if}
</td>
+ <td class="columnText columnPackage">
+ {$cronjob->getPackage()}
+ </td>
<td class="columnDate columnNextExec">
{if !$cronjob->isDisabled && $cronjob->nextExec != 1}
{@$cronjob->nextExec|plainTime}
use Cron\CronExpression;
use wcf\data\DatabaseObject;
+use wcf\data\package\Package;
+use wcf\data\package\PackageCache;
use wcf\data\TDatabaseObjectOptions;
use wcf\system\WCF;
{
return WCF::getLanguage()->get($this->description);
}
+
+ /**
+ * @since 6.1
+ */
+ public function getPackage(): Package
+ {
+ return PackageCache::getInstance()->getPackage($this->packageID);
+ }
}