AddDataBucketAction.class.php 732 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. class AddDataBucketAction implements IAction {
  3. public function execute() {
  4. if(!Authorize::isLoggedIn() || !Authorize::hasPermission()) {
  5. return array("error" => "Access not authorized");
  6. }
  7. //http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUT.html
  8. /*
  9. PUT / HTTP/1.1
  10. Host: BucketName.s3.amazonaws.com
  11. Content-Length: length
  12. Date: date
  13. Authorization: authorization string (see Authenticating Requests (AWS Signature Version
  14. 4))
  15. <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  16. <LocationConstraint>BucketRegion</LocationConstraint>
  17. </CreateBucketConfiguration>
  18. */
  19. throw new NotImplementedException();
  20. //TODO: write record
  21. //$this->database->exec($sql);
  22. }
  23. }