| @@ 261-275 (lines=15) @@ | ||
| 258 | * |
|
| 259 | * @return array |
|
| 260 | */ |
|
| 261 | protected function normalizeSelect() |
|
| 262 | { |
|
| 263 | if ($this->fieldsMustBeSelected()) { |
|
| 264 | $this->select = array_merge($this->standardFields, $this->select); |
|
| 265 | } |
|
| 266 | ||
| 267 | if ($this->propsMustBeSelected()) { |
|
| 268 | $this->addAllPropsToSelect(); |
|
| 269 | } |
|
| 270 | ||
| 271 | $this->select[] = 'ID'; |
|
| 272 | $this->select[] = 'IBLOCK_ID'; |
|
| 273 | ||
| 274 | return $this->clearSelectArray(); |
|
| 275 | } |
|
| 276 | ||
| 277 | /** |
|
| 278 | * Add all iblock property codes to select. |
|
| @@ 193-207 (lines=15) @@ | ||
| 190 | * |
|
| 191 | * @return array |
|
| 192 | */ |
|
| 193 | protected function normalizeSelect() |
|
| 194 | { |
|
| 195 | if ($this->fieldsMustBeSelected()) { |
|
| 196 | $this->select = array_merge($this->standardFields, $this->select); |
|
| 197 | } |
|
| 198 | ||
| 199 | if ($this->propsMustBeSelected()) { |
|
| 200 | $this->select[] = 'IBLOCK_ID'; |
|
| 201 | $this->select[] = 'UF_*'; |
|
| 202 | } |
|
| 203 | ||
| 204 | $this->select[] = 'ID'; |
|
| 205 | ||
| 206 | return $this->clearSelectArray(); |
|
| 207 | } |
|
| 208 | } |
|
| 209 | ||