| @@ 265-274 (lines=10) @@ | ||
| 262 | ]; |
|
| 263 | ||
| 264 | $result = $query->execute(); |
|
| 265 | while($row = $result->fetch()) { |
|
| 266 | if(!isset($sections[$row['priority']])) { |
|
| 267 | $sections[$row['priority']] = []; |
|
| 268 | } |
|
| 269 | try { |
|
| 270 | $sections[$row['priority']][] = $this->query($row['class']); |
|
| 271 | } catch (QueryException $e) { |
|
| 272 | // skip |
|
| 273 | } |
|
| 274 | } |
|
| 275 | $result->closeCursor(); |
|
| 276 | ||
| 277 | ksort($sections); |
|
| @@ 323-332 (lines=10) @@ | ||
| 320 | ->setParameter('section', $section); |
|
| 321 | ||
| 322 | $result = $query->execute(); |
|
| 323 | while($row = $result->fetch()) { |
|
| 324 | if(!isset($settings[$row['priority']])) { |
|
| 325 | $settings[$row['priority']] = []; |
|
| 326 | } |
|
| 327 | try { |
|
| 328 | $settings[$row['priority']][] = $this->query($row['class']); |
|
| 329 | } catch (QueryException $e) { |
|
| 330 | // skip |
|
| 331 | } |
|
| 332 | } |
|
| 333 | $result->closeCursor(); |
|
| 334 | ||
| 335 | ksort($settings); |
|