1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
abuse.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sender\Internals\Model
;
4
5
use
Bitrix\Main\Entity
;
6
use
Bitrix\Main\Type\DateTime
;
7
8
26
class
AbuseTable
extends
Entity\DataManager
27
{
28
const
COUNTER_CODE_ABUSES
=
'abuses'
;
29
35
public
static
function
getTableName
()
36
{
37
return
'b_sender_abuse'
;
38
}
39
45
public
static
function
getMap
()
46
{
47
return
array
(
48
new
Entity
\
IntegerField
(
'ID'
,
array
(
49
'primary'
=>
true
,
50
'autocomplete'
=>
true
51
)),
52
new
Entity
\
StringField
(
'TEXT'
,
array
(
53
'required'
=>
false
54
)),
55
new
Entity
\
IntegerField
(
'CONTACT_ID'
,
array
(
56
'required'
=>
false
57
)),
58
new
Entity
\
StringField
(
'CONTACT_CODE'
,
array
(
59
'required'
=>
true
60
)),
61
new
Entity
\
IntegerField
(
'CONTACT_TYPE_ID'
,
array
(
62
'required'
=>
true
,
63
)),
64
new
Entity
\
DatetimeField
(
'DATE_INSERT'
,
array
(
65
'required'
=>
true
,
66
'default_value'
=>
new
DateTime
()
67
)),
68
);
69
}
70
77
public
static
function
onAfterAdd
(
Entity
\
Event
$event
)
78
{
79
CounterTable::incrementByCode
(self::COUNTER_CODE_ABUSES);
80
DailyCounterTable::incrementFieldValue
(
'ABUSE_CNT'
);
81
return
new
Entity\EventResult
();
82
}
83
89
public
static
function
getCountOfNew
()
90
{
91
return
CounterTable::getValueByCode
(self::COUNTER_CODE_ABUSES);
92
}
93
99
public
static
function
resetCountOfNew
()
100
{
101
return
CounterTable::resetValueByCode
(self::COUNTER_CODE_ABUSES);
102
}
103
}
Bitrix\Main\Access\Entity\DataManager
Определения
datamanager.php:15
Bitrix\Main\Access\Event\EventResult
Определения
eventresult.php:13
Bitrix\Main\Event
Определения
event.php:5
Bitrix\Main\ORM\Fields\DatetimeField
Определения
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\Type\DateTime
Определения
datetime.php:9
Bitrix\Sender\Internals\Model\AbuseTable
Определения
abuse.php:27
Bitrix\Sender\Internals\Model\AbuseTable\getMap
static getMap()
Определения
abuse.php:45
Bitrix\Sender\Internals\Model\AbuseTable\getCountOfNew
static getCountOfNew()
Определения
abuse.php:89
Bitrix\Sender\Internals\Model\AbuseTable\onAfterAdd
static onAfterAdd(Entity\Event $event)
Определения
abuse.php:77
Bitrix\Sender\Internals\Model\AbuseTable\COUNTER_CODE_ABUSES
const COUNTER_CODE_ABUSES
Определения
abuse.php:28
Bitrix\Sender\Internals\Model\AbuseTable\resetCountOfNew
static resetCountOfNew()
Определения
abuse.php:99
Bitrix\Sender\Internals\Model\AbuseTable\getTableName
static getTableName()
Определения
abuse.php:35
Bitrix\Sender\Internals\Model\CounterTable\incrementByCode
static incrementByCode($code, $increment=1)
Определения
counter.php:93
Bitrix\Sender\Internals\Model\CounterTable\resetValueByCode
static resetValueByCode($code)
Определения
counter.php:123
Bitrix\Sender\Internals\Model\CounterTable\getValueByCode
static getValueByCode($code)
Определения
counter.php:111
Bitrix\Sender\Internals\Model\DailyCounterTable\incrementFieldValue
static incrementFieldValue($fieldName, $increment=1)
Определения
dailycounter.php:104
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\Main\Entity
Определения
ufield.php:9
Bitrix\Sender\Internals\Model
Определения
abuse.php:3
$event
$event
Определения
prolog_after.php:141
bitrix
modules
sender
lib
internals
model
abuse.php
Создано системой
1.14.0