public function defineOptions(array $defaults, array $userOptions = null, $recursive = false)
    {

        $this->options = $defaults;

        if ($userOptions)
            $this->mergeOptions($userOptions, $recursive);
    }
public function defineOptions(array $defaults, array $userOptions = null, $recursive = false)
    {

        $this->options = $defaults;

        if ($userOptions)
            $this->mergeOptions($userOptions, $recursive);
    }
public function defineOptions ( array $ defaults , array $ userOptions = null , $ recursive = false ) { $ this -> options = $ defaults ; if ( $ userOptions ) $ this -> mergeOptions ( $ userOptions , $ recursive ) ; }
Sets the options initially providing default- and optional user options.

@param array      $defaults    the default options
@param array|null $userOptions the optional options passed by the user
@param bool       $recursive
Sets the options initially providing default - and optional user options .