Services_Amazon_S3
[ class tree: Services_Amazon_S3 ] [ index: Services_Amazon_S3 ] [ all elements ]

Class: Services_Amazon_S3_Resource

Source Location: /Services_Amazon_S3-0.4.0/Services/Amazon/S3/Resource.php

Class Overview


Services_Amazon_S3_Resource is the base class for Services_Amazon_S3_Resource_Bucket and Services_Amazon_S3_Resource_Object.


Author(s):

Version:

  • Release: @release-version@

Copyright:

  • 2008 Peytz & Co. A/S

Variables

Methods


Child classes:

Services_Amazon_S3_Resource_Bucket
Services_Amazon_S3_Resource_Bucket represents an Amazon S3 bucket, i.e. a container for objects.
Services_Amazon_S3_Resource_Object
Services_Amazon_S3_Resource_Object represents an Amazon S3 object, i.e. a file stored in the S3 storage service.

Inherited Variables

Inherited Methods


Class Details

[line 67]
Services_Amazon_S3_Resource is the base class for Services_Amazon_S3_Resource_Bucket and Services_Amazon_S3_Resource_Object.


[ Top ]


Class Variables

$acl =

[line 84]

The access control list for this bucket.

This may be one of the predefined ACLs specified by a Services_Amazon_S3_AccessControlList::ACL_xxx constant, or a Services_Amazon_S3_AccessControlList instance.

  • Access: public



[ Top ]

$exists =  false

[line 94]

Whether this object is known to exist or the server. This is updated in self::load().
  • Access: protected

Type:   bool


[ Top ]

$s3 =

[line 75]

The service instance this resource belongs to.
  • Access: public

Type:   Services_Amazon_S3


[ Top ]



Method Detail

delete   [line 169]

void delete( )

Deletes this resource from the server.
  • Throws: Services_Amazon_S3_Exception
  • Access: public

[ Top ]

getSignedUrl   [line 122]

string getSignedUrl( int $ttl, [string $subResource = false])

Returns an URL with credentials included in the query string. This will allow access to private resources without further authentication, e.g.

using a web browser.

  • Return: an absolute URL
  • Throws: Services_Amazon_S3_Exception
  • Access: public

Parameters:

int   $ttl   —  number of seconds the generated URL is authorized
string   $subResource   —  e.g. "?acl", "?location", or "?torrent" (including the question mark)

[ Top ]

getURL   [line 104]

string getURL( )

Returns the URL of this resource.
  • Return: an absolute URL
  • Abstract:
  • Access: public

Overridden in child classes as:

Services_Amazon_S3_Resource_Bucket::getURL()
Returns the URL of this bucket.
Services_Amazon_S3_Resource_Object::getURL()
Returns the URL of this object.

[ Top ]

load   [line 147]

bool load( )

Loads this resource from the server and propagates relevant properties.
  • Return: true, if resource exists on server
  • Abstract:
  • Throws: Services_Amazon_S3_Exception
  • Access: public

Overridden in child classes as:

Services_Amazon_S3_Resource_Bucket::load()
Loads this resource from the server and propagates relevant properties.
Services_Amazon_S3_Resource_Object::load()
Loads this object from the server.

[ Top ]

loadACL   [line 192]

void loadACL( )

Loads this resource's access control list from the server and propagates the acl property.
  • Throws: Services_Amazon_S3_Exception
  • Access: public

[ Top ]

save   [line 158]

void save( )

Saves this resource to the server (including its access control list).
  • Abstract:
  • Throws: Services_Amazon_S3_Exception
  • Access: public

Overridden in child classes as:

Services_Amazon_S3_Resource_Bucket::save()
Saves this bucket to the server
Services_Amazon_S3_Resource_Object::save()
Saves this object to the server.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:49:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.