Skip to content

Instantly share code, notes, and snippets.

@CaWeb007
Created May 4, 2017 03:14
Show Gist options
  • Save CaWeb007/d923c9cc1a95214bce20dbe05ea1312b to your computer and use it in GitHub Desktop.
Save CaWeb007/d923c9cc1a95214bce20dbe05ea1312b to your computer and use it in GitHub Desktop.
Сложная логика GetList на примере UserTable
$arFilter = Array(
Array(
"LOGIC"=>"OR",
Array(
"EMAIL" => "spcelwl007@gmail.com"
),
Array(
"UF_INN" => 38013060230
)
)
);
$res = Bitrix\Main\UserTable::getList(Array(
"select"=>Array("EMAIL","UF_INN"),
"filter"=>$arFilter,
));
while ($arRes = $res->fetch()) {
$arr[] = $arRes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment