/**
  * Adds objects as options in a dropdown list
  *
  * @param XhtmlSelect $select
  * @param object[] $a_objects_to_add
  * @param int[] $a_objects_to_disable
  * @return XhtmlSelect
  */
 protected function AddOptions(XhtmlSelect $select, $a_objects_to_add, $a_objects_to_disable)
 {
     $select->AddSeasons($a_objects_to_add);
     # Should now have options sorted and grouped by SeasonSelect,
     # but the values will be wrong for this control.
     $a_controls = $select->GetControls();
     foreach ($a_controls as $control) {
         $child_controls = $control->GetControls();
         $control->AddAttribute('value', $control->GetAttribute('value') . RelatedItemEditor::VALUE_DIVIDER . $child_controls[0]);
     }
     return $select;
 }