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

Что будем искать? Например,Продвижение