src/core/framework/core/3rdparty/ezcomponents/Translation/src/backends/ts_backend.php
public function setOptions( $options ) 
    {
        if ( is_array( $options ) ) 
        {
            $this->options->merge( $options );
        } 
        else if ( $options instanceof ezcTranslationTsBackendOptions ) 
        {
            $this->options = $options;
        }
        else
        {
            throw new ezcBaseValueException( "options", $options, "instance of ezcTranslationTsBackendOptions" );
        }
    }
public function setOptions( $options ) 
    {
        if ( is_array( $options ) ) 
        {
            $this->options->merge( $options );
        } 
        else if ( $options instanceof ezcTranslationTsBackendOptions ) 
        {
            $this->options = $options;
        }
        else
        {
            throw new ezcBaseValueException( "options", $options, "instance of ezcTranslationTsBackendOptions" );
        }
    }
public function setOptions ( $ options ) { if ( is_array ( $ options ) ) { $ this -> options -> merge ( $ options ) ; } else if ( $ options instanceof ezcTranslationTsBackendOptions ) { $ this -> options = $ options ; } else { throw new ezcBaseValueException ( "options" , $ options , "instance of ezcTranslationTsBackendOptions" ) ; } }
Set new options.
This method allows you to change the options of the translation backend.

@param ezcTranslationTsBackendOptions $options The options to set.

@throws ezcBaseSettingNotFoundException
If you tried to set a non-existent option value.
@throws ezcBaseSettingValueException
If the value is not valid for the desired option.
@throws ezcBaseValueException
If you submit neither an array nor an instance of
ezcTranslationTsBackendOptions.
Set new options . This method allows you to change the options of the translation backend .