コード例 #1
0
ファイル: Object.php プロジェクト: Flesh192/magento
 /**
  * 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;
 }
コード例 #2
0
 /**
  * @group ZF-12542
  */
 public function testGetInfoCdnContainer()
 {
     $info = $this->rackspace->getInfoCdnContainer(TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME);
     $this->assertTrue($info !== false);
     $this->assertTrue(is_array($info));
     $this->assertTrue(!empty($info['ttl']));
     $this->assertTrue(!empty($info['cdn_uri']));
     $this->assertTrue(!empty($info['cdn_uri_ssl']));
     $this->assertTrue($info['cdn_enabled']);
     $this->assertTrue($info['log_retention']);
 }