• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/agent/worktimeagentmanager.php
  • Класс: BitrixTimemanServiceAgentWorktimeAgentManager
  • Вызов: WorktimeAgentManager::getAgentDataClass
private function getAgentDataClass()
{
	static $dataClass = null;
	if ($dataClass === null)
	{
		$entity = BitrixMainORMEntity::compileEntity(
			'TimemanCompiledAgentTable',
			[
				(new FieldsIntegerField('ID'))
					->configurePrimary(true)
					->configureAutocomplete(true)
				,
				(new FieldsStringField('MODULE_ID'))
				,
				(new FieldsStringField('NAME'))
				,
			],
			['table_name' => 'b_agent']
		);
		$dataClass = $entity->getDataClass();
	}
	return $dataClass;
}