1C-Bitrix
25.700.0
Toggle main menu visibility
Титульная страница
Пространства имен
Пространства имен
Члены пространств имен
Указатель
$
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Функции
_
a
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Переменные
$
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
w
Перечисления
a
b
c
d
e
f
g
l
m
n
o
p
r
s
t
u
v
w
Элементы перечислений
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Структуры данных
Структуры данных
Алфавитный указатель структур данных
Иерархия классов
Поля структур
Указатель
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Функции
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Перечисления
Элементы перечислений
Файлы
Файлы
Список членов всех файлов
Указатель
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
б
в
к
л
о
п
с
т
ю
Функции
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
б
в
к
л
о
п
с
т
ю
Блог
Хостинг
1C-Bitrix
Пространства имен
Структуры данных
Файлы
Файлы
bitrix
modules
abtest
advertising
b24connector
bitrixcloud
bizproc
bizprocdesigner
blog
calendar
catalog
clouds
cluster
conversion
currency
eshopapp
fileman
form
forum
highloadblock
iblock
idea
im
landing
ldap
learning
lists
location
mail
main
messageservice
mobileapp
perfmon
photogallery
pull
report
rest
sale
scale
search
security
sender
seo
classes
lib
adv
analytics
businesssuite
authadapter
configuration
dto
exception
internals
services
utils
queueeventhandler.php
queueremoveeventhandler.php
servicefactory.php
servicepool.php
servicequeue.php
abstractbase.php
account.php
catalog.php
config.php
conversion.php
extension.php
extensionfacade.php
iinternalservice.php
service.php
serviceadapter.php
servicemetadata.php
servicewrapper.php
catalog
checkout
controller
conversion
engine
leadads
marketing
media
retargeting
Sitemap
ui
update
webhook
Webmaster
adventity.php
advsession.php
advtabengine.php
conversionhandler.php
engine.php
iengine.php
robotsfile.php
searchengine.php
service.php
meta
tools
.settings.php
compatibility.php
include.php
options.php
socialnetwork
socialservices
statistic
storeassist
subscribe
support
translate
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
servicefactory.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite\Utils;
4
5
use Bitrix\Seo;
6
use Bitrix\Seo\BusinessSuite\Exception;
7
8
final
class
ServiceFactory
9
{
11
private
static
$enginePool;
12
16
private
static
function
getServices() :
array
17
{
18
return
[
19
Seo\BusinessSuite\Service::getInstance
(),
20
Seo\LeadAds\Service::getInstance
(),
21
Seo\Analytics\Service::getInstance
(),
22
Seo\Retargeting\Service::getInstance
(),
23
Seo\Marketing\Service::getInstance
(),
24
Seo\Catalog\Service::getInstance
()
25
];
26
}
27
31
private
static
function
getEnginePool() :
array
32
{
33
if
(!static::$enginePool)
34
{
35
static::$enginePool = [];
36
foreach
(self::getServices() as
$service
)
37
{
38
foreach
($service::getTypes() as
$type
)
39
{
40
static::$enginePool[$service::getEngineCode(
$type
)] =
$service
;
41
}
42
}
43
}
44
return
static::$enginePool;
45
}
46
54
public
static
function
getServiceByEngineCode
(
string
$engineCode) :
Seo
\
BusinessSuite
\
IInternalService
55
{
56
if
(array_key_exists($engineCode,$pool = static::getEnginePool()))
57
{
58
return
$pool[$engineCode];
59
}
60
throw
new
Exception\ServiceLoadException
(
'EngineCode'
);
61
}
54
public
static
function
getServiceByEngineCode
(
string
$engineCode) :
Seo
\
BusinessSuite
\
IInternalService
{
…
}
62
}
8
final
class
ServiceFactory
{
…
};
$type
$type
Определения
options.php:106
Bitrix\Seo\Analytics\Service\getInstance
static getInstance()
Определения
service.php:31
Bitrix\Seo\BusinessSuite\Exception\ServiceLoadException
Определения
serviceloadexception.php:7
Bitrix\Seo\BusinessSuite\Service\getInstance
static getInstance()
Определения
service.php:75
Bitrix\Seo\BusinessSuite\Utils\ServiceFactory
Определения
servicefactory.php:9
Bitrix\Seo\BusinessSuite\Utils\ServiceFactory\getServiceByEngineCode
static getServiceByEngineCode(string $engineCode)
Определения
servicefactory.php:54
Bitrix\Seo\Catalog\Service\getInstance
static getInstance()
Определения
service.php:28
Bitrix\Seo\LeadAds\Service\getInstance
static getInstance()
Определения
service.php:48
Bitrix\Seo\Marketing\Service\getInstance
static getInstance()
Определения
service.php:28
Bitrix\Seo\Retargeting\Service\getInstance
static getInstance()
Определения
service.php:25
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Seo\BusinessSuite\IInternalService
Определения
iinternalservice.php:8
Bitrix\Seo\BusinessSuite
Определения
abstractbase.php:3
Bitrix\Seo
$service
$service
Определения
payment.php:18
bitrix
modules
seo
lib
businesssuite
utils
servicefactory.php
Создано системой
1.14.0