• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/controller/worktimerecord.php
  • Класс: BitrixTimemanControllerWorktimeRecord
  • Вызов: WorktimeRecord::getAction
public function getAction($id)
{
	$validator = (new NumberValidator())->configureIntegerOnly(true)->configureMin(1);
	if (!$validator->validate($id)->isSuccess())
	{
		throw new ArgumentException('id must be integer, greater than 0');
	}
	$record = WorktimeRecordTable::query()
		->addSelect('*')
		->where('ID', $id)
		->fetchObject();
	return $record ? $this->convertRecordFields($record) : [];
}