当前位置: 首页>>代码示例>>PHP>>正文


PHP Validate::getIsValidUri方法代码示例

本文整理汇总了PHP中WindowsAzure\Common\Internal\Validate::getIsValidUri方法的典型用法代码示例。如果您正苦于以下问题:PHP Validate::getIsValidUri方法的具体用法?PHP Validate::getIsValidUri怎么用?PHP Validate::getIsValidUri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WindowsAzure\Common\Internal\Validate的用法示例。


在下文中一共展示了Validate::getIsValidUri方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 /**
  * Initializes static members of the class.
  *
  * @return none
  */
 protected static function init()
 {
     self::$_endpointUriSetting = self::settingWithFunc(Resources::MEDIA_SERVICES_ENDPOINT_URI_NAME, Validate::getIsValidUri());
     self::$_oauthEndpointUriSetting = self::settingWithFunc(Resources::MEDIA_SERVICES_OAUTH_ENDPOINT_URI_NAME, Validate::getIsValidUri());
     self::$_accountNameSetting = self::setting(Resources::MEDIA_SERVICES_ACCOUNT_NAME);
     self::$_accessKeySetting = self::setting(Resources::MEDIA_SERVICES_ACCESS_KEY);
     self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ENDPOINT_URI_NAME;
     self::$validSettingKeys[] = Resources::MEDIA_SERVICES_OAUTH_ENDPOINT_URI_NAME;
     self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ACCOUNT_NAME;
     self::$validSettingKeys[] = Resources::MEDIA_SERVICES_ACCESS_KEY;
 }
开发者ID:skinnard,项目名称:FTL-2,代码行数:16,代码来源:MediaServicesSettings.php

示例2: init

 /**
  * Initializes static members of the class.
  * 
  * @return none
  */
 protected static function init()
 {
     self::$_endpointSetting = self::settingWithFunc(Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$_certificatePathSetting = self::setting(Resources::CERTIFICATE_PATH_NAME);
     self::$_subscriptionIdSetting = self::setting(Resources::SUBSCRIPTION_ID_NAME);
     self::$validSettingKeys[] = Resources::SUBSCRIPTION_ID_NAME;
     self::$validSettingKeys[] = Resources::CERTIFICATE_PATH_NAME;
     self::$validSettingKeys[] = Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME;
 }
开发者ID:leotaillard,项目名称:btws2016,代码行数:14,代码来源:ServiceManagementSettings.php

示例3: init

 /**
  * Initializes static members of the class.
  * 
  * @return none
  */
 protected static function init()
 {
     self::$_useDevelopmentStorageSetting = self::setting(Resources::USE_DEVELOPMENT_STORAGE_NAME, 'true');
     self::$_developmentStorageProxyUriSetting = self::settingWithFunc(Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME, Validate::getIsValidUri());
     self::$_defaultEndpointsProtocolSetting = self::setting(Resources::DEFAULT_ENDPOINTS_PROTOCOL_NAME, 'http', 'https');
     self::$_accountNameSetting = self::setting(Resources::ACCOUNT_NAME_NAME);
     self::$_accountKeySetting = self::settingWithFunc(Resources::ACCOUNT_KEY_NAME, function ($key) {
         $isValidBase64String = base64_decode($key, true);
         if ($isValidBase64String) {
             return true;
         } else {
             throw new \RuntimeException(sprintf(Resources::INVALID_ACCOUNT_KEY_FORMAT, $key));
         }
     });
     self::$_blobEndpointSetting = self::settingWithFunc(Resources::BLOB_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$_queueEndpointSetting = self::settingWithFunc(Resources::QUEUE_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$_tableEndpointSetting = self::settingWithFunc(Resources::TABLE_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$validSettingKeys[] = Resources::USE_DEVELOPMENT_STORAGE_NAME;
     self::$validSettingKeys[] = Resources::DEVELOPMENT_STORAGE_PROXY_URI_NAME;
     self::$validSettingKeys[] = Resources::DEFAULT_ENDPOINTS_PROTOCOL_NAME;
     self::$validSettingKeys[] = Resources::ACCOUNT_NAME_NAME;
     self::$validSettingKeys[] = Resources::ACCOUNT_KEY_NAME;
     self::$validSettingKeys[] = Resources::BLOB_ENDPOINT_NAME;
     self::$validSettingKeys[] = Resources::QUEUE_ENDPOINT_NAME;
     self::$validSettingKeys[] = Resources::TABLE_ENDPOINT_NAME;
 }
开发者ID:isrealconsulting,项目名称:site,代码行数:31,代码来源:StorageServiceSettings.php

示例4: init

 /**
  * Initializes static members of the class.
  * 
  * @return none
  */
 protected static function init()
 {
     self::$_serviceBusEndpointSetting = self::settingWithFunc(Resources::SERVICE_BUS_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$_wrapNameSetting = self::setting(Resources::SHARED_SECRET_ISSUER_NAME);
     self::$_wrapPasswordSetting = self::setting(Resources::SHARED_SECRET_VALUE_NAME);
     self::$_wrapEndpointUriSetting = self::settingWithFunc(Resources::STS_ENDPOINT_NAME, Validate::getIsValidUri());
     self::$validSettingKeys[] = Resources::SERVICE_BUS_ENDPOINT_NAME;
     self::$validSettingKeys[] = Resources::SHARED_SECRET_ISSUER_NAME;
     self::$validSettingKeys[] = Resources::SHARED_SECRET_VALUE_NAME;
     self::$validSettingKeys[] = Resources::STS_ENDPOINT_NAME;
 }
开发者ID:bitmovin,项目名称:azure-sdk-for-php,代码行数:16,代码来源:ServiceBusSettings.php

示例5: testGetValidateUri

 /**
  * @covers WindowsAzure\Common\Internal\Validate::isDouble
  */
 public function testGetValidateUri()
 {
     // Test
     $function = Validate::getIsValidUri();
     // Assert
     $this->assertInternalType('object', $function);
 }
开发者ID:jdruid,项目名称:Microsoft-Azure-PHP-SDK-Storage,代码行数:10,代码来源:ValidateTest.php


注:本文中的WindowsAzure\Common\Internal\Validate::getIsValidUri方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。