Esempio n. 1
0
 public function test()
 {
     $test = $this->connection->getBucketAcl(array('Bucket' => $this->bucket));
     if (isset($test) && !is_null($test->getPath('Owner/ID'))) {
         return true;
     }
     return false;
 }
Esempio n. 2
0
 /**
  * Get access control policy for the bucket
  *
  * @param string $bucket
  *
  * @return mixed
  */
 public function getBucketAcl($bucket)
 {
     $params['Bucket'] = $bucket;
     return $this->instance->getBucketAcl($params);
 }
Esempio n. 3
0
 /**
  * getAcl
  *
  * @return \Guzzle\Service\Resource\Model
  */
 public function getAcl()
 {
     return $this->client->getBucketAcl(['Bucket' => $this->name]);
 }