src/xPDO/Om/xPDOObject.php
public function getOption($key, $options = null, $default = null) {
        if (is_array($options) && array_key_exists($key, $options)) {
            $value= $options[$key];
        } elseif (array_key_exists($key, $this->_options)) {
            $value= $this->_options[$key];
        } else {
            $value= $this->xpdo->getOption($key, null, $default);
        }
        return $value;
    }
public function getOption($key, $options = null, $default = null) {
        if (is_array($options) && array_key_exists($key, $options)) {
            $value= $options[$key];
        } elseif (array_key_exists($key, $this->_options)) {
            $value= $this->_options[$key];
        } else {
            $value= $this->xpdo->getOption($key, null, $default);
        }
        return $value;
    }
public function getOption ( $ key , $ options = null , $ default = null ) { if ( is_array ( $ options ) && array_key_exists ( $ key , $ options ) ) { $ value = $ options [ $ key ] ; } elseif ( array_key_exists ( $ key , $ this -> _options ) ) { $ value = $ this -> _options [ $ key ] ; } else { $ value = $ this -> xpdo -> getOption ( $ key , null , $ default ) ; } return $ value ; }
Get an option value for this instance.

@param string $key The option key to retrieve a value for.
@param array|null $options An optional array to search for a value in first.
@param mixed $default A default value to return if no value is found; null is the default.
@return mixed The value of the option or the provided default if it is not set.
Get an option value for this instance .