Commit 6022cd5 1 parent ae79045 commit 6022cd5 Copy full SHA for 6022cd5
File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 5
5
" \\ $arElements = \\\\ Bitrix\\\\ Iblock\\\\ ElementTable::getList(array(" ,
6
6
" \t\" select\" => array(\" NAME\" )," ,
7
7
" \t\" filter\" => array(\" ID\" => \" ${1:id}\" )" ,
8
- " ))->fetch() ;" ,
8
+ " ));" ,
9
9
" " ,
10
- " foreach( \\ $arElements as \\ $arElement ) {" ,
10
+ " while ($arElement = $arElements->fetch() ) {" ,
11
11
" \t var_export(\\ $arElement);" ,
12
12
" }"
13
13
],
Original file line number Diff line number Diff line change 5
5
" \\ $arGroups = \\\\ Bitrix\\\\ Main\\\\ GroupTable::getList(array(" ,
6
6
" \t\" select\" => array(\" NAME\" )," ,
7
7
" \t\" filter\" => array(\" ID\" => \" ${1:id}\" )" ,
8
- " ))->fetch() ;" ,
8
+ " ));" ,
9
9
" " ,
10
- " foreach( \\ $arGroups as \\ $arGroup ) {" ,
10
+ " while ($arGroup = $arGroups->fetch() ) {" ,
11
11
" \t var_export(\\ $arGroup);" ,
12
12
" }"
13
13
],
Original file line number Diff line number Diff line change 5
5
" \\ $arSections = \\\\ Bitrix\\\\ Iblock\\\\ SectionTable::getList(array(" ,
6
6
" \t\" select\" => array(\" NAME\" )," ,
7
7
" \t\" filter\" => array(\" ID\" => \" ${1:id}\" )" ,
8
- " ))->fetch() ;" ,
8
+ " ));" ,
9
9
" " ,
10
- " foreach( \\ $arSections as \\ $arSection ) {" ,
10
+ " while ($arSection = $arSections->fetch() ) {" ,
11
11
" \t var_export(\\ $arSection);" ,
12
12
" }"
13
13
],
Original file line number Diff line number Diff line change 5
5
" \\ $arUsers = \\\\ Bitrix\\\\ Main\\\\ UserTable::getList(array(" ,
6
6
" \t\" select\" => array(\" LOGIN\" )," ,
7
7
" \t\" filter\" => array(\" ID\" => \" ${1:id}\" )" ,
8
- " ))->fetch() ;" ,
8
+ " ));" ,
9
9
" " ,
10
- " foreach( \\ $arUsers as \\ $arUser ) {" ,
10
+ " while ($arUser = $arUsers->fetch() ) {" ,
11
11
" \t var_export(\\ $arUser);" ,
12
12
" }"
13
13
],
You can’t perform that action at this time.
0 commit comments