static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_ID_FIELD'),
),
'TIMESTAMP_X' => array(
'data_type' => 'datetime',
'required' => true,
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_TIMESTAMP_X_FIELD'),
),
'MODIFIED_BY' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_MODIFIED_BY_FIELD'),
),
'DATE_CREATE' => array(
'data_type' => 'datetime',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_DATE_CREATE_FIELD'),
),
'CREATED_BY' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_CREATED_BY_FIELD'),
),
'IBLOCK_ID' => array(
'data_type' => 'integer',
'required' => true,
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_IBLOCK_ID_FIELD'),
),
'IBLOCK_SECTION_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_IBLOCK_SECTION_ID_FIELD'),
),
'ACTIVE' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'default_value' => 'Y',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_ACTIVE_FIELD'),
),
'GLOBAL_ACTIVE' => array(
'data_type' => 'boolean',
'values' => array('N', 'Y'),
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_GLOBAL_ACTIVE_FIELD'),
),
'SORT' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_SORT_FIELD'),
),
'NAME' => array(
'data_type' => 'string',
'required' => true,
'validation' => array(__CLASS__, 'validateName'),
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_NAME_FIELD'),
),
'PICTURE' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_PICTURE_FIELD'),
),
'LEFT_MARGIN' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_LEFT_MARGIN_FIELD'),
),
'RIGHT_MARGIN' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_RIGHT_MARGIN_FIELD'),
),
'DEPTH_LEVEL' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_DEPTH_LEVEL_FIELD'),
),
'DESCRIPTION' => array(
'data_type' => 'text',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_DESCRIPTION_FIELD'),
),
'DESCRIPTION_TYPE' => array(
'data_type' => 'enum',
'required' => true,
'values' => array('text', 'html'),
'default_value' => 'text',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_DESCRIPTION_TYPE_FIELD'),
),
'SEARCHABLE_CONTENT' => array(
'data_type' => 'text',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_SEARCHABLE_CONTENT_FIELD'),
),
'CODE' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateCode'),
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_CODE_FIELD'),
),
'XML_ID' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateXmlId'),
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_XML_ID_FIELD'),
),
'TMP_ID' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateTmpId'),
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_TMP_ID_FIELD'),
),
'DETAIL_PICTURE' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_DETAIL_PICTURE_FIELD'),
),
'SOCNET_GROUP_ID' => array(
'data_type' => 'integer',
'title' => Loc::getMessage('IBLOCK_SECTION_ENTITY_SOCNET_GROUP_ID_FIELD'),
),
'IBLOCK' => array(
'data_type' => 'BitrixIblockIblock',
'reference' => array('=this.IBLOCK_ID' => 'ref.ID'),
),
'PARENT_SECTION' => array(
'data_type' => 'BitrixIblockSection',
'reference' => array('=this.IBLOCK_SECTION_ID' => 'ref.ID'),
),
'CREATED_BY_USER' => array(
'data_type' => 'BitrixMainUser',
'reference' => array('=this.CREATED_BY' => 'ref.ID'),
),
'MODIFIED_BY_USER' => array(
'data_type' => 'BitrixMainUser',
'reference' => array('=this.MODIFIED_BY' => 'ref.ID'),
),
);
}