Swat/SwatOptionControl.php
public function getOptionsByValue($value)
    {
        $options = array();

        foreach ($this->options as $option) {
            if ($option->value === $value) {
                $options[] = $option;
            }
        }

        return $options;
    }
public function getOptionsByValue($value)
    {
        $options = array();

        foreach ($this->options as $option) {
            if ($option->value === $value) {
                $options[] = $option;
            }
        }

        return $options;
    }
public function getOptionsByValue ( $ value ) { $ options = array ( ) ; foreach ( $ this -> options as $ option ) { if ( $ option -> value === $ value ) { $ options [ ] = $ option ; } } return $ options ; }
Gets options from this option control by their value

@param mixed $value the value of the option or options to get.

@return array an array of SwatOption objects or an empty array if no
options with the given value exist within this option
control.
Gets options from this option control by their value