Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
itemtype.php
1
<?php
2
3
namespace
Bitrix\Mail\Blacklist
;
4
5
class
ItemType
6
{
7
8
const
DOMAIN
= 1;
9
const
EMAIL
= 2;
10
//const PATTERN = 3;
11
12
public
static
function
resolveByValue
($value)
13
{
14
if
(mb_strpos($value,
'@'
) > 0)
15
return
ItemType::EMAIL
;
16
17
return
ItemType::DOMAIN
;
18
}
19
20
}
Bitrix\Mail\Blacklist\ItemType
Definition
itemtype.php:6
Bitrix\Mail\Blacklist\ItemType\DOMAIN
const DOMAIN
Definition
itemtype.php:8
Bitrix\Mail\Blacklist\ItemType\EMAIL
const EMAIL
Definition
itemtype.php:9
Bitrix\Mail\Blacklist\ItemType\resolveByValue
static resolveByValue($value)
Definition
itemtype.php:12
Bitrix\Mail\Blacklist
Definition
itemtype.php:3
modules
mail
lib
blacklist
itemtype.php
Создано системой
1.10.0