library/QATools/QATools/HtmlElements/Element/Select.php
protected function selectOptions(array $options, $first_only = false)
	{
		foreach ( $options as $index => $option ) {
			$option->select($index > 0);

			if ( $first_only ) {
				return $this;
			}
		}

		return $this;
	}
protected function selectOptions(array $options, $first_only = false)
	{
		foreach ( $options as $index => $option ) {
			$option->select($index > 0);

			if ( $first_only ) {
				return $this;
			}
		}

		return $this;
	}
protected function selectOptions ( array $ options , $ first_only = false ) { foreach ( $ options as $ index => $ option ) { $ option -> select ( $ index > 0 ) ; if ( $ first_only ) { return $ this ; } } return $ this ; }
Select given options.

@param array|SelectOption[] $options    Options to be selected.
@param boolean              $first_only Select only first option.

@return self
Select given options .