Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Runtime.php
1
<?php
2
3
namespace
Bitrix\Seo\Sitemap\Internals
;
4
5
use
Bitrix\Main\Entity
;
6
7
class
RuntimeTable
extends
Entity\DataManager
8
{
9
const
ACTIVE
=
'Y'
;
10
const
INACTIVE
=
'N'
;
11
12
const
ITEM_TYPE_DIR
=
'D'
;
13
const
ITEM_TYPE_FILE
=
'F'
;
14
const
ITEM_TYPE_IBLOCK
=
'I'
;
15
const
ITEM_TYPE_SECTION
=
'S'
;
16
const
ITEM_TYPE_ELEMENT
=
'E'
;
17
const
ITEM_TYPE_FORUM
=
'G'
;
18
const
ITEM_TYPE_TOPIC
=
'T'
;
19
20
const
PROCESSED
=
'Y'
;
21
const
UNPROCESSED
=
'N'
;
22
23
public
static
function
getFilePath
(): string
24
{
25
return
__FILE__;
26
}
27
28
public
static
function
getTableName
()
29
{
30
return
'b_seo_sitemap_runtime'
;
31
}
32
33
public
static
function
getMap
()
34
{
35
$fieldsMap = [
36
'ID'
=> [
37
'data_type'
=>
'integer'
,
38
'primary'
=>
true
,
39
'autocomplete'
=>
true
,
40
],
41
'PID'
=> [
42
'data_type'
=>
'integer'
,
43
'required'
=>
true
,
44
],
45
'PROCESSED'
=> [
46
'data_type'
=>
'boolean'
,
47
'values'
=> [
self::UNPROCESSED
,
self::PROCESSED
],
48
],
49
'ITEM_PATH'
=> [
50
'data_type'
=>
'string'
,
51
],
52
'ITEM_ID'
=> [
53
'data_type'
=>
'integer'
,
54
],
55
'ITEM_TYPE'
=> [
56
'data_type'
=>
'enum'
,
57
'values'
=> [
58
self::ITEM_TYPE_DIR
,
59
self::ITEM_TYPE_FILE
,
60
self::ITEM_TYPE_IBLOCK
,
61
self::ITEM_TYPE_SECTION
,
62
self::ITEM_TYPE_ELEMENT
,
63
self::ITEM_TYPE_FORUM
,
64
self::ITEM_TYPE_TOPIC
,
65
],
66
],
67
'ACTIVE'
=> [
68
'data_type'
=>
'boolean'
,
69
'values'
=> [
self::INACTIVE
,
self::ACTIVE
],
70
],
71
'ACTIVE_ELEMENT'
=> [
72
'data_type'
=>
'boolean'
,
73
'values'
=> [
self::INACTIVE
,
self::ACTIVE
],
74
],
75
];
76
77
return
$fieldsMap;
78
}
79
80
public
static
function
clearByPid
($PID)
81
{
82
$connection = \Bitrix\Main\Application::getConnection();
83
$query = $connection->query(
"
84
DELETE
85
FROM "
. self::getTableName() .
"
86
WHERE PID='"
. intval($PID) .
"'
87
"
);
88
}
89
}
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Seo\Sitemap\Internals\RuntimeTable
Definition
Runtime.php:8
Bitrix\Seo\Sitemap\Internals\RuntimeTable\PROCESSED
const PROCESSED
Definition
Runtime.php:20
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_TOPIC
const ITEM_TYPE_TOPIC
Definition
Runtime.php:18
Bitrix\Seo\Sitemap\Internals\RuntimeTable\getMap
static getMap()
Definition
Runtime.php:33
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_ELEMENT
const ITEM_TYPE_ELEMENT
Definition
Runtime.php:16
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_FILE
const ITEM_TYPE_FILE
Definition
Runtime.php:13
Bitrix\Seo\Sitemap\Internals\RuntimeTable\clearByPid
static clearByPid($PID)
Definition
Runtime.php:80
Bitrix\Seo\Sitemap\Internals\RuntimeTable\getFilePath
static getFilePath()
Definition
Runtime.php:23
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_DIR
const ITEM_TYPE_DIR
Definition
Runtime.php:12
Bitrix\Seo\Sitemap\Internals\RuntimeTable\UNPROCESSED
const UNPROCESSED
Definition
Runtime.php:21
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ACTIVE
const ACTIVE
Definition
Runtime.php:9
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_SECTION
const ITEM_TYPE_SECTION
Definition
Runtime.php:15
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_FORUM
const ITEM_TYPE_FORUM
Definition
Runtime.php:17
Bitrix\Seo\Sitemap\Internals\RuntimeTable\INACTIVE
const INACTIVE
Definition
Runtime.php:10
Bitrix\Seo\Sitemap\Internals\RuntimeTable\ITEM_TYPE_IBLOCK
const ITEM_TYPE_IBLOCK
Definition
Runtime.php:14
Bitrix\Seo\Sitemap\Internals\RuntimeTable\getTableName
static getTableName()
Definition
Runtime.php:28
Bitrix\Seo\Sitemap\Internals
Definition
Entity.php:3
modules
seo
lib
Sitemap
Internals
Runtime.php
Создано системой
1.10.0