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

