register_stream_wrapper ( $protocol )

Loads and registers the S3StreamWrapper class as a stream wrapper.

Access

public

Parameters

Parameter

Type

Required

Description

$protocol

string

Optional

The name of the protocol to register.

Returns

Type

Description

boolean

Whether or not the registration succeeded.

Source

Method defined in services/s3.class.php | Toggle source view (7 lines) | View on GitHub

public function register_stream_wrapper($protocol = 's3')
{
    require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'extensions'
        . DIRECTORY_SEPARATOR . 's3streamwrapper.class.php';

    return S3StreamWrapper::register($this, $protocol);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback