File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/calendar/lib/ui/countersmanager.php
Back
<?php namespace Bitrix\Calendar\Ui; class CountersManager { private const INVITATION_COUNTER_ID = 'calendar'; private const COMMENTS_COUNTER_ID = 'calendar_comments'; private static $countersValues = []; /** * Get list of counters available for calendar module * Implements static cache for for each user * @param $userId int id of the user for whom counters are requested * @return array list of counters */ public static function getValues(int $userId) { if (empty(self::$countersValues[$userId])) { self::$countersValues[$userId] = [ 'invitation' => \CUserCounter::GetValue($userId, self::INVITATION_COUNTER_ID), // 'comments' => \CUserCounter::GetValue($userId, self::COMMENTS_COUNTER_ID) ]; } return self::$countersValues[$userId]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings