Exemplo n.º 1
0
 /**
  * Get the CDN SSL URL of the object
  *
  * @return string
  */
 public function getCdnUrlSsl()
 {
     $result = $this->service->getInfoCdnContainer($this->container);
     if ($result !== false) {
         if ($result['cdn_enabled']) {
             return $result['cdn_uri_ssl'] . '/' . $this->name;
         }
     }
     return false;
 }
Exemplo n.º 2
0
 /**
  * Update the CDN information
  *
  * @return boolean
  */
 public function updateCdnInfo()
 {
     $result = $this->service->getInfoCdnContainer($this->getName());
     if ($result !== false) {
         $this->cdn = strtolower($result['cdn_enabled']) !== 'false';
         $this->ttl = $result['ttl'];
         $this->logRetention = strtolower($result['log_retention']) !== 'false';
         $this->cdnUri = $result['cdn_uri'];
         $this->cdnUriSsl = $result['cdn_uri_ssl'];
         return true;
     }
     return false;
 }