• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/entity_user.php
  • Класс: CUserEntity
  • Вызов: CUserEntity::initialize
public function initialize()
{
	$this->className = __CLASS__;
	$this->filePath = __FILE__;

	$this->uf_id = 'USER';

	global $DB;

	$this->fieldsMap = array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true
		),
		'LOGIN' => array(
			'data_type' => 'string'
		),
		'ACTIVE' => array(
			'data_type' => 'boolean'
		),
		'DATE_REGISTER' => array(
			'data_type' => 'datetime'
		),
		'NAME' => array(
			'data_type' => 'string'
		),
		'SECOND_NAME' => array(
			'data_type' => 'string'
		),
		'LAST_NAME' => array(
			'data_type' => 'string'
		),
		'WORK_POSITION' => array(
			'data_type' => 'string'
		),
		'SHORT_NAME' => array(
			'data_type' => 'string',
			'expression' => array(
				$DB->Concat("%s","' '", "UPPER(".$DB->Substr("%s", 1, 1).")", "'.'"),
				'LAST_NAME', 'NAME'
			)
		),
		'UTS_OBJECT' => array(
			'data_type' => 'UtsUser',
			'reference' => array('=this.ID' => 'ref.VALUE_ID')
		)
	);
}