-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathDefaultValues.php
116 lines (95 loc) · 2.77 KB
/
DefaultValues.php
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* ArangoDB PHP client: default values
*
* @package ArangoDBClient
* @author Jan Steemann
* @copyright Copyright 2012, triagens GmbH, Cologne, Germany
*/
namespace ArangoDBClient;
/**
* Contains default values used by the client
*
* <br>
*
* @package ArangoDBClient
* @since 0.2
*/
abstract class DefaultValues
{
/**
* Default port number (used if no port specified)
*/
const DEFAULT_PORT = 8529;
/**
* Default timeout value (used if no timeout value specified)
* @deprecated superseded by DEFAULT_CONNECT_TIMEOUT and DEFAULT_REQUEST_TIMEOUT
*/
const DEFAULT_TIMEOUT = 30;
/**
* Default connect timeout value (used if no timeout value specified)
*/
const DEFAULT_CONNECT_TIMEOUT = 30;
/**
* Default request timeout value (used if no timeout value specified)
*/
const DEFAULT_REQUEST_TIMEOUT = 30;
/**
* Default number of failover servers to try (used in case there is an automatic failover)
* if set to 0, then an unlimited amount of servers will be tried
*/
const DEFAULT_FAILOVER_TRIES = 3;
/**
* Default max amount of time (in seconds) that is spent waiting on failover
*/
const DEFAULT_FAILOVER_TIMEOUT = 30;
/**
* Default Authorization type (use HTTP basic authentication)
*/
const DEFAULT_AUTH_TYPE = 'Basic';
/**
* Default value for waitForSync (fsync all data to disk on document updates/insertions/deletions)
*/
const DEFAULT_WAIT_SYNC = false;
/**
* Default value for createCollection (create the collection on the fly when the first document is added to an unknown collection)
*/
const DEFAULT_CREATE = false;
/**
* Default value for HTTP Connection header
*/
const DEFAULT_CONNECTION = 'Keep-Alive';
/**
* Default value for SSL certificate verification
*/
const DEFAULT_VERIFY_CERT = false;
/**
* Default value for SSL certificate host name verification
*/
const DEFAULT_VERIFY_CERT_NAME = false;
/**
* Default value for accepting self-signed SSL certificates
*/
const DEFAULT_ALLOW_SELF_SIGNED = true;
/**
* Default value for ciphers to be used in SSL
*/
const DEFAULT_CIPHERS = null;
/**
* Default update policy
*/
const DEFAULT_UPDATE_POLICY = UpdatePolicy::ERROR;
/**
* Default replace policy
*/
const DEFAULT_REPLACE_POLICY = UpdatePolicy::ERROR;
/**
* Default delete policy
*/
const DEFAULT_DELETE_POLICY = UpdatePolicy::ERROR;
/**
* Default value for checking if data is UTF-8 conform
*/
const DEFAULT_CHECK_UTF8_CONFORM = false;
}
class_alias(DefaultValues::class, '\triagens\ArangoDb\DefaultValues');