3namespace Bitrix\Seo\Sitemap\Internals;
5use \Bitrix\Main\Entity;
6use \Bitrix\Main\Localization\Loc;
7use Bitrix\Main\Type\DateTime;
8use Bitrix\Seo\Sitemap\Job;
10Loc::loadMessages(__FILE__);
17 return 'b_seo_sitemap_job';
23 'ID' =>
new Entity\IntegerField(
'ID', [
25 'autocomplete' =>
true,
28 'SITEMAP_ID' =>
new Entity\IntegerField(
'SITEMAP_ID', [
30 'title' =>
'Sitemap ID',
32 'RUNNING' =>
new Entity\BooleanField(
'RUNNING', [
34 'title' =>
'If job is running now',
35 'values' => [
'Y',
'N'],
37 'STATUS' =>
new Entity\StringField(
'STATUS', [
40 'title' =>
'Status of job',
42 'STATUS_MESSAGE' =>
new Entity\StringField(
'STATUS_MESSAGE', [
43 'title' =>
'Text message of status current job',
45 'STEP' =>
new Entity\IntegerField(
'STEP', [
48 'title' =>
'Current step',
50 'STATE' =>
new Entity\StringField(
'STATE', [
52 'title' =>
'Process state data',
54 'DATE_MODIFY' =>
new Entity\DatetimeField(
'DATE_MODIFY', [
55 'title' =>
'Date of changes',
77 $result =
new Entity\EventResult();
static onBeforeUpdate(Entity\Event $event)
static onBeforeAdd(Entity\Event $event)
static prepareChanges(Entity\Event $event)