Created
October 10, 2018 19:55
-
-
Save anoriar/2b6477571eedc526993a8788a2a916a8 to your computer and use it in GitHub Desktop.
use elementTable trait with indexArray
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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