Skip to content

Instantly share code, notes, and snippets.

@anoriar
Created October 10, 2018 19:55
Show Gist options
  • Save anoriar/2b6477571eedc526993a8788a2a916a8 to your computer and use it in GitHub Desktop.
Save anoriar/2b6477571eedc526993a8788a2a916a8 to your computer and use it in GitHub Desktop.
use elementTable trait with indexArray
use Aero\Main\Traits\Elements;
class Main{
use Elements;
private function getDiamondsCodes(){
$arIbData = self::getElements(\Bitrix\Iblock\ElementTable::class,
[
'select' => ['ID', 'IBLOCK_ID', 'CODE', 'NAME'],
'filter' => ["ACTIVE" => "Y",],
'indexArray' => "ID"
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment