本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: testGetValidateUri
/**
* @covers WindowsAzure\Common\Internal\Validate::isDouble
*/
public function testGetValidateUri()
{
// Test
$function = Validate::getIsValidUri();
// Assert
$this->assertInternalType('object', $function);
}