1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл iblock.php

См. исходные тексты.

Функции

 GetIBlockListWithCnt ($type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=> "asc"), $cnt=0)
 GetIBlockList ($type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=> "asc"), $cnt=0)
 GetIBlockListLang ($lang, $type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("SORT"=> "ASC"), $cnt=0, $bCountActive=false)
 GetIBlock ($ID, $type="")
 GetIBlockLang ($lang, $ID, $type="")
 GetIBlockElementListEx ($type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=>"asc"), $cnt=0, $arFilter=array(), $arSelect=array(), $arGroupBy=false)
 GetIBlockElementCountEx ($type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=>"asc"), $cnt=0, $arFilter=array())
 GetIBlockElementCountExLang ($lang, $type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=>"asc"), $cnt=0, $arFilter=array())
 GetIBlockElementListExLang ($lang, $type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=>"asc"), $cnt=0, $arFilter=array(), $arSelect=array(), $arGroupBy=false)
 _GetIBlockElementListExLang_tmp ($lang, $type, $arTypesInc=array(), $arTypesExc=array(), $arOrder=array("sort"=> "asc"), $cnt=0, $arFilter=array(), $arSelect=array())
 GetIBlockElementCount ($IBLOCK, $SECTION_ID=false, $arOrder=array("sort"=>"asc"), $cnt=0)
 GetIBlockElementList ($IBLOCK, $SECTION_ID=false, $arOrder=array("sort"=>"asc"), $cnt=0, $arFilter=array(), $arSelect=array())
 GetIBlockElement ($ID, $TYPE="")
 GetIBlockSectionListWithCnt ($IBLOCK, $SECT_ID=false, $arOrder=array("left_margin"=>"asc"), $cnt=0, $arFilter=array())
 GetIBlockSectionList ($IBLOCK, $SECT_ID=false, $arOrder=array("left_margin"=>"asc"), $cnt=0, $arFilter=array())
 GetIBlockSection ($ID, $TYPE="")
 GetIBlockSectionPath ($IBLOCK_ID, $SECTION_ID)
 xmlize_rss ($data)
 xml_depth_rss ($values, &$i)
 GetIBlockDropDownListEx ($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter=false, $onChangeType='', $onChangeIBlock='', $strAddType='', $strAddIBlock='')
 GetIBlockDropDownList ($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter=false, $strAddType='', $strAddIBlock='')
 ImportXMLFile ($file_name, $iblock_type="-", $site_id='', $section_action="D", $element_action="D", $use_crc=false, $preview=false, $sync=false, $return_last_error=false, $return_iblock_id=false)

Переменные

 if (!defined("CACHED_b_iblock_type")) define("CACHED_b_iblock_type"

Функции

◆ _GetIBlockElementListExLang_tmp()

_GetIBlockElementListExLang_tmp ( $lang,
$type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort" => "asc"),
$cnt = 0,
$arFilter = array(),
$arSelect = array() )

Makes filter for CIBlockElement::GetList. Internal function

Аргументы
string$langSite identifier blocks linked to.
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which elements will be returned.
int$cntMaximum count of elements to be returned.
array$arFilterFilter to be applied
array$arSelectFields to return (all if empty or not supplied)
Возвращает
array

См. определение в файле iblock.php строка 264

◆ GetIBlock()

GetIBlock ( $ID,
$type = "" )

Returns an array with Information block fields or false if none found. iblock have to be linked to the current site.

Аргументы
int$IDNumeric identifier of the iblock
string$typeType of iblock restrict search to.
Возвращает
array

См. определение в файле iblock.php строка 130

◆ GetIBlockDropDownList()

GetIBlockDropDownList ( $IBLOCK_ID,
$strTypeName,
$strIBlockName,
$arFilter = false,
$strAddType = '',
$strAddIBlock = '' )

Returns html presenting a control of two drop boxes to choose iblock iblock from. All iblock permission check to be at least W

Аргументы
int$IBLOCK_IDSelected iblock
string$strTypeNameName of the iblock type select
string$strIBlockNameName of the iblock name select
bool | array$arFilterAdditional filter for iblock list
string$strAddTypeAdditional html inserted into type select
string$strAddIBlockAdditional html inserted into iblock select
Возвращает
string

См. определение в файле iblock.php строка 737

◆ GetIBlockDropDownListEx()

GetIBlockDropDownListEx ( $IBLOCK_ID,
$strTypeName,
$strIBlockName,
$arFilter = false,
$onChangeType = '',
$onChangeIBlock = '',
$strAddType = '',
$strAddIBlock = '' )

Returns html presenting a control of two drop boxes to choose iblock iblock from.

Аргументы
int$IBLOCK_IDSelected iblock
string$strTypeNameName of the iblock type select
string$strIBlockNameName of the iblock name select
bool | array$arFilterAdditional filter for iblock list
string$onChangeTypeAdditional JS handler for type select
string$onChangeIBlockAdditional JS handler for iblock select
string$strAddTypeAdditional html inserted into type select
string$strAddIBlockAdditional html inserted into iblock select
Возвращает
string

См. определение в файле iblock.php строка 632

◆ GetIBlockElement()

GetIBlockElement ( $ID,
$TYPE = "" )

Returns an array with element fields and PROPERTIES key containing element property values. false when element not active or not exists.

Аргументы
int$IDIdentifier of the elements to be returned.
string$TYPEInformation block type identifier to filter elements with.
Возвращает
array|bool

См. определение в файле iblock.php строка 393

◆ GetIBlockElementCount()

GetIBlockElementCount ( $IBLOCK,
$SECTION_ID = false,
$arOrder = array("sort"=>"asc"),
$cnt = 0 )

Returns number of active elements for given iblock.

Аргументы
int$IBLOCKInformation block ID.
bool$SECTION_IDSection ID.
array$arOrderHas no meaning here.
int$cntNot used.
Возвращает
int

См. определение в файле iblock.php строка 338

◆ GetIBlockElementCountEx()

GetIBlockElementCountEx ( $type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort"=>"asc"),
$cnt = 0,
$arFilter = array() )

Returns count of the currently active elements of specified information blocks. Checks permissions by default.

Аргументы
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which elements will be returned.
int$cntMaximum count of elements to be returned.
array$arFilterFilter to be applied
Возвращает
int

См. определение в файле iblock.php строка 196

◆ GetIBlockElementCountExLang()

GetIBlockElementCountExLang ( $lang,
$type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort"=>"asc"),
$cnt = 0,
$arFilter = array() )

Returns count of the currently active elements of specified information blocks. Checks permissions by default.

Аргументы
string$langSite identifier blocks linked to.
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which elements will be returned.
int$cntMaximum count of elements to be returned.
array$arFilterFilter to be applied
Возвращает
int

См. определение в файле iblock.php строка 215

◆ GetIBlockElementList()

GetIBlockElementList ( $IBLOCK,
$SECTION_ID = false,
$arOrder = array("sort"=>"asc"),
$cnt = 0,
$arFilter = array(),
$arSelect = array() )

Return the list of the elements.

Аргументы
int$IBLOCKInformation block ID.
bool$SECTION_IDSection ID.
array$arOrderHas no meaning here.
int$cnt
array$arFilter
array$arSelect
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 363

◆ GetIBlockElementListEx()

GetIBlockElementListEx ( $type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort"=>"asc"),
$cnt = 0,
$arFilter = array(),
$arSelect = array(),
$arGroupBy = false )

Returns a list of the currently active elements of specified information blocks. Checks permissions by default.

Аргументы
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which elements will be returned.
int$cntMaximum count of elements to be returned.
array$arFilterFilter to be applied
array$arSelectFields to return (all if empty or not supplied)
bool$arGroupByFields to group by (none grouping by default), overwrites $arSelect
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 178

◆ GetIBlockElementListExLang()

GetIBlockElementListExLang ( $lang,
$type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort"=>"asc"),
$cnt = 0,
$arFilter = array(),
$arSelect = array(),
$arGroupBy = false )

Returns a list of the currently active elements of specified information blocks. Checks permissions by default.

Аргументы
string$langSite identifier blocks linked to.
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which elements will be returned.
int$cntMaximum count of elements to be returned.
array$arFilterFilter to be applied
array$arSelectFields to return (all if empty or not supplied)
bool$arGroupByFields to group by (none grouping by default), overwrites $arSelect
Возвращает
CIBlockResult|int

См. определение в файле iblock.php строка 236

◆ GetIBlockLang()

GetIBlockLang ( $lang,
$ID,
$type = "" )

Returns an array with Information block fields or false if none found. iblock have to be linked to the current site.

Аргументы
string$langSite identifier block linked to.
int$IDNumeric identifier of the iblock
string$typeType of iblock restrict search to.
Возвращает
array

См. определение в файле iblock.php строка 144

◆ GetIBlockList()

GetIBlockList ( $type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort" => "asc"),
$cnt = 0 )

Returns list of the information blocks of specified $type linked to the current site

Аргументы
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which blocks will be returned.
int$cntMaximum count of iblocks to be returned.
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 42

◆ GetIBlockListLang()

GetIBlockListLang ( $lang,
$type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("SORT" => "ASC"),
$cnt = 0,
$bCountActive = false )

Returns list of the information blocks of specified $type linked to the specified site

Аргументы
string$langSite identifier blocks linked to.
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which blocks will be returned.
int$cntMaximum count of iblocks to be returned.
bool$bCountActive
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 60

◆ GetIBlockListWithCnt()

GetIBlockListWithCnt ( $type,
$arTypesInc = array(),
$arTypesExc = array(),
$arOrder = array("sort" => "asc"),
$cnt = 0 )

Returns list of the information blocks of specified $type linked to the current site including ELEMENT_CNT column which presents currently active elements.

Аргументы
string$typeInformation blocks type to get blocks from.
array | string | int$arTypesIncInformation block ID or CODE or array of IDs or CODEs to get.
array | string | int$arTypesExcInformation block ID or CODE or array of IDs or CODEs to exclude.
array$arOrderOrder in which blocks will be returned.
int$cntMaximum count of iblocks to be returned.
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 26

◆ GetIBlockSection()

GetIBlockSection ( $ID,
$TYPE = "" )

Returns an array with section fields if found. Else returns false.

Аргументы
int$ID
string$TYPE
Возвращает
array|bool

См. определение в файле iblock.php строка 490

◆ GetIBlockSectionList()

GetIBlockSectionList ( $IBLOCK,
$SECT_ID = false,
$arOrder = array("left_margin"=>"asc"),
$cnt = 0,
$arFilter = array() )

Returns list of sections of specified iblock.

Аргументы
int$IBLOCK
bool | int$SECT_ID
array$arOrder
int$cnt
array$arFilter
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 462

◆ GetIBlockSectionListWithCnt()

GetIBlockSectionListWithCnt ( $IBLOCK,
$SECT_ID = false,
$arOrder = array("left_margin"=>"asc"),
$cnt = 0,
$arFilter = array() )

Returns list of sections of specified iblock including ELEMENT_CNT column.

Аргументы
int$IBLOCK
bool | int$SECT_ID
array$arOrder
int$cnt
array$arFilter
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 431

◆ GetIBlockSectionPath()

GetIBlockSectionPath ( $IBLOCK_ID,
$SECTION_ID )

Returns path to the section.

Аргументы
int$IBLOCK_ID
int$SECTION_ID
Возвращает
CIBlockResult

См. определение в файле iblock.php строка 520

◆ ImportXMLFile()

ImportXMLFile ( $file_name,
$iblock_type = "-",
$site_id = '',
$section_action = "D",
$element_action = "D",
$use_crc = false,
$preview = false,
$sync = false,
$return_last_error = false,
$return_iblock_id = false )

Imports an xml file into iblock. File may be an .tar.gz archive.

Аргументы
string$file_nameName of the file to import
string$iblock_typeIBlock type ID to import iblock to
string | array$site_idID of the site or array of IDs to bind iblock to
string$section_actionWhat to do with sections missed in the file. D - delete or A - deactivate.
string$element_actionWhat to do with elements missed in the file. D - delete or A - deactivate.
bool$use_crcWhenever to use CRC check for optimizi=ation or force an update
bool$previewIf true when use iblock settings to generate preview pictures from detail.
bool$syncIf true uses alternative set of tables in order not to interfere with other import processes
bool$return_last_errorIf true will return string with error description in case of failure
bool$return_iblock_idIf true will return iblock identifier (int) in case of success
Возвращает
bool|int|string

@global CMain $APPLICATION

См. определение в файле iblock.php строка 760

◆ xml_depth_rss()

xml_depth_rss ( $values,
& $i )

Helper function for xmlize_rss

Аргументы
array$values
int$i
Возвращает
array

См. определение в файле iblock.php строка 561

◆ xmlize_rss()

xmlize_rss ( $data)

Converts xml string into recursive array

Аргументы
string$data
Возвращает
array

См. определение в файле iblock.php строка 531

Переменные

◆ if

if(!defined("CACHED_b_iblock_property_enum_bucket_size")) define("CACHED_b_iblock_property_enum_bucket_size" ( ! defined"CACHED_b_iblock_type")

См. определение в файле iblock.php строка 5