@@ 393-397 (lines=5) @@ | ||
390 | $sections = static::getERSections(); |
|
391 | $options = array(); |
|
392 | ||
393 | foreach ($sections as $section) { |
|
394 | $driver = $section->get('id'); |
|
395 | $selected = $driver === $this->get('linked_section_id'); |
|
396 | $options[] = array($driver, $selected, General::sanitize($section->get('name'))); |
|
397 | } |
|
398 | ||
399 | return Widget::Select($name, $options); |
|
400 | } |
@@ 1060-1064 (lines=5) @@ | ||
1057 | $options = array(); |
|
1058 | $selectedSections = $this->getSelectedSectionsArray(); |
|
1059 | ||
1060 | foreach ($sections as $section) { |
|
1061 | $driver = $section->get('id'); |
|
1062 | $selected = in_array($driver, $selectedSections); |
|
1063 | $options[] = array($driver, $selected, General::sanitize($section->get('name'))); |
|
1064 | } |
|
1065 | ||
1066 | return Widget::Select($name, $options, array('multiple' => 'multiple')); |
|
1067 | } |