| @@ 246-260 (lines=15) @@ | ||
| 243 | * |
|
| 244 | * @return array |
|
| 245 | */ |
|
| 246 | protected function normalizeSelect() |
|
| 247 | { |
|
| 248 | if ($this->fieldsMustBeSelected()) { |
|
| 249 | $this->select = array_merge($this->standardFields, $this->select); |
|
| 250 | } |
|
| 251 | ||
| 252 | if ($this->propsMustBeSelected()) { |
|
| 253 | $this->addAllPropsToSelect(); |
|
| 254 | } |
|
| 255 | ||
| 256 | $this->select[] = 'ID'; |
|
| 257 | $this->select[] = 'IBLOCK_ID'; |
|
| 258 | ||
| 259 | return $this->clearSelectArray(); |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| 263 | * Add all iblock property codes to select. |
|
| @@ 176-190 (lines=15) @@ | ||
| 173 | * |
|
| 174 | * @return array |
|
| 175 | */ |
|
| 176 | protected function normalizeSelect() |
|
| 177 | { |
|
| 178 | if ($this->fieldsMustBeSelected()) { |
|
| 179 | $this->select = array_merge($this->standardFields, $this->select); |
|
| 180 | } |
|
| 181 | ||
| 182 | if ($this->propsMustBeSelected()) { |
|
| 183 | $this->select[] = 'IBLOCK_ID'; |
|
| 184 | $this->select[] = 'UF_*'; |
|
| 185 | } |
|
| 186 | ||
| 187 | $this->select[] = 'ID'; |
|
| 188 | ||
| 189 | return $this->clearSelectArray(); |
|
| 190 | } |
|
| 191 | } |
|
| 192 | ||