1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
counterdata.php
См. документацию.
1
<?php
8
namespace
Bitrix\Main\Analytics;
9
10
use Bitrix\Main\Security\Random;
11
use Bitrix\Main\ORM\Data\DataManager;
12
use Bitrix\Main\ORM\Fields;
13
30
class
CounterDataTable
extends
DataManager
31
{
32
public
static
function
getTableName
()
33
{
34
return
'b_counter_data'
;
35
}
36
37
public
static
function
getMap
()
38
{
39
return
array
(
40
new
Fields
\
StringField
(
'ID'
,
array
(
41
'primary'
=>
true
,
42
'default_value'
=>
array
(__CLASS__ ,
'getUniqueEventId'
)
43
)),
44
new
Fields
\
StringField
(
'TYPE'
,
array
(
45
'required'
=>
true
46
)),
47
new
Fields
\
TextField
(
'DATA'
,
array
(
48
'serialized'
=>
true
49
))
50
);
51
}
52
53
public
static
function
getUniqueEventId
()
54
{
55
[$usec, $sec] = explode(
" "
, microtime());
56
57
$uniqid = mb_substr(base_convert($sec.mb_substr($usec, 2), 10, 36), 0, 16);
58
59
if
(mb_strlen($uniqid) < 16)
60
{
61
$uniqid .= Random::getString(16 - mb_strlen($uniqid));
62
}
63
64
return
$uniqid;
65
}
66
67
public
static
function
submitData
($limit = 50)
68
{
69
return
''
;
70
}
71
}
Bitrix\Main\Analytics\CounterDataTable
Определения
counterdata.php:31
Bitrix\Main\Analytics\CounterDataTable\submitData
static submitData($limit=50)
Определения
counterdata.php:67
Bitrix\Main\Analytics\CounterDataTable\getMap
static getMap()
Определения
counterdata.php:37
Bitrix\Main\Analytics\CounterDataTable\getUniqueEventId
static getUniqueEventId()
Определения
counterdata.php:53
Bitrix\Main\Analytics\CounterDataTable\getTableName
static getTableName()
Определения
counterdata.php:32
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Определения
textfield.php:20
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\ORM\Fields
Определения
arrayfield.php:9
bitrix
modules
main
lib
analytics
counterdata.php
Создано системой
1.14.0