Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Step.php
1
<?php
2
namespace
Bitrix\Seo\Sitemap\Type
;
3
4
class
Step
5
{
6
public
const
STEP_INIT
=
'init'
;
7
public
const
STEP_FILES
=
'files'
;
8
public
const
STEP_IBLOCK_INDEX
=
'iblock_index'
;
9
public
const
STEP_IBLOCK
=
'iblock'
;
10
public
const
STEP_FORUM_INDEX
=
'forum_index'
;
11
public
const
STEP_FORUM
=
'forum'
;
12
public
const
STEP_INDEX
=
'index'
;
13
14
public
const
STEPS
= [
15
self::STEP_INIT => 0,
16
self::STEP_FILES => 40,
17
self::STEP_IBLOCK_INDEX => 50,
18
self::STEP_IBLOCK => 60,
19
self::STEP_FORUM_INDEX => 70,
20
self::STEP_FORUM => 80,
21
self::STEP_INDEX => 100,
22
];
23
28
public
static
function
getFirstStep
(): int
29
{
30
$stepValues = array_values(self::STEPS);
31
32
return
array_shift($stepValues);
33
}
34
39
public
static
function
getFirstStepName
(): string
40
{
41
$stepValues = array_keys(self::STEPS);
42
43
return
array_shift($stepValues);
44
}
45
50
public
static
function
getLastStep
(): int
51
{
52
$stepValues = array_values(self::STEPS);
53
54
return
array_pop($stepValues);
55
}
56
61
public
static
function
getLastStepName
(): string
62
{
63
$stepValues = array_keys(self::STEPS);
64
65
return
array_pop($stepValues);
66
}
67
}
Bitrix\Seo\Sitemap\Type\Step
Definition
Step.php:5
Bitrix\Seo\Sitemap\Type\Step\STEP_FILES
const STEP_FILES
Definition
Step.php:7
Bitrix\Seo\Sitemap\Type\Step\STEP_IBLOCK
const STEP_IBLOCK
Definition
Step.php:9
Bitrix\Seo\Sitemap\Type\Step\STEPS
const STEPS
Definition
Step.php:14
Bitrix\Seo\Sitemap\Type\Step\STEP_IBLOCK_INDEX
const STEP_IBLOCK_INDEX
Definition
Step.php:8
Bitrix\Seo\Sitemap\Type\Step\STEP_FORUM
const STEP_FORUM
Definition
Step.php:11
Bitrix\Seo\Sitemap\Type\Step\getLastStepName
static getLastStepName()
Definition
Step.php:61
Bitrix\Seo\Sitemap\Type\Step\getFirstStepName
static getFirstStepName()
Definition
Step.php:39
Bitrix\Seo\Sitemap\Type\Step\getLastStep
static getLastStep()
Definition
Step.php:50
Bitrix\Seo\Sitemap\Type\Step\STEP_INIT
const STEP_INIT
Definition
Step.php:6
Bitrix\Seo\Sitemap\Type\Step\getFirstStep
static getFirstStep()
Definition
Step.php:28
Bitrix\Seo\Sitemap\Type\Step\STEP_INDEX
const STEP_INDEX
Definition
Step.php:12
Bitrix\Seo\Sitemap\Type\Step\STEP_FORUM_INDEX
const STEP_FORUM_INDEX
Definition
Step.php:10
Bitrix\Seo\Sitemap\Type
Definition
Step.php:2
modules
seo
lib
Sitemap
Type
Step.php
Создано системой
1.10.0