Ejemplo 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;
 }
Ejemplo 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);
 }
Ejemplo n.º 3
0
 /**
  * getAcl
  *
  * @return \Guzzle\Service\Resource\Model
  */
 public function getAcl()
 {
     return $this->client->getBucketAcl(['Bucket' => $this->name]);
 }