namespace Custom;
use Bitrix\Iblock;
class Notify
{
public static function Add ( $array ):array
{
$answer = array();
$Result = \CIBlockElement::getList(
array(),
array( 'IBLOCK_ID' => 21 ),
false,
array( 'ID' )
);
while ( $item = $Result -> fetch() )
{
$answer[] = $item;
}
return $answer;
}
}