method
public
UserRepository::getUserTimeZoneOffset()
Сигнатура
public getUserTimeZoneOffset(int $userId[, bool $force = false ]) : int
Параметры
$userId
int
$force
bool
= false
Возвращаемое значение
int
Как применяется в UserRepository
UserRepository::getUserTimeZoneOffset() — метод класса \Bitrix\Tasks\Internals\Notification\UserRepository модуля «Задачи».
Метод объекта: сначала нужен экземпляр UserRepository.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\UserRepository;
Loader::includeModule('tasks');
/** @var UserRepository $object */
$userId = 1;
$result = $object->getUserTimeZoneOffset($userId);
// $result: intДругие методы UserRepository
getParticipants()Должен возвращать массив идентификаторов пользователей, участвующих в переданной задачеgetRecepients()Должен возвращать массив объектов Internals/Notification/User, участвующих в переданной задачеgetSender()getUserById()getUsersByIds()
getUserTimeZoneOffset() есть и у других классов модуля «Задачи»: UserRepositoryInterface.
Исходный файл: source/tasks/lib/internals/notification/userrepository.php:192

