1 <?php
2 /**
3 * ArangoDB PHP Core Client: Client Options
4 *
5 * @author Frank Mayer
6 * @copyright Copyright 2013-2015, FRANKMAYER.NET, Athens, Greece
7 */
8
9 namespace frankmayer\ArangoDbPhpCore;
10
11 use frankmayer\ArangoDbPhpCore\Config\UpdatePolicy;
12
13
14 /**
15 * Class ClientOptions
16 *
17 * @package frankmayer\ArangoDbPhpCore
18 */
19 class ClientOptions
20 {
21 /**
22 * Endpoint string index constant
23 */
24 const OPTION_ENDPOINT = 'endpoint';
25
26 /**
27 * Authentication user name
28 */
29 const OPTION_AUTH_USER = 'AuthUser';
30
31 /**
32 * Authentication password
33 */
34 const OPTION_AUTH_PASSWD = 'AuthPasswd';
35
36 /**
37 * Authentication type
38 */
39 const OPTION_AUTH_TYPE = 'AuthType';
40
41 /**
42 * Timeout value index constant
43 */
44 const OPTION_TIMEOUT = 'timeout';
45
46 /**
47 * Batch flag
48 */
49 const OPTION_BATCH = 'Batch';
50
51 /**
52 * Batchpart flag
53 */
54 const OPTION_BATCHPART = 'BatchPart';
55
56 /**
57 * Client close or keepalive strategy constant
58 */
59 const OPTION_CLIENT = 'Close';
60
61 /**
62 * option to create unknown collections automatically
63 */
64 const OPTION_CREATE = false;
65
66 /**
67 * Update strategy
68 */
69 const OPTION_UPDATE_POLICY = UpdatePolicy::LAST;
70
71 /**
72 * UTF-8 CHeck Flag
73 */
74 const OPTION_CHECK_UTF8_CONFORM = 'CheckUtf8Conform';
75
76 /**
77 * Trace function index constant
78 */
79 const OPTION_TRACE = 'trace';
80
81 /**
82 * Enhanced trace
83 */
84 const OPTION_ENHANCED_TRACE = 'enhancedTrace';
85
86 /**
87 * Plugins index constant
88 */
89 const OPTION_PLUGINS = 'plugins';
90
91 /**
92 * Default database index constant
93 */
94 const OPTION_DEFAULT_DATABASE = 'defaultDatabase';
95
96 /**
97 * RequestClass index constant
98 */
99 const OPTION_REQUEST_CLASS = 'requestClass';
100
101 /**
102 * ResponseClass index constant
103 */
104 const OPTION_RESPONSE_CLASS = 'responseClass';
105
106 /**
107 * ResponseClass index constant
108 */
109 const OPTION_DATABASE_PATH_PREFIX = 'databasePathPrefix';
110
111 }
112