• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/bizprocdocument.php
  • Класс: BizprocDocument
  • Вызов: BizprocDocument::getSystemIblockFields
static function getSystemIblockFields()
{
	$result = array(
		"ID" => array(
			"Name" => GetMessage("IBD_FIELD_ID"),
			"Type" => "int",
			"Filterable" => true,
			"Editable" => false,
			"Required" => false,
		),
		"TIMESTAMP_X" => array(
			"Name" => GetMessage("IBD_FIELD_TIMESTAMP_X"),
			"Type" => "datetime",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"MODIFIED_BY" => array(
			"Name" => GetMessage("IBD_FIELD_MODYFIED"),
			"Type" => "user",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"MODIFIED_BY_PRINTABLE" => array(
			"Name" => GetMessage("IBD_FIELD_MODIFIED_BY_USER_PRINTABLE"),
			"Type" => "string",
			"Filterable" => false,
			"Editable" => false,
			"Required" => false,
		),
		"DATE_CREATE" => array(
			"Name" => GetMessage("IBD_FIELD_DATE_CREATE"),
			"Type" => "datetime",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"CREATED_BY" => array(
			"Name" => GetMessage("IBD_FIELD_CREATED"),
			"Type" => "user",
			"Filterable" => true,
			"Editable" => false,
			"Required" => false,
		),
		"CREATED_BY_PRINTABLE" => array(
			"Name" => GetMessage("IBD_FIELD_CREATED_BY_USER_PRINTABLE"),
			"Type" => "string",
			"Filterable" => false,
			"Editable" => false,
			"Required" => false,
		),
		"IBLOCK_ID" => array(
			"Name" => GetMessage("IBD_FIELD_IBLOCK_ID"),
			"Type" => "int",
			"Filterable" => true,
			"Editable" => true,
			"Required" => true,
		),
		"ACTIVE" => array(
			"Name" => GetMessage("IBD_FIELD_ACTIVE"),
			"Type" => "bool",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"BP_PUBLISHED" => array(
			"Name" => GetMessage("IBD_FIELD_BP_PUBLISHED"),
			"Type" => "bool",
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"ACTIVE_FROM" => array(
			"Name" => GetMessage("IBD_FIELD_DATE_ACTIVE_FROM"),
			"Type" => "datetime",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"ACTIVE_TO" => array(
			"Name" => GetMessage("IBD_FIELD_DATE_ACTIVE_TO"),
			"Type" => "datetime",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"SORT" => array(
			"Name" => GetMessage("IBD_FIELD_SORT"),
			"Type" => "int",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"NAME" => array(
			"Name" => GetMessage("IBD_FIELD_NAME"),
			"Type" => "string",
			"Filterable" => true,
			"Editable" => true,
			"Required" => true,
		),
		"PREVIEW_PICTURE" => array(
			"Name" => GetMessage("IBD_FIELD_PREVIEW_PICTURE"),
			"Type" => "file",
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"PREVIEW_TEXT" => array(
			"Name" => GetMessage("IBD_FIELD_PREVIEW_TEXT"),
			"Type" => "text",
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"PREVIEW_TEXT_TYPE" => array(
			"Name" => GetMessage("IBD_FIELD_PREVIEW_TEXT_TYPE"),
			"Type" => "select",
			"Options" => array(
				"text" => GetMessage("IBD_DESC_TYPE_TEXT"),
				"html" => "Html",
			),
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"DETAIL_PICTURE" => array(
			"Name" => GetMessage("IBD_FIELD_DETAIL_PICTURE"),
			"Type" => "file",
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"DETAIL_TEXT" => array(
			"Name" => GetMessage("IBD_FIELD_DETAIL_TEXT"),
			"Type" => "text",
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"DETAIL_TEXT_TYPE" => array(
			"Name" => GetMessage("IBD_FIELD_DETAIL_TEXT_TYPE"),
			"Type" => "select",
			"Options" => array(
				"text" => GetMessage("IBD_DESC_TYPE_TEXT"),
				"html" => "Html",
			),
			"Filterable" => false,
			"Editable" => true,
			"Required" => false,
		),
		"CODE" => array(
			"Name" => GetMessage("IBD_FIELD_CODE"),
			"Type" => "string",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
		"XML_ID" => array(
			"Name" => GetMessage("IBD_FIELD_XML_ID"),
			"Type" => "string",
			"Filterable" => true,
			"Editable" => true,
			"Required" => false,
		),
	);

	$keys = array_keys($result);
	foreach ($keys as $key)
	{
		$result[$key]["Multiple"] = false;
		$result[$key]["active"] = false;
	}

	return $result;
}