function acl_user_agent($cdn_acl_user_agent="") {
        if ($this->cfs_http->getCDNMUrl() == NULL) {
            throw new CDNNotEnabledException(
                "Authentication response did not indicate CDN availability");
        }
        list($status,$reason) =
            $this->cfs_http->update_cdn_container($this->name,
                                                  $this->cdn_ttl,
                                                  $this->cdn_log_retention,
                                                  $cdn_acl_user_agent,
                                                  $this->cdn_acl_referrer
                );
        if (!in_array($status, array(202,404))) {
            throw new InvalidResponseException(
                "Invalid response (".$status."): ".$this->cfs_http->get_error());
        }
        $this->cdn_acl_user_agent = $cdn_acl_user_agent;
        return True;
    }
function acl_user_agent($cdn_acl_user_agent="") {
        if ($this->cfs_http->getCDNMUrl() == NULL) {
            throw new CDNNotEnabledException(
                "Authentication response did not indicate CDN availability");
        }
        list($status,$reason) =
            $this->cfs_http->update_cdn_container($this->name,
                                                  $this->cdn_ttl,
                                                  $this->cdn_log_retention,
                                                  $cdn_acl_user_agent,
                                                  $this->cdn_acl_referrer
                );
        if (!in_array($status, array(202,404))) {
            throw new InvalidResponseException(
                "Invalid response (".$status."): ".$this->cfs_http->get_error());
        }
        $this->cdn_acl_user_agent = $cdn_acl_user_agent;
        return True;
    }
function acl_user_agent ( $ cdn_acl_user_agent = "" ) { if ( $ this -> cfs_http -> getCDNMUrl ( ) == NULL ) { throw new CDNNotEnabledException ( "Authentication response did not indicate CDN availability" ) ; } list ( $ status , $ reason ) = $ this -> cfs_http -> update_cdn_container ( $ this -> name , $ this -> cdn_ttl , $ this -> cdn_log_retention , $ cdn_acl_user_agent , $ this -> cdn_acl_referrer ) ; if ( ! in_array ( $ status , array ( 202 , 404 ) ) ) { throw new InvalidResponseException ( "Invalid response (" . $ status . "): " . $ this -> cfs_http -> get_error ( ) ) ; } $ this -> cdn_acl_user_agent = $ cdn_acl_user_agent ; return True ; }
Enable ACL restriction by User Agent for this container.

Example:
<code>
# ... authentication code excluded (see previous examples) ...
#
$conn = new CF_Authentication($auth);

$public_container = $conn->get_container("public");

# Enable ACL by Referrer
$public_container->acl_referrer("Mozilla");
</code>

@returns boolean True if successful
@throws CDNNotEnabledException CDN functionality not returned during auth
@throws AuthenticationException if auth token is not valid/expired
@throws InvalidResponseException unexpected response
Enable ACL restriction by User Agent for this container .