public function setReadonly($readonly)
    {
        if ($readonly) {
            $this->setAttribute('readonly', 'readonly');
        } else {
            $this->removeAttribute('readonly');
        }
        return parent::setReadonly($readonly);
    }
public function setReadonly($readonly)
    {
        if ($readonly) {
            $this->setAttribute('readonly', 'readonly');
        } else {
            $this->removeAttribute('readonly');
        }
        return parent::setReadonly($readonly);
    }
public function setReadonly ( $ readonly ) { if ( $ readonly ) { $ this -> setAttribute ( 'readonly' , 'readonly' ) ; } else { $ this -> removeAttribute ( 'readonly' ) ; } return parent :: setReadonly ( $ readonly ) ; }
Set whether the form element is readonly

@param  boolean $readonly
@return Select
Set whether the form element is readonly