1234567891011121314151617181920212223242526272829 |
- <?php
- class AddDataBucketAction implements IAction {
- public function execute() {
- if(!Authorize::isLoggedIn() || !Authorize::hasPermission()) {
- return array("error" => "Access not authorized");
- }
- //http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUT.html
- /*
- PUT / HTTP/1.1
- Host: BucketName.s3.amazonaws.com
- Content-Length: length
- Date: date
- Authorization: authorization string (see Authenticating Requests (AWS Signature Version
- 4))
- <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
- <LocationConstraint>BucketRegion</LocationConstraint>
- </CreateBucketConfiguration>
- */
- throw new NotImplementedException();
- //TODO: write record
- //$this->database->exec($sql);
- }
- }
|