protected function getContextOptions($all = false)
    {
        if ($this->contextOptions === null) {
            $this->contextOptions   = stream_context_get_options($this->context);
        }

        if (!$all && array_key_exists(self::$protocol, $this->contextOptions)) {
            return $this->contextOptions[self::$protocol];
        } else if ($all) {
            return $this->contextOptions;
        } else {
            return array();
        }
    }
protected function getContextOptions($all = false)
    {
        if ($this->contextOptions === null) {
            $this->contextOptions   = stream_context_get_options($this->context);
        }

        if (!$all && array_key_exists(self::$protocol, $this->contextOptions)) {
            return $this->contextOptions[self::$protocol];
        } else if ($all) {
            return $this->contextOptions;
        } else {
            return array();
        }
    }
protected function getContextOptions ( $ all = false ) { if ( $ this -> contextOptions === null ) { $ this -> contextOptions = stream_context_get_options ( $ this -> context ) ; } if ( ! $ all && array_key_exists ( self :: $ protocol , $ this -> contextOptions ) ) { return $ this -> contextOptions [ self :: $ protocol ] ; } else if ( $ all ) { return $ this -> contextOptions ; } else { return array ( ) ; } }
Parses the passed stream context and returns the context options
relevant for this stream wrapper

@param   boolean $all    Return all options instead of just the relevant options
@return  array           The context options
Parses the passed stream context and returns the context options relevant for this stream wrapper