src/xPDO/Compression/xPDOZip.php
public function getOption($key, $options = null, $default = null) {
        $option = $default;
        if (is_array($key)) {
            if (!is_array($option)) {
                $default= $option;
                $option= array();
            }
            foreach ($key as $k) {
                $option[$k]= $this->getOption($k, $options, $default);
            }
        } elseif (is_string($key) && !empty($key)) {
            if (is_array($options) && !empty($options) && array_key_exists($key, $options)) {
                $option = $options[$key];
            } elseif (is_array($this->_options) && !empty($this->_options) && array_key_exists($key, $this->_options)) {
                $option = $this->_options[$key];
            } else {
                $option = $this->xpdo->getOption($key, null, $default);
            }
        }
        return $option;
    }
public function getOption($key, $options = null, $default = null) {
        $option = $default;
        if (is_array($key)) {
            if (!is_array($option)) {
                $default= $option;
                $option= array();
            }
            foreach ($key as $k) {
                $option[$k]= $this->getOption($k, $options, $default);
            }
        } elseif (is_string($key) && !empty($key)) {
            if (is_array($options) && !empty($options) && array_key_exists($key, $options)) {
                $option = $options[$key];
            } elseif (is_array($this->_options) && !empty($this->_options) && array_key_exists($key, $this->_options)) {
                $option = $this->_options[$key];
            } else {
                $option = $this->xpdo->getOption($key, null, $default);
            }
        }
        return $option;
    }
public function getOption ( $ key , $ options = null , $ default = null ) { $ option = $ default ; if ( is_array ( $ key ) ) { if ( ! is_array ( $ option ) ) { $ default = $ option ; $ option = array ( ) ; } foreach ( $ key as $ k ) { $ option [ $ k ] = $ this -> getOption ( $ k , $ options , $ default ) ; } } elseif ( is_string ( $ key ) && ! empty ( $ key ) ) { if ( is_array ( $ options ) && ! empty ( $ options ) && array_key_exists ( $ key , $ options ) ) { $ option = $ options [ $ key ] ; } elseif ( is_array ( $ this -> _options ) && ! empty ( $ this -> _options ) && array_key_exists ( $ key , $ this -> _options ) ) { $ option = $ this -> _options [ $ key ] ; } else { $ option = $ this -> xpdo -> getOption ( $ key , null , $ default ) ; } } return $ option ; }
Get an option from supplied options, the xPDOZip instance options, or xpdo itself.

@param string $key Unique identifier for the option.
@param array $options A set of explicit options to override those from xPDO or the
xPDOZip instance.
@param mixed $default An optional default value to return if no value is found.
@return mixed The value of the option.
Get an option from supplied options the xPDOZip instance options or xpdo itself .