Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
threadstrategycontext.php
1
<?php
2
3
namespace
Bitrix\Sender\Posting\ThreadStrategy
;
4
5
class
ThreadStrategyContext
6
{
7
public
static
function
buildStrategy
($type):?
IThreadStrategy
8
{
9
switch
($type)
10
{
11
case
IThreadStrategy::TEN
:
12
return
new
TenThreadsStrategy
();
13
break
;
14
case
IThreadStrategy::SINGLE
:
15
default
:
16
return
new
SingleThreadStrategy
();
17
break
;
18
}
19
}
20
}
Bitrix\Sender\Posting\ThreadStrategy\SingleThreadStrategy
Definition
singlethreadstrategy.php:9
Bitrix\Sender\Posting\ThreadStrategy\TenThreadsStrategy
Definition
tenthreadsstrategy.php:11
Bitrix\Sender\Posting\ThreadStrategy\ThreadStrategyContext
Definition
threadstrategycontext.php:6
Bitrix\Sender\Posting\ThreadStrategy\ThreadStrategyContext\buildStrategy
static buildStrategy($type)
Definition
threadstrategycontext.php:7
Bitrix\Sender\Posting\ThreadStrategy\IThreadStrategy
Definition
ithreadstrategy.php:8
Bitrix\Sender\Posting\ThreadStrategy\IThreadStrategy\SINGLE
const SINGLE
Definition
ithreadstrategy.php:10
Bitrix\Sender\Posting\ThreadStrategy\IThreadStrategy\TEN
const TEN
Definition
ithreadstrategy.php:9
Bitrix\Sender\Posting\ThreadStrategy
Definition
abstractthreadstrategy.php:3
modules
sender
lib
posting
threadstrategy
threadstrategycontext.php
Создано системой
1.10.0