1 <?php
2
3 /**
4 * ArangoDB PHP client: default values
5 *
6 * @package triagens\ArangoDb
7 * @author Jan Steemann
8 * @copyright Copyright 2012, triagens GmbH, Cologne, Germany
9 */
10
11 namespace triagens\ArangoDb;
12
13 /**
14 * Contains default values used by the client
15 *
16 * <br>
17 *
18 * @package triagens\ArangoDb
19 * @since 0.2
20 */
21 abstract class DefaultValues
22 {
23 /**
24 * Default port number (used if no port specified)
25 */
26 const DEFAULT_PORT = 8529;
27
28 /**
29 * Default timeout value (used if no timeout value specified)
30 */
31 const DEFAULT_TIMEOUT = 30;
32
33 /**
34 * Default value for waitForSync (fsync all data to disk on document updates/insertions/deletions)
35 */
36 const DEFAULT_WAIT_SYNC = false;
37
38 /**
39 * Default value for collection journal size
40 */
41 const DEFAULT_JOURNAL_SIZE = 33554432;
42
43 /**
44 * Default value for isVolatile
45 */
46 const DEFAULT_IS_VOLATILE = false;
47
48 /**
49 * Default value for createCollection (create the collection on the fly when the first document is added to an unknown collection)
50 */
51 const DEFAULT_CREATE = false;
52
53 /**
54 * Default value for HTTP Connection header
55 */
56 const DEFAULT_CONNECTION = 'Close';
57
58 /**
59 * Default value for SSL certificate verification
60 */
61 const DEFAULT_VERIFY_CERT = false;
62
63 /**
64 * Default value for accepting self-signed SSL certificates
65 */
66 const DEFAULT_ALLOW_SELF_SIGNED = true;
67
68 /**
69 * Default value for ciphers to be used in SSL
70 */
71 const DEFAULT_CIPHERS = null;
72
73 /**
74 * Default update policy
75 */
76 const DEFAULT_UPDATE_POLICY = UpdatePolicy::ERROR;
77
78 /**
79 * Default replace policy
80 */
81 const DEFAULT_REPLACE_POLICY = UpdatePolicy::ERROR;
82
83 /**
84 * Default delete policy
85 */
86 const DEFAULT_DELETE_POLICY = UpdatePolicy::ERROR;
87
88 /**
89 * Default value for checking if data is UTF-8 conform
90 */
91 const DEFAULT_CHECK_UTF8_CONFORM = false;
92 }
93