|
4 | 4 |
|
5 | 5 | use ezsql\ezQuery; |
6 | 6 | use ezsql\ezsqlModelInterface; |
7 | | -use function ezsql\functions\getVendor; |
| 7 | +use function ezsql\functions\{getVendor, createCertificate}; |
8 | 8 |
|
9 | 9 | /** |
10 | 10 | * Core class containing common functions to manipulate **query** `result sets` once returned. |
11 | 11 | * |
12 | | - * The class properties can be accessed with either a `set` or `get` prefix as a function. |
| 12 | + * @method void setDebugAll($args); |
| 13 | + * A `ezsqlModel` class property that can be accessed with either |
| 14 | + * a `set` or `get` prefix as a function. |
| 15 | + * @method void setTrace($args); |
| 16 | + * A `ezsqlModel` class property that can be accessed with either |
| 17 | + * a `set` or `get` prefix as a function. |
| 18 | + * @method void setDebugCalled($args); |
| 19 | + * A `ezsqlModel` class property that can be accessed with either |
| 20 | + * a `set` or `get` prefix as a function. |
| 21 | + * @method void setVarDumpCalled($args); |
| 22 | + * A `ezsqlModel` class property that can be accessed with either |
| 23 | + * a `set` or `get` prefix as a function. |
| 24 | + * @method void setShowErrors($args); |
| 25 | + * A `ezsqlModel` class property that can be accessed with either |
| 26 | + * a `set` or `get` prefix as a function. |
| 27 | + * @method void setNumQueries($args); |
| 28 | + * A `ezsqlModel` class property that can be accessed with either |
| 29 | + * a `set` or `get` prefix as a function. |
| 30 | + * @method void setConnQueries($args); |
| 31 | + * A `ezsqlModel` class property that can be accessed with either |
| 32 | + * a `set` or `get` prefix as a function. |
| 33 | + * @method void setCapturedErrors($args); |
| 34 | + * A `ezsqlModel` class property that can be accessed with either |
| 35 | + * a `set` or `get` prefix as a function. |
| 36 | + * @method void setCacheDir($args); |
| 37 | + * A `ezsqlModel` class property that can be accessed with either |
| 38 | + * a `set` or `get` prefix as a function. |
| 39 | + * @method void setUseDiskCache($args); |
| 40 | + * A `ezsqlModel` class property that can be accessed with either |
| 41 | + * a `set` or `get` prefix as a function. |
| 42 | + * @method void setCacheTimeout($args); |
| 43 | + * A `ezsqlModel` class property that can be accessed with either |
| 44 | + * a `set` or `get` prefix as a function. |
| 45 | + * @method void setCacheQueries($args); |
| 46 | + * A `ezsqlModel` class property that can be accessed with either |
| 47 | + * a `set` or `get` prefix as a function. |
| 48 | + * @method void setCacheInserts($args); |
| 49 | + * A `ezsqlModel` class property that can be accessed with either |
| 50 | + * a `set` or `get` prefix as a function. |
| 51 | + * @method void setNumRows($args); |
| 52 | + * A `ezsqlModel` class property that can be accessed with either |
| 53 | + * a `set` or `get` prefix as a function. |
| 54 | + * @method void setDbConnectTime($args); |
| 55 | + * A `ezsqlModel` class property that can be accessed with either |
| 56 | + * a `set` or `get` prefix as a function. |
| 57 | + * @method void setSqlLogFile($args); |
| 58 | + * A `ezsqlModel` class property that can be accessed with either |
| 59 | + * a `set` or `get` prefix as a function. |
| 60 | + * @method void setProfileTimes($args); |
| 61 | + * A `ezsqlModel` class property that can be accessed with either |
| 62 | + * a `set` or `get` prefix as a function. |
| 63 | + * @method void setInsertId($args); |
| 64 | + * A `ezsqlModel` class property that can be accessed with either |
| 65 | + * a `set` or `get` prefix as a function. |
| 66 | + * @method void setLastQuery($args); |
| 67 | + * A `ezsqlModel` class property that can be accessed with either |
| 68 | + * a `set` or `get` prefix as a function. |
| 69 | + * @method void setLastError($args); |
| 70 | + * A `ezsqlModel` class property that can be accessed with either |
| 71 | + * a `set` or `get` prefix as a function. |
| 72 | + * @method void setColInfo($args); |
| 73 | + * A `ezsqlModel` class property that can be accessed with either |
| 74 | + * a `set` or `get` prefix as a function. |
| 75 | + * @method void setTimers($args); |
| 76 | + * A `ezsqlModel` class property that can be accessed with either |
| 77 | + * a `set` or `get` prefix as a function. |
| 78 | + * @method void setTotalQueryTime($args); |
| 79 | + * A `ezsqlModel` class property that can be accessed with either |
| 80 | + * a `set` or `get` prefix as a function. |
| 81 | + * @method void setTraceLog($args); |
| 82 | + * A `ezsqlModel` class property that can be accessed with either |
| 83 | + * a `set` or `get` prefix as a function. |
| 84 | + * @method void setUseTraceLog($args); |
| 85 | + * A `ezsqlModel` class property that can be accessed with either |
| 86 | + * a `set` or `get` prefix as a function. |
| 87 | + * @method void setDoProfile($args); |
| 88 | + * A `ezsqlModel` class property that can be accessed with either |
| 89 | + * a `set` or `get` prefix as a function. |
| 90 | + * @method void setLastResult($args); |
| 91 | + * A `ezsqlModel` class property that can be accessed with either |
| 92 | + * a `set` or `get` prefix as a function. |
| 93 | + * @method void setFromDiskCache($args); |
| 94 | + * A `ezsqlModel` class property that can be accessed with either |
| 95 | + * a `set` or `get` prefix as a function. |
| 96 | + * @method void setDebugEchoIsOn($args); |
| 97 | + * A `ezsqlModel` class property that can be accessed with either |
| 98 | + * a `set` or `get` prefix as a function. |
| 99 | + * @method void setFuncCall($args); |
| 100 | + * A `ezsqlModel` class property that can be accessed with either |
| 101 | + * a `set` or `get` prefix as a function. |
| 102 | + * @method void setAllFuncCalls($args); |
| 103 | + * A `ezsqlModel` class property that can be accessed with either |
| 104 | + * a `set` or `get` prefix as a function. |
| 105 | + * @method void setTable($name); |
| 106 | + * A `ezsqlModel` class property that can be accessed with either |
| 107 | + * a `set` or `get` prefix as a function. |
| 108 | + * @method void setPrefix($append); |
| 109 | + * A `ezsqlModel` class property that can be accessed with either |
| 110 | + * a `set` or `get` prefix as a function. |
13 | 111 | * |
14 | | - * @method void setDebugAll($args) |
15 | | - * @method void setTrace($args) |
16 | | - * @method void setDebugCalled($args) |
17 | | - * @method void setVarDumpCalled($args) |
18 | | - * @method void setShowErrors($args) |
19 | | - * @method void setNumQueries($args) |
20 | | - * @method void setConnQueries($args) |
21 | | - * @method void setCapturedErrors($args) |
22 | | - * @method void setCacheDir($args) |
23 | | - * @method void setUseDiskCache($args) |
24 | | - * @method void setCacheTimeout($args) |
25 | | - * @method void setCacheQueries($args) |
26 | | - * @method void setCacheInserts($args) |
27 | | - * @method void setNumRows($args) |
28 | | - * @method void setDbConnectTime($args) |
29 | | - * @method void setSqlLogFile($args) |
30 | | - * @method void setProfileTimes($args) |
31 | | - * @method void setInsertId($args) |
32 | | - * @method void setLastQuery($args) |
33 | | - * @method void setLastError($args) |
34 | | - * @method void setColInfo($args) |
35 | | - * @method void setTimers($args) |
36 | | - * @method void setTotalQueryTime($args) |
37 | | - * @method void setTraceLog($args) |
38 | | - * @method void setUseTraceLog($args) |
39 | | - * @method void setDoProfile($args) |
40 | | - * @method void setLastResult($args) |
41 | | - * @method void setFromDiskCache($args) |
42 | | - * @method void setDebugEchoIsOn($args) |
43 | | - * @method void setFuncCall($args) |
44 | | - * @method void setAllFuncCalls($args) |
45 | | - * @method void setTable($name) |
46 | | - * @method void setPrefix($append) |
47 | | - * |
48 | | - * @method string getDebugAll() |
49 | | - * @method string getTrace() |
50 | | - * @method string getDebugCalled() |
51 | | - * @method string getVarDumpCalled() |
52 | | - * @method string getShowErrors() |
53 | | - * @method string getNumQueries() |
54 | | - * @method string getConnQueries() |
55 | | - * @method string getCapturedErrors() |
56 | | - * @method string getCacheDir() |
57 | | - * @method string getUseDiskCache() |
58 | | - * @method string getCacheTimeout() |
59 | | - * @method string getCacheQueries() |
60 | | - * @method string getCacheInserts() |
61 | | - * @method string getNumRows() |
62 | | - * @method string getDbConnectTime() |
63 | | - * @method string getSqlLogFile() |
64 | | - * @method string getProfileTimes() |
65 | | - * @method string getInsertId() |
66 | | - * @method string getLastQuery() |
67 | | - * @method string getLastError() |
68 | | - * @method string getColInfo() |
69 | | - * @method string getTimers() |
70 | | - * @method string getTotalQueryTime() |
71 | | - * @method string getTraceLog() |
72 | | - * @method string getUseTraceLog() |
73 | | - * @method string getDoProfile() |
74 | | - * @method string getLastResult() |
75 | | - * @method string getFromDiskCache() |
76 | | - * @method string getDebugEchoIsOn() |
77 | | - * @method string getFuncCall() |
78 | | - * @method string getAllFuncCalls() |
79 | | - * @method string getTable() |
80 | | - * @method string getPrefix() |
| 112 | + * @method string getDebugAll(); |
| 113 | + * A `ezsqlModel` class property that can be accessed with either |
| 114 | + * a `set` or `get` prefix as a function. |
| 115 | + * @method string getTrace(); |
| 116 | + * A `ezsqlModel` class property that can be accessed with either |
| 117 | + * a `set` or `get` prefix as a function. |
| 118 | + * @method string getDebugCalled(); |
| 119 | + * A `ezsqlModel` class property that can be accessed with either |
| 120 | + * a `set` or `get` prefix as a function. |
| 121 | + * @method string getVarDumpCalled(); |
| 122 | + * A `ezsqlModel` class property that can be accessed with either |
| 123 | + * a `set` or `get` prefix as a function. |
| 124 | + * @method string getShowErrors(); |
| 125 | + * A `ezsqlModel` class property that can be accessed with either |
| 126 | + * a `set` or `get` prefix as a function. |
| 127 | + * @method string getNumQueries(); |
| 128 | + * A `ezsqlModel` class property that can be accessed with either |
| 129 | + * a `set` or `get` prefix as a function. |
| 130 | + * @method string getConnQueries(); |
| 131 | + * A `ezsqlModel` class property that can be accessed with either |
| 132 | + * a `set` or `get` prefix as a function. |
| 133 | + * @method string getCapturedErrors(); |
| 134 | + * A `ezsqlModel` class property that can be accessed with either |
| 135 | + * a `set` or `get` prefix as a function. |
| 136 | + * @method string getCacheDir(); |
| 137 | + * A `ezsqlModel` class property that can be accessed with either |
| 138 | + * a `set` or `get` prefix as a function. |
| 139 | + * @method string getUseDiskCache(); |
| 140 | + * A `ezsqlModel` class property that can be accessed with either |
| 141 | + * a `set` or `get` prefix as a function. |
| 142 | + * @method string getCacheTimeout(); |
| 143 | + * A `ezsqlModel` class property that can be accessed with either |
| 144 | + * a `set` or `get` prefix as a function. |
| 145 | + * @method string getCacheQueries(); |
| 146 | + * A `ezsqlModel` class property that can be accessed with either |
| 147 | + * a `set` or `get` prefix as a function. |
| 148 | + * @method string getCacheInserts(); |
| 149 | + * A `ezsqlModel` class property that can be accessed with either |
| 150 | + * a `set` or `get` prefix as a function. |
| 151 | + * @method string getNumRows(); |
| 152 | + * A `ezsqlModel` class property that can be accessed with either |
| 153 | + * a `set` or `get` prefix as a function. |
| 154 | + * @method string getDbConnectTime(); |
| 155 | + * A `ezsqlModel` class property that can be accessed with either |
| 156 | + * a `set` or `get` prefix as a function. |
| 157 | + * @method string getSqlLogFile(); |
| 158 | + * A `ezsqlModel` class property that can be accessed with either |
| 159 | + * a `set` or `get` prefix as a function. |
| 160 | + * @method string getProfileTimes(); |
| 161 | + * A `ezsqlModel` class property that can be accessed with either |
| 162 | + * a `set` or `get` prefix as a function. |
| 163 | + * @method string getInsertId(); |
| 164 | + * A `ezsqlModel` class property that can be accessed with either |
| 165 | + * a `set` or `get` prefix as a function. |
| 166 | + * @method string getLastQuery(); |
| 167 | + * A `ezsqlModel` class property that can be accessed with either |
| 168 | + * a `set` or `get` prefix as a function. |
| 169 | + * @method string getLastError(); |
| 170 | + * A `ezsqlModel` class property that can be accessed with either |
| 171 | + * a `set` or `get` prefix as a function. |
| 172 | + * @method string getColInfo(); |
| 173 | + * A `ezsqlModel` class property that can be accessed with either |
| 174 | + * a `set` or `get` prefix as a function. |
| 175 | + * @method string getTimers(); |
| 176 | + * A `ezsqlModel` class property that can be accessed with either |
| 177 | + * a `set` or `get` prefix as a function. |
| 178 | + * @method string getTotalQueryTime(); |
| 179 | + * A `ezsqlModel` class property that can be accessed with either |
| 180 | + * a `set` or `get` prefix as a function. |
| 181 | + * @method string getTraceLog(); |
| 182 | + * A `ezsqlModel` class property that can be accessed with either |
| 183 | + * a `set` or `get` prefix as a function. |
| 184 | + * @method string getUseTraceLog(); |
| 185 | + * A `ezsqlModel` class property that can be accessed with either |
| 186 | + * a `set` or `get` prefix as a function. |
| 187 | + * @method string getDoProfile(); |
| 188 | + * A `ezsqlModel` class property that can be accessed with either |
| 189 | + * a `set` or `get` prefix as a function. |
| 190 | + * @method string getLastResult(); |
| 191 | + * A `ezsqlModel` class property that can be accessed with either |
| 192 | + * a `set` or `get` prefix as a function. |
| 193 | + * @method string getFromDiskCache(); |
| 194 | + * A `ezsqlModel` class property that can be accessed with either |
| 195 | + * a `set` or `get` prefix as a function. |
| 196 | + * @method string getDebugEchoIsOn(); |
| 197 | + * A `ezsqlModel` class property that can be accessed with either |
| 198 | + * a `set` or `get` prefix as a function. |
| 199 | + * @method string getFuncCall(); |
| 200 | + * A `ezsqlModel` class property that can be accessed with either |
| 201 | + * a `set` or `get` prefix as a function. |
| 202 | + * @method string getAllFuncCalls(); |
| 203 | + * A `ezsqlModel` class property that can be accessed with either |
| 204 | + * a `set` or `get` prefix as a function. |
| 205 | + * @method string getTable(); |
| 206 | + * A `ezsqlModel` class property that can be accessed with either |
| 207 | + * a `set` or `get` prefix as a function. |
| 208 | + * @method string getPrefix(); |
| 209 | + * A `ezsqlModel` class property that can be accessed with either |
| 210 | + * a `set` or `get` prefix as a function. |
81 | 211 | */ |
82 | 212 | class ezsqlModel extends ezQuery implements ezsqlModelInterface |
83 | 213 | { |
@@ -725,7 +855,7 @@ public function secureSetup( |
725 | 855 | if (!\file_exists($path . $cert) || !\file_exists($path . $key)) { |
726 | 856 | $vendor = getVendor(); |
727 | 857 | if (($vendor != \SQLITE) || ($vendor != \MSSQL)) |
728 | | - $path = ezQuery::createCertificate(); |
| 858 | + $path = createCertificate(); |
729 | 859 | } elseif ($path == '.' . \_DS) { |
730 | 860 | $ssl_path = \getcwd(); |
731 | 861 | $path = \preg_replace('/\\\/', \_DS, $ssl_path) . \_DS; |
|
0 commit comments