1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
counterdata.php
См. документацию.
1<?php
8namespace Bitrix\Main\Analytics;
9
10use Bitrix\Main\Security\Random;
11use Bitrix\Main\ORM\Data\DataManager;
12use Bitrix\Main\ORM\Fields;
13
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}
static submitData($limit=50)
Определения counterdata.php:67
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804