blob: 08a5d8e1bd5a803c74e22f1246246e7188378f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
/**
* TUrlMapping, TUrlMappingPattern and TUrlMappingPatternSecureConnection class file.
*
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
* @package Prado\Web
*/
namespace Prado\Web;
/**
* TUrlMappingPatternSecureConnection class
*
* TUrlMappingPatternSecureConnection defines the enumerable type for the possible SecureConnection
* URL prefix behavior that can be used by {@link TUrlMappingPattern::constructUrl()}.
*
* @author Yves Berkholz <godzilla80[at]gmx[dot]net>
* @package Prado\Web
* @since 3.2
*/
class TUrlMappingPatternSecureConnection extends \Prado\TEnumerable
{
/**
* Keep current SecureConnection status
* means no prefixing
*/
const Automatic = 'Automatic';
/**
* Force use secured connection
* always prefixing with https://example.com/path/to/app
*/
const Enable = 'Enable';
/**
* Force use unsecured connection
* always prefixing with http://example.com/path/to/app
*/
const Disable = 'Disable';
/**
* Force use secured connection, if in unsecured mode
* prefixing with https://example.com/path/to/app
*/
const EnableIfNotSecure = 'EnableIfNotSecure';
/**
* Force use unsecured connection, if in secured mode
* prefixing with https://example.com/path/to/app
*/
const DisableIfSecure = 'DisableIfSecure';
}
|