важные getList например
Он описан и ОЧЕНЬ подробно
Вы пользуетесь IDE?
IDE, я не могу качать весь битрикс что IDE его проинспектировала, только папка local
Вот где для метода ElementTable, метод getList
<?
\Bitrix\Main\Loader::includeModule('iblock');
$dbItem = \Bitrix\Iblock\ElementTable::getList(array(
'select' => array('ID', 'IBLOCK_ID', 'NAME'),
'filter' => array('IBLOCK_ID' => 3),
'order' => array('TIMESTAMP_X' => 'ASC')
));
while ($arItem = $dbItem->fetch()) {
array('PROPERTY' => 'DATE')); все значения
$dbProperty = \CIBlockElement::getProperty($arItem['IBLOCK_ID'], $arItem['ID'], array("sort", "asc"), array('CODE' => 'DATE'));
while ($arProperty = $dbProperty->GetNext()) {
if ($arProperty['VALUE']) {
$arItems[$arItem['ID']]['DATE'] = $arProperty['VALUE'];
$arItems[$arItem['ID']]['IBLOCK_ID'] = $arProperty['IBLOCK_ID'];
}
}
}
foreach($arItems as $keyId => $sku) {
$dbPropertyLink = \CIBlockElement::getProperty($sku['IBLOCK_ID'], $keyId, array("sort", "asc"), array('CODE' => 'CML2_LINK'));
while ($arPropertyLink = $dbPropertyLink->GetNext()) {
if ($arPropertyLink['VALUE']) {
$arItems[$keyId]['ID_LINK'] = $arPropertyLink['VALUE'];
}
}
}
/* прин результата
Array
(
[288] => Array
(
[DATE] => 10.09.2020
[IBLOCK_ID] => 3
[ID_LINK] => 36
)
[289] => Array
(
[DATE] => 11.09.2020
[IBLOCK_ID] => 3
[ID_LINK] => 36
)
*/
?>
Array
(
[IBLOCK_ID] => 53
[ACTIVE_FROM] =>
[ACTIVE_TO] =>
[SORT] => 500
[NAME] => Название элемента
[CODE] =>
[TAGS] =>
[PREVIEW_TEXT] =>
[PREVIEW_TEXT_TYPE] => text
[DETAIL_TEXT] =>
[DETAIL_TEXT_TYPE] => text
[TMP_ID] => 0
[PROPERTY_VALUES] => Array
(
[207] => Array
(
[499824] => Array
(
[VALUE] => 725
)
[499825] => Array
(
[VALUE] => 33295
)
[499826] => Array
(
[VALUE] => 11874
)
[499844] => Array
(
[VALUE] => 747
)
[n1] => Array
(
[VALUE] =>
)
)
[454] => Array
(
[n0] => Array
(
[VALUE] =>
)
)
[197] => Array
(
[0] => Array
(
[VALUE] => 173
)
)
[211] => Array
(
[n0] => Array
(
[VALUE] =>
)
)
[221] => Array
(
[n0] => Array
(
[VALUE] =>
)
)
[245] => Array
(
[499827] => Array
(
[VALUE] => 86
)
)
[233] => Array
(
[n0] => Array
(
[VALUE] =>
)
)
[191] => Array
(
[0] => Array
(
[VALUE] =>
)
)
[251] => Array
(
[n0] => Array
(
[VALUE] =>
)
)
[253] => Array
(
[n0] => Array
(
[VALUE] => Array
(
[TEXT] =>
[TYPE] => html
)
)
)
includeModule('iblock') не устаревшее Api
А разве CIBlockElement не устаревшее Api