1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
fusercache.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Discount\RuntimeCache;
4
5
6use Bitrix\Main\Event;
7use Bitrix\Main\EventManager;
8
9final class FuserCache
10{
12 private $fuserIds = array();
14 private static $instance;
15
16 private function __construct()
17 {}
18
19 private function __clone()
20 {}
21
26 public static function getInstance()
27 {
28 if (!isset(self::$instance))
29 {
30 self::$instance = new static;
31 }
32
33 return self::$instance;
34 }
35
41 public function getUserIdById($fuserId)
42 {
43 if(!isset($this->fuserIds[$fuserId]))
44 {
45 $this->fuserIds[$fuserId] = \Bitrix\Sale\Fuser::getUserIdById($fuserId);
46 }
47
48 return $this->fuserIds[$fuserId];
49 }
50
55 public function clean()
56 {
57 $this->fuserIds = array();
58 }
59}
static getUserIdById($fuserId)
Определения fuser.php:177
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804