lib/Beberlei/AzureBlobStorage/BlobClient.php
public function getContainerAcl($containerName = '', $signedIdentifiers = false)
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);

        $response = $this->performRequest($containerName, array('restype' => 'container', 'comp' => 'acl'), 'GET', array(), false, null, self::RESOURCE_CONTAINER, self::PERMISSION_READ);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        if ($signedIdentifiers == false)  {
            // Only private/blob/container
            $accessType = $response->getHeader(Storage::PREFIX_STORAGE_HEADER . 'blob-public-access');
            if (strtolower($accessType) == 'true') {
                $accessType = self::ACL_PUBLIC_CONTAINER;
            }
            return $accessType;
        }

        $result = $this->parseResponse($response);
        if ( ! $result) {
            return array();
        }

        $entries = null;
        if ($result->SignedIdentifier) {
            if (count($result->SignedIdentifier) > 1) {
                $entries = $result->SignedIdentifier;
            } else {
                $entries = array($result->SignedIdentifier);
            }
        }

        $returnValue = array();
        foreach ($entries as $entry) {
            $returnValue[] = new SignedIdentifier(
                    $entry->Id,
                    $entry->AccessPolicy ? $entry->AccessPolicy->Start ? $entry->AccessPolicy->Start : '' : '',
                    $entry->AccessPolicy ? $entry->AccessPolicy->Expiry ? $entry->AccessPolicy->Expiry : '' : '',
                    $entry->AccessPolicy ? $entry->AccessPolicy->Permission ? $entry->AccessPolicy->Permission : '' : ''
                    );
        }

        return $returnValue;
    }
public function getContainerAcl($containerName = '', $signedIdentifiers = false)
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);

        $response = $this->performRequest($containerName, array('restype' => 'container', 'comp' => 'acl'), 'GET', array(), false, null, self::RESOURCE_CONTAINER, self::PERMISSION_READ);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        if ($signedIdentifiers == false)  {
            // Only private/blob/container
            $accessType = $response->getHeader(Storage::PREFIX_STORAGE_HEADER . 'blob-public-access');
            if (strtolower($accessType) == 'true') {
                $accessType = self::ACL_PUBLIC_CONTAINER;
            }
            return $accessType;
        }

        $result = $this->parseResponse($response);
        if ( ! $result) {
            return array();
        }

        $entries = null;
        if ($result->SignedIdentifier) {
            if (count($result->SignedIdentifier) > 1) {
                $entries = $result->SignedIdentifier;
            } else {
                $entries = array($result->SignedIdentifier);
            }
        }

        $returnValue = array();
        foreach ($entries as $entry) {
            $returnValue[] = new SignedIdentifier(
                    $entry->Id,
                    $entry->AccessPolicy ? $entry->AccessPolicy->Start ? $entry->AccessPolicy->Start : '' : '',
                    $entry->AccessPolicy ? $entry->AccessPolicy->Expiry ? $entry->AccessPolicy->Expiry : '' : '',
                    $entry->AccessPolicy ? $entry->AccessPolicy->Permission ? $entry->AccessPolicy->Permission : '' : ''
                    );
        }

        return $returnValue;
    }
public function getContainerAcl ( $ containerName = '' , $ signedIdentifiers = false ) { Assertion :: notEmpty ( $ containerName , 'Container name is not specified' ) ; self :: assertValidContainerName ( $ containerName ) ; $ response = $ this -> performRequest ( $ containerName , array ( 'restype' => 'container' , 'comp' => 'acl' ) , 'GET' , array ( ) , false , null , self :: RESOURCE_CONTAINER , self :: PERMISSION_READ ) ; if ( ! $ response -> isSuccessful ( ) ) { throw new BlobException ( $ this -> getErrorMessage ( $ response , 'Resource could not be accessed.' ) ) ; } if ( $ signedIdentifiers == false ) { // Only private/blob/container
 $ accessType = $ response -> getHeader ( Storage :: PREFIX_STORAGE_HEADER . 'blob-public-access' ) ; if ( strtolower ( $ accessType ) == 'true' ) { $ accessType = self :: ACL_PUBLIC_CONTAINER ; } return $ accessType ; } $ result = $ this -> parseResponse ( $ response ) ; if ( ! $ result ) { return array ( ) ; } $ entries = null ; if ( $ result -> SignedIdentifier ) { if ( count ( $ result -> SignedIdentifier ) > 1 ) { $ entries = $ result -> SignedIdentifier ; } else { $ entries = array ( $ result -> SignedIdentifier ) ; } } $ returnValue = array ( ) ; foreach ( $ entries as $ entry ) { $ returnValue [ ] = new SignedIdentifier ( $ entry -> Id , $ entry -> AccessPolicy ? $ entry -> AccessPolicy -> Start ? $ entry -> AccessPolicy -> Start : '' : '' , $ entry -> AccessPolicy ? $ entry -> AccessPolicy -> Expiry ? $ entry -> AccessPolicy -> Expiry : '' : '' , $ entry -> AccessPolicy ? $ entry -> AccessPolicy -> Permission ? $ entry -> AccessPolicy -> Permission : '' : '' ) ; } return $ returnValue ; }
Get container ACL

@param string $containerName Container name
@param bool   $signedIdentifiers Display only private/blob/container or display signed identifiers?
@return string Acl, to be compared with Blob::ACL_*
@throws BlobException
Get container ACL