Swat/SwatFlydown.php
public function process()
    {
        parent::process();

        if (!$this->processValue()) {
            return;
        }

        if ($this->required && $this->isSensitive()) {
            // When values are not serialized, an empty string is treated as
            // null. As a result, you should not use a null value and an empty
            // string value in the same flydown except when using serialized
            // values.
            if (
                ($this->serialize_values && $this->value === null) ||
                (!$this->serialize_values && $this->value == '')
            ) {
                $this->addMessage($this->getValidationMessage('required'));
            }
        }
    }
public function process()
    {
        parent::process();

        if (!$this->processValue()) {
            return;
        }

        if ($this->required && $this->isSensitive()) {
            // When values are not serialized, an empty string is treated as
            // null. As a result, you should not use a null value and an empty
            // string value in the same flydown except when using serialized
            // values.
            if (
                ($this->serialize_values && $this->value === null) ||
                (!$this->serialize_values && $this->value == '')
            ) {
                $this->addMessage($this->getValidationMessage('required'));
            }
        }
    }
public function process ( ) { parent :: process ( ) ; if ( ! $ this -> processValue ( ) ) { return ; } if ( $ this -> required && $ this -> isSensitive ( ) ) { // When values are not serialized, an empty string is treated as // null. As a result, you should not use a null value and an empty // string value in the same flydown except when using serialized // values. if ( ( $ this -> serialize_values && $ this -> value === null ) || ( ! $ this -> serialize_values && $ this -> value == '' ) ) { $ this -> addMessage ( $ this -> getValidationMessage ( 'required' ) ) ; } } }
Figures out what option was selected

Processes this widget and figures out what select element from this
flydown was selected. Any validation errors cause an error message to
be attached to this widget in this method.
Figures out what option was selected