Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
context.php
1
<?php
8
namespace
Bitrix\Main\Mail
;
9
10
class
Context
11
{
12
const
CAT_EXTERNAL
= 1;
13
const
PRIORITY_HIGH
= 1;
14
const
PRIORITY_NORMAL
= 2;
15
const
PRIORITY_LOW
= 3;
16
17
protected
$category
;
18
protected
$priority
;
19
21
protected
$smtp
;
22
24
protected
$callback
;
25
26
protected
$keepAlive
;
27
28
public
function
__construct
(array $params =
null
)
29
{
30
if
(!empty($params))
31
{
32
foreach
($params as $name => $value)
33
{
34
$setter = sprintf(
'set%s'
, $name);
35
if
(is_callable(array($this, $setter)))
36
{
37
$this->$setter($value);
38
}
39
}
40
}
41
}
42
47
public
function
setCategory
($category)
48
{
49
$this->category =
$category
;
50
return
$this;
51
}
52
56
public
function
getCategory
()
57
{
58
return
$this->category;
59
}
60
65
public
function
setSmtp
(Smtp\
Config
$config)
66
{
67
$this->smtp = $config;
68
return
$this;
69
}
70
74
public
function
getSmtp
()
75
{
76
return
$this->smtp;
77
}
78
83
public
function
setPriority
($priority)
84
{
85
$this->priority =
$priority
;
86
return
$this;
87
}
88
92
public
function
getPriority
()
93
{
94
return
$this->priority;
95
}
96
103
public
function
setCallback
(Callback\
Config
$config)
104
{
105
$this->callback = $config;
106
return
$this;
107
}
108
114
public
function
getCallback
()
115
{
116
return
$this->callback;
117
}
118
122
public
function
getKeepAlive
(): ?string
123
{
124
return
$this->keepAlive;
125
}
126
130
public
function
setKeepAlive
(?
string
$keepAlive)
131
{
132
$this->keepAlive = $keepAlive;
133
}
134
}
Bitrix\Main\Context
Definition
context.php:18
Bitrix\Main\Mail\Context\$category
$category
Definition
context.php:17
Bitrix\Main\Mail\Context\getPriority
getPriority()
Definition
context.php:92
Bitrix\Main\Mail\Context\PRIORITY_HIGH
const PRIORITY_HIGH
Definition
context.php:13
Bitrix\Main\Mail\Context\$priority
$priority
Definition
context.php:18
Bitrix\Main\Mail\Context\setCategory
setCategory($category)
Definition
context.php:47
Bitrix\Main\Mail\Context\PRIORITY_LOW
const PRIORITY_LOW
Definition
context.php:15
Bitrix\Main\Mail\Context\__construct
__construct(array $params=null)
Definition
context.php:28
Bitrix\Main\Mail\Context\setSmtp
setSmtp(Smtp\Config $config)
Definition
context.php:65
Bitrix\Main\Mail\Context\CAT_EXTERNAL
const CAT_EXTERNAL
Definition
context.php:12
Bitrix\Main\Mail\Context\$callback
$callback
Definition
context.php:24
Bitrix\Main\Mail\Context\setPriority
setPriority($priority)
Definition
context.php:83
Bitrix\Main\Mail\Context\getKeepAlive
getKeepAlive()
Definition
context.php:122
Bitrix\Main\Mail\Context\PRIORITY_NORMAL
const PRIORITY_NORMAL
Definition
context.php:14
Bitrix\Main\Mail\Context\setKeepAlive
setKeepAlive(?string $keepAlive)
Definition
context.php:130
Bitrix\Main\Mail\Context\getSmtp
getSmtp()
Definition
context.php:74
Bitrix\Main\Mail\Context\getCallback
getCallback()
Definition
context.php:114
Bitrix\Main\Mail\Context\getCategory
getCategory()
Definition
context.php:56
Bitrix\Main\Mail\Context\setCallback
setCallback(Callback\Config $config)
Definition
context.php:103
Bitrix\Main\Mail\Context\$keepAlive
$keepAlive
Definition
context.php:26
Bitrix\Main\Mail\Context\$smtp
$smtp
Definition
context.php:21
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Main\Mail
Definition
address.php:8
modules
main
lib
mail
context.php
Создано системой
1.10.0