1 <?php
2
3 /**
4 * ArangoDB-PHP-Core client: default values
5 *
6 * Taken from the original ArangoDB-Client, in order to maintain easy migration. Thanks Jan ;)
7 *
8 * @author Frank Mayer
9 * @copyright Copyright 2013-2015, FRANKMAYER.NET, Athens, Greece
10 */
11
12 namespace frankmayer\ArangoDbPhpCore\Config;
13
14 /**
15 * Contains default values used by the client
16 *
17 * @package frankmayer\ArangoDbPhpCore\Config
18 */
19 abstract class DefaultValues
20 {
21 /**
22 * Default port number (used if no port specified)
23 */
24 const DEFAULT_PORT = 8529;
25
26 /**
27 * Default timeout value (used if no timeout value specified)
28 */
29 const DEFAULT_TIMEOUT = 30;
30
31 /**
32 * Default value for waitForSync (fsync all data to disk on document updates/insertions/deletions)
33 */
34 const DEFAULT_WAIT_SYNC = false;
35
36 /**
37 * Default value for collection journal size
38 */
39 const DEFAULT_JOURNAL_SIZE = 33554432;
40
41 /**
42 * Default value for isVolatile
43 */
44 const DEFAULT_IS_VOLATILE = false;
45
46 /**
47 * Default value for createCollection (create the collection on the fly when the first document is added to an unknown collection)
48 */
49 const DEFAULT_CREATE = false;
50
51 /**
52 * Default value for HTTP Client header
53 */
54 const DEFAULT_CLIENT = "Close";
55
56 /**
57 * Default update policy
58 */
59 const DEFAULT_UPDATE_POLICY = UpdatePolicy::ERROR;
60
61 /**
62 * Default replace policy
63 */
64 const DEFAULT_REPLACE_POLICY = UpdatePolicy::ERROR;
65
66 /**
67 * Default delete policy
68 */
69 const DEFAULT_DELETE_POLICY = UpdatePolicy::ERROR;
70
71 /**
72 * Default value for checking if data is UTF-8 conform
73 */
74 const DEFAULT_CHECK_UTF8_CONFORM = true;
75 }
76