26 |
rodolico |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html lang="en">
|
|
|
3 |
<head>
|
|
|
4 |
<meta charset="utf-8">
|
|
|
5 |
<title> Documentation » Markers
|
|
|
6 |
</title>
|
|
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
8 |
<base href="../">
|
|
|
9 |
<link rel="icon" href="images/favicon.ico"/>
|
|
|
10 |
<link rel="stylesheet" href="css/normalize.css">
|
|
|
11 |
<link rel="stylesheet" href="css/base.css">
|
|
|
12 |
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
|
13 |
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
|
|
14 |
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
|
|
|
15 |
<link rel="stylesheet" href="css/template.css">
|
|
|
16 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
|
|
|
17 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
|
|
|
18 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
|
|
|
19 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
|
|
|
20 |
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
|
|
|
21 |
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
|
|
|
22 |
<script src="js/search.js"></script>
|
|
|
23 |
<script defer src="js/searchIndex.js"></script>
|
|
|
24 |
</head>
|
|
|
25 |
<body id="top">
|
|
|
26 |
<header class="phpdocumentor-header phpdocumentor-section">
|
|
|
27 |
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
|
|
|
28 |
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
|
|
|
29 |
<label class="phpdocumentor-header__menu-icon" for="menu-button">
|
|
|
30 |
<i class="fas fa-bars"></i>
|
|
|
31 |
</label>
|
|
|
32 |
<section data-search-form class="phpdocumentor-search">
|
|
|
33 |
<label>
|
|
|
34 |
<span class="visually-hidden">Search for</span>
|
|
|
35 |
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
36 |
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
|
|
|
37 |
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
|
|
|
38 |
</svg>
|
|
|
39 |
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
|
|
|
40 |
</label>
|
|
|
41 |
</section>
|
|
|
42 |
|
|
|
43 |
<nav class="phpdocumentor-topnav">
|
|
|
44 |
<ul class="phpdocumentor-topnav__menu">
|
|
|
45 |
</ul>
|
|
|
46 |
</nav>
|
|
|
47 |
</header>
|
|
|
48 |
|
|
|
49 |
<main class="phpdocumentor">
|
|
|
50 |
<div class="phpdocumentor-section">
|
|
|
51 |
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
|
|
|
52 |
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
|
|
|
53 |
Menu
|
|
|
54 |
</label>
|
|
|
55 |
<aside class="phpdocumentor-column -four phpdocumentor-sidebar">
|
|
|
56 |
|
|
|
57 |
<section class="phpdocumentor-sidebar__category">
|
|
|
58 |
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
|
|
|
59 |
</section>
|
|
|
60 |
|
|
|
61 |
<section class="phpdocumentor-sidebar__category">
|
|
|
62 |
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
|
|
|
63 |
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/Application.html"><abbr title="\Application">Application</abbr></a></h3>
|
|
|
64 |
</section>
|
|
|
65 |
|
|
|
66 |
<section class="phpdocumentor-sidebar__category">
|
|
|
67 |
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
|
|
|
68 |
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
|
|
|
69 |
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
|
|
|
70 |
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
|
|
|
71 |
</section>
|
|
|
72 |
|
|
|
73 |
<section class="phpdocumentor-sidebar__category">
|
|
|
74 |
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
|
|
|
75 |
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
|
|
|
76 |
</section>
|
|
|
77 |
</aside>
|
|
|
78 |
|
|
|
79 |
<div class="phpdocumentor-column -eight phpdocumentor-content">
|
|
|
80 |
<ul class="phpdocumentor-breadcrumbs">
|
|
|
81 |
<li><a href="">Home</a></li>
|
|
|
82 |
</ul>
|
|
|
83 |
|
|
|
84 |
<div class="phpdocumentor-row">
|
|
|
85 |
<h2 class="phpdocumentor-content__title">Markers</h2>
|
|
|
86 |
|
|
|
87 |
<h3>Table of Contents</h3>
|
|
|
88 |
<table class="phpdocumentor-table_of_contents">
|
|
|
89 |
<tr>
|
|
|
90 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersInitDB.php">examples/UsersInitDB.php</a></td>
|
|
|
91 |
<td class="phpdocumentor-cell">11</td>
|
|
|
92 |
</tr>
|
|
|
93 |
<tr>
|
|
|
94 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersPermissionsInitDB.php">examples/UsersPermissionsInitDB.php</a></td>
|
|
|
95 |
<td class="phpdocumentor-cell">11</td>
|
|
|
96 |
</tr>
|
|
|
97 |
<tr>
|
|
|
98 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersPermissionsTestExtended.php">examples/UsersPermissionsTestExtended.php</a></td>
|
|
|
99 |
<td class="phpdocumentor-cell">17</td>
|
|
|
100 |
</tr>
|
|
|
101 |
<tr>
|
|
|
102 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersTest.php">examples/UsersTest.php</a></td>
|
|
|
103 |
<td class="phpdocumentor-cell">7</td>
|
|
|
104 |
</tr>
|
|
|
105 |
<tr>
|
|
|
106 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersTestExtended.php">examples/UsersTestExtended.php</a></td>
|
|
|
107 |
<td class="phpdocumentor-cell">16</td>
|
|
|
108 |
</tr>
|
|
|
109 |
<tr>
|
|
|
110 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#Users.class.php">Users.class.php</a></td>
|
|
|
111 |
<td class="phpdocumentor-cell">40</td>
|
|
|
112 |
</tr>
|
|
|
113 |
<tr>
|
|
|
114 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersDataSourceMySQLi.class.php">UsersDataSourceMySQLi.class.php</a></td>
|
|
|
115 |
<td class="phpdocumentor-cell">28</td>
|
|
|
116 |
</tr>
|
|
|
117 |
<tr>
|
|
|
118 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersPermissions.class.php">UsersPermissions.class.php</a></td>
|
|
|
119 |
<td class="phpdocumentor-cell">8</td>
|
|
|
120 |
</tr>
|
|
|
121 |
<tr>
|
|
|
122 |
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersPermissionsDataSourceMySQLi.class.php">UsersPermissionsDataSourceMySQLi.class.php</a></td>
|
|
|
123 |
<td class="phpdocumentor-cell">22</td>
|
|
|
124 |
</tr>
|
|
|
125 |
</table>
|
|
|
126 |
|
|
|
127 |
<a id="examples/UsersInitDB.php"></a>
|
|
|
128 |
<h3><abbr title="examples/UsersInitDB.php">UsersInitDB.php</abbr></h3>
|
|
|
129 |
<table>
|
|
|
130 |
<thead>
|
|
|
131 |
<tr>
|
|
|
132 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
133 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
134 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
135 |
</tr>
|
|
|
136 |
</thead>
|
|
|
137 |
<tbody>
|
|
|
138 |
<tr>
|
|
|
139 |
<td class="phpdocumentor-cell"></td>
|
|
|
140 |
<td class="phpdocumentor-cell">21</td>
|
|
|
141 |
<td class="phpdocumentor-cell">For Users class</td>
|
|
|
142 |
</tr>
|
|
|
143 |
<tr>
|
|
|
144 |
<td class="phpdocumentor-cell"></td>
|
|
|
145 |
<td class="phpdocumentor-cell">22</td>
|
|
|
146 |
<td class="phpdocumentor-cell">this will be the display label on the form</td>
|
|
|
147 |
</tr>
|
|
|
148 |
<tr>
|
|
|
149 |
<td class="phpdocumentor-cell"></td>
|
|
|
150 |
<td class="phpdocumentor-cell">24</td>
|
|
|
151 |
<td class="phpdocumentor-cell">the input type to use for data entry</td>
|
|
|
152 |
</tr>
|
|
|
153 |
<tr>
|
|
|
154 |
<td class="phpdocumentor-cell"></td>
|
|
|
155 |
<td class="phpdocumentor-cell">26</td>
|
|
|
156 |
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
|
|
|
157 |
</tr>
|
|
|
158 |
<tr>
|
|
|
159 |
<td class="phpdocumentor-cell"></td>
|
|
|
160 |
<td class="phpdocumentor-cell">27</td>
|
|
|
161 |
<td class="phpdocumentor-cell">else' record</td>
|
|
|
162 |
</tr>
|
|
|
163 |
<tr>
|
|
|
164 |
<td class="phpdocumentor-cell"></td>
|
|
|
165 |
<td class="phpdocumentor-cell">29</td>
|
|
|
166 |
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
|
|
|
167 |
</tr>
|
|
|
168 |
<tr>
|
|
|
169 |
<td class="phpdocumentor-cell"></td>
|
|
|
170 |
<td class="phpdocumentor-cell">31</td>
|
|
|
171 |
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
|
|
|
172 |
</tr>
|
|
|
173 |
<tr>
|
|
|
174 |
<td class="phpdocumentor-cell"></td>
|
|
|
175 |
<td class="phpdocumentor-cell">33</td>
|
|
|
176 |
<td class="phpdocumentor-cell">for Data Source</td>
|
|
|
177 |
</tr>
|
|
|
178 |
<tr>
|
|
|
179 |
<td class="phpdocumentor-cell"></td>
|
|
|
180 |
<td class="phpdocumentor-cell">35</td>
|
|
|
181 |
<td class="phpdocumentor-cell">actual mySQL column type</td>
|
|
|
182 |
</tr>
|
|
|
183 |
<tr>
|
|
|
184 |
<td class="phpdocumentor-cell"></td>
|
|
|
185 |
<td class="phpdocumentor-cell">37</td>
|
|
|
186 |
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
|
|
|
187 |
</tr>
|
|
|
188 |
<tr>
|
|
|
189 |
<td class="phpdocumentor-cell"></td>
|
|
|
190 |
<td class="phpdocumentor-cell">39</td>
|
|
|
191 |
<td class="phpdocumentor-cell">set a default value</td>
|
|
|
192 |
</tr>
|
|
|
193 |
</tbody>
|
|
|
194 |
</table>
|
|
|
195 |
<a id="examples/UsersPermissionsInitDB.php"></a>
|
|
|
196 |
<h3><abbr title="examples/UsersPermissionsInitDB.php">UsersPermissionsInitDB.php</abbr></h3>
|
|
|
197 |
<table>
|
|
|
198 |
<thead>
|
|
|
199 |
<tr>
|
|
|
200 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
201 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
202 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
203 |
</tr>
|
|
|
204 |
</thead>
|
|
|
205 |
<tbody>
|
|
|
206 |
<tr>
|
|
|
207 |
<td class="phpdocumentor-cell"></td>
|
|
|
208 |
<td class="phpdocumentor-cell">20</td>
|
|
|
209 |
<td class="phpdocumentor-cell">For Users class</td>
|
|
|
210 |
</tr>
|
|
|
211 |
<tr>
|
|
|
212 |
<td class="phpdocumentor-cell"></td>
|
|
|
213 |
<td class="phpdocumentor-cell">21</td>
|
|
|
214 |
<td class="phpdocumentor-cell">this will be the display label on the form</td>
|
|
|
215 |
</tr>
|
|
|
216 |
<tr>
|
|
|
217 |
<td class="phpdocumentor-cell"></td>
|
|
|
218 |
<td class="phpdocumentor-cell">23</td>
|
|
|
219 |
<td class="phpdocumentor-cell">the input type to use for data entry</td>
|
|
|
220 |
</tr>
|
|
|
221 |
<tr>
|
|
|
222 |
<td class="phpdocumentor-cell"></td>
|
|
|
223 |
<td class="phpdocumentor-cell">25</td>
|
|
|
224 |
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
|
|
|
225 |
</tr>
|
|
|
226 |
<tr>
|
|
|
227 |
<td class="phpdocumentor-cell"></td>
|
|
|
228 |
<td class="phpdocumentor-cell">26</td>
|
|
|
229 |
<td class="phpdocumentor-cell">else' record</td>
|
|
|
230 |
</tr>
|
|
|
231 |
<tr>
|
|
|
232 |
<td class="phpdocumentor-cell"></td>
|
|
|
233 |
<td class="phpdocumentor-cell">28</td>
|
|
|
234 |
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
|
|
|
235 |
</tr>
|
|
|
236 |
<tr>
|
|
|
237 |
<td class="phpdocumentor-cell"></td>
|
|
|
238 |
<td class="phpdocumentor-cell">30</td>
|
|
|
239 |
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
|
|
|
240 |
</tr>
|
|
|
241 |
<tr>
|
|
|
242 |
<td class="phpdocumentor-cell"></td>
|
|
|
243 |
<td class="phpdocumentor-cell">32</td>
|
|
|
244 |
<td class="phpdocumentor-cell">for Data Source</td>
|
|
|
245 |
</tr>
|
|
|
246 |
<tr>
|
|
|
247 |
<td class="phpdocumentor-cell"></td>
|
|
|
248 |
<td class="phpdocumentor-cell">34</td>
|
|
|
249 |
<td class="phpdocumentor-cell">actual mySQL column type</td>
|
|
|
250 |
</tr>
|
|
|
251 |
<tr>
|
|
|
252 |
<td class="phpdocumentor-cell"></td>
|
|
|
253 |
<td class="phpdocumentor-cell">36</td>
|
|
|
254 |
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
|
|
|
255 |
</tr>
|
|
|
256 |
<tr>
|
|
|
257 |
<td class="phpdocumentor-cell"></td>
|
|
|
258 |
<td class="phpdocumentor-cell">38</td>
|
|
|
259 |
<td class="phpdocumentor-cell">set a default value</td>
|
|
|
260 |
</tr>
|
|
|
261 |
</tbody>
|
|
|
262 |
</table>
|
|
|
263 |
<a id="examples/UsersPermissionsTestExtended.php"></a>
|
|
|
264 |
<h3><abbr title="examples/UsersPermissionsTestExtended.php">UsersPermissionsTestExtended.php</abbr></h3>
|
|
|
265 |
<table>
|
|
|
266 |
<thead>
|
|
|
267 |
<tr>
|
|
|
268 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
269 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
270 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
271 |
</tr>
|
|
|
272 |
</thead>
|
|
|
273 |
<tbody>
|
|
|
274 |
<tr>
|
|
|
275 |
<td class="phpdocumentor-cell"></td>
|
|
|
276 |
<td class="phpdocumentor-cell">6</td>
|
|
|
277 |
<td class="phpdocumentor-cell">session_destroy(); die;</td>
|
|
|
278 |
</tr>
|
|
|
279 |
<tr>
|
|
|
280 |
<td class="phpdocumentor-cell"></td>
|
|
|
281 |
<td class="phpdocumentor-cell">31</td>
|
|
|
282 |
<td class="phpdocumentor-cell">For Users class</td>
|
|
|
283 |
</tr>
|
|
|
284 |
<tr>
|
|
|
285 |
<td class="phpdocumentor-cell"></td>
|
|
|
286 |
<td class="phpdocumentor-cell">32</td>
|
|
|
287 |
<td class="phpdocumentor-cell">this will be the display label on the form</td>
|
|
|
288 |
</tr>
|
|
|
289 |
<tr>
|
|
|
290 |
<td class="phpdocumentor-cell"></td>
|
|
|
291 |
<td class="phpdocumentor-cell">34</td>
|
|
|
292 |
<td class="phpdocumentor-cell">the input type to use for data entry</td>
|
|
|
293 |
</tr>
|
|
|
294 |
<tr>
|
|
|
295 |
<td class="phpdocumentor-cell"></td>
|
|
|
296 |
<td class="phpdocumentor-cell">36</td>
|
|
|
297 |
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
|
|
|
298 |
</tr>
|
|
|
299 |
<tr>
|
|
|
300 |
<td class="phpdocumentor-cell"></td>
|
|
|
301 |
<td class="phpdocumentor-cell">37</td>
|
|
|
302 |
<td class="phpdocumentor-cell">else' record</td>
|
|
|
303 |
</tr>
|
|
|
304 |
<tr>
|
|
|
305 |
<td class="phpdocumentor-cell"></td>
|
|
|
306 |
<td class="phpdocumentor-cell">39</td>
|
|
|
307 |
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
|
|
|
308 |
</tr>
|
|
|
309 |
<tr>
|
|
|
310 |
<td class="phpdocumentor-cell"></td>
|
|
|
311 |
<td class="phpdocumentor-cell">41</td>
|
|
|
312 |
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
|
|
|
313 |
</tr>
|
|
|
314 |
<tr>
|
|
|
315 |
<td class="phpdocumentor-cell"></td>
|
|
|
316 |
<td class="phpdocumentor-cell">43</td>
|
|
|
317 |
<td class="phpdocumentor-cell">for Data Source</td>
|
|
|
318 |
</tr>
|
|
|
319 |
<tr>
|
|
|
320 |
<td class="phpdocumentor-cell"></td>
|
|
|
321 |
<td class="phpdocumentor-cell">45</td>
|
|
|
322 |
<td class="phpdocumentor-cell">actual mySQL column type</td>
|
|
|
323 |
</tr>
|
|
|
324 |
<tr>
|
|
|
325 |
<td class="phpdocumentor-cell"></td>
|
|
|
326 |
<td class="phpdocumentor-cell">47</td>
|
|
|
327 |
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
|
|
|
328 |
</tr>
|
|
|
329 |
<tr>
|
|
|
330 |
<td class="phpdocumentor-cell"></td>
|
|
|
331 |
<td class="phpdocumentor-cell">66</td>
|
|
|
332 |
<td class="phpdocumentor-cell">Pass the same custom fields to the Users class</td>
|
|
|
333 |
</tr>
|
|
|
334 |
<tr>
|
|
|
335 |
<td class="phpdocumentor-cell"></td>
|
|
|
336 |
<td class="phpdocumentor-cell">70</td>
|
|
|
337 |
<td class="phpdocumentor-cell">check if the user has request a log out.</td>
|
|
|
338 |
</tr>
|
|
|
339 |
<tr>
|
|
|
340 |
<td class="phpdocumentor-cell"></td>
|
|
|
341 |
<td class="phpdocumentor-cell">84</td>
|
|
|
342 |
<td class="phpdocumentor-cell">if ( isset( $_SESSION['user'] ) ) print_r( $_SESSION['user']->data() ); ?></pre></td>
|
|
|
343 |
</tr>
|
|
|
344 |
<tr>
|
|
|
345 |
<td class="phpdocumentor-cell"></td>
|
|
|
346 |
<td class="phpdocumentor-cell">88</td>
|
|
|
347 |
<td class="phpdocumentor-cell">only used when we need to log in, empty otherwise</td>
|
|
|
348 |
</tr>
|
|
|
349 |
<tr>
|
|
|
350 |
<td class="phpdocumentor-cell"></td>
|
|
|
351 |
<td class="phpdocumentor-cell">96</td>
|
|
|
352 |
<td class="phpdocumentor-cell">build a little menu</td>
|
|
|
353 |
</tr>
|
|
|
354 |
<tr>
|
|
|
355 |
<td class="phpdocumentor-cell"></td>
|
|
|
356 |
<td class="phpdocumentor-cell">107</td>
|
|
|
357 |
<td class="phpdocumentor-cell">this only displays something if doAdmin is set</td>
|
|
|
358 |
</tr>
|
|
|
359 |
</tbody>
|
|
|
360 |
</table>
|
|
|
361 |
<a id="examples/UsersTest.php"></a>
|
|
|
362 |
<h3><abbr title="examples/UsersTest.php">UsersTest.php</abbr></h3>
|
|
|
363 |
<table>
|
|
|
364 |
<thead>
|
|
|
365 |
<tr>
|
|
|
366 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
367 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
368 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
369 |
</tr>
|
|
|
370 |
</thead>
|
|
|
371 |
<tbody>
|
|
|
372 |
<tr>
|
|
|
373 |
<td class="phpdocumentor-cell"></td>
|
|
|
374 |
<td class="phpdocumentor-cell">6</td>
|
|
|
375 |
<td class="phpdocumentor-cell">session_destroy(); die;</td>
|
|
|
376 |
</tr>
|
|
|
377 |
<tr>
|
|
|
378 |
<td class="phpdocumentor-cell"></td>
|
|
|
379 |
<td class="phpdocumentor-cell">7</td>
|
|
|
380 |
<td class="phpdocumentor-cell">make a connection to the database</td>
|
|
|
381 |
</tr>
|
|
|
382 |
<tr>
|
|
|
383 |
<td class="phpdocumentor-cell"></td>
|
|
|
384 |
<td class="phpdocumentor-cell">10</td>
|
|
|
385 |
<td class="phpdocumentor-cell">create a data source</td>
|
|
|
386 |
</tr>
|
|
|
387 |
<tr>
|
|
|
388 |
<td class="phpdocumentor-cell"></td>
|
|
|
389 |
<td class="phpdocumentor-cell">12</td>
|
|
|
390 |
<td class="phpdocumentor-cell">check if table exists and, if not, create it with username admin, password admin</td>
|
|
|
391 |
</tr>
|
|
|
392 |
<tr>
|
|
|
393 |
<td class="phpdocumentor-cell"></td>
|
|
|
394 |
<td class="phpdocumentor-cell">24</td>
|
|
|
395 |
<td class="phpdocumentor-cell">create an empty Users instance and save it in the session</td>
|
|
|
396 |
</tr>
|
|
|
397 |
<tr>
|
|
|
398 |
<td class="phpdocumentor-cell"></td>
|
|
|
399 |
<td class="phpdocumentor-cell">28</td>
|
|
|
400 |
<td class="phpdocumentor-cell">if they asked to log out, log out</td>
|
|
|
401 |
</tr>
|
|
|
402 |
<tr>
|
|
|
403 |
<td class="phpdocumentor-cell"></td>
|
|
|
404 |
<td class="phpdocumentor-cell">45</td>
|
|
|
405 |
<td class="phpdocumentor-cell">displays/processes login page if needed, empty otherwise</td>
|
|
|
406 |
</tr>
|
|
|
407 |
</tbody>
|
|
|
408 |
</table>
|
|
|
409 |
<a id="examples/UsersTestExtended.php"></a>
|
|
|
410 |
<h3><abbr title="examples/UsersTestExtended.php">UsersTestExtended.php</abbr></h3>
|
|
|
411 |
<table>
|
|
|
412 |
<thead>
|
|
|
413 |
<tr>
|
|
|
414 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
415 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
416 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
417 |
</tr>
|
|
|
418 |
</thead>
|
|
|
419 |
<tbody>
|
|
|
420 |
<tr>
|
|
|
421 |
<td class="phpdocumentor-cell"></td>
|
|
|
422 |
<td class="phpdocumentor-cell">6</td>
|
|
|
423 |
<td class="phpdocumentor-cell">session_destroy(); die;</td>
|
|
|
424 |
</tr>
|
|
|
425 |
<tr>
|
|
|
426 |
<td class="phpdocumentor-cell"></td>
|
|
|
427 |
<td class="phpdocumentor-cell">31</td>
|
|
|
428 |
<td class="phpdocumentor-cell">For Users class</td>
|
|
|
429 |
</tr>
|
|
|
430 |
<tr>
|
|
|
431 |
<td class="phpdocumentor-cell"></td>
|
|
|
432 |
<td class="phpdocumentor-cell">32</td>
|
|
|
433 |
<td class="phpdocumentor-cell">this will be the display label on the form</td>
|
|
|
434 |
</tr>
|
|
|
435 |
<tr>
|
|
|
436 |
<td class="phpdocumentor-cell"></td>
|
|
|
437 |
<td class="phpdocumentor-cell">34</td>
|
|
|
438 |
<td class="phpdocumentor-cell">the input type to use for data entry</td>
|
|
|
439 |
</tr>
|
|
|
440 |
<tr>
|
|
|
441 |
<td class="phpdocumentor-cell"></td>
|
|
|
442 |
<td class="phpdocumentor-cell">36</td>
|
|
|
443 |
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
|
|
|
444 |
</tr>
|
|
|
445 |
<tr>
|
|
|
446 |
<td class="phpdocumentor-cell"></td>
|
|
|
447 |
<td class="phpdocumentor-cell">37</td>
|
|
|
448 |
<td class="phpdocumentor-cell">else' record</td>
|
|
|
449 |
</tr>
|
|
|
450 |
<tr>
|
|
|
451 |
<td class="phpdocumentor-cell"></td>
|
|
|
452 |
<td class="phpdocumentor-cell">39</td>
|
|
|
453 |
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
|
|
|
454 |
</tr>
|
|
|
455 |
<tr>
|
|
|
456 |
<td class="phpdocumentor-cell"></td>
|
|
|
457 |
<td class="phpdocumentor-cell">41</td>
|
|
|
458 |
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
|
|
|
459 |
</tr>
|
|
|
460 |
<tr>
|
|
|
461 |
<td class="phpdocumentor-cell"></td>
|
|
|
462 |
<td class="phpdocumentor-cell">43</td>
|
|
|
463 |
<td class="phpdocumentor-cell">for Data Source</td>
|
|
|
464 |
</tr>
|
|
|
465 |
<tr>
|
|
|
466 |
<td class="phpdocumentor-cell"></td>
|
|
|
467 |
<td class="phpdocumentor-cell">45</td>
|
|
|
468 |
<td class="phpdocumentor-cell">actual mySQL column type</td>
|
|
|
469 |
</tr>
|
|
|
470 |
<tr>
|
|
|
471 |
<td class="phpdocumentor-cell"></td>
|
|
|
472 |
<td class="phpdocumentor-cell">47</td>
|
|
|
473 |
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
|
|
|
474 |
</tr>
|
|
|
475 |
<tr>
|
|
|
476 |
<td class="phpdocumentor-cell"></td>
|
|
|
477 |
<td class="phpdocumentor-cell">66</td>
|
|
|
478 |
<td class="phpdocumentor-cell">Pass the same custom fields to the Users class</td>
|
|
|
479 |
</tr>
|
|
|
480 |
<tr>
|
|
|
481 |
<td class="phpdocumentor-cell"></td>
|
|
|
482 |
<td class="phpdocumentor-cell">70</td>
|
|
|
483 |
<td class="phpdocumentor-cell">check if the user has request a log out.</td>
|
|
|
484 |
</tr>
|
|
|
485 |
<tr>
|
|
|
486 |
<td class="phpdocumentor-cell"></td>
|
|
|
487 |
<td class="phpdocumentor-cell">86</td>
|
|
|
488 |
<td class="phpdocumentor-cell">only used when we need to log in, empty otherwise</td>
|
|
|
489 |
</tr>
|
|
|
490 |
<tr>
|
|
|
491 |
<td class="phpdocumentor-cell"></td>
|
|
|
492 |
<td class="phpdocumentor-cell">94</td>
|
|
|
493 |
<td class="phpdocumentor-cell">build a little menu</td>
|
|
|
494 |
</tr>
|
|
|
495 |
<tr>
|
|
|
496 |
<td class="phpdocumentor-cell"></td>
|
|
|
497 |
<td class="phpdocumentor-cell">105</td>
|
|
|
498 |
<td class="phpdocumentor-cell">this only displays something if doAdmin is set</td>
|
|
|
499 |
</tr>
|
|
|
500 |
</tbody>
|
|
|
501 |
</table>
|
|
|
502 |
<a id="Users.class.php"></a>
|
|
|
503 |
<h3><abbr title="Users.class.php">Users.class.php</abbr></h3>
|
|
|
504 |
<table>
|
|
|
505 |
<thead>
|
|
|
506 |
<tr>
|
|
|
507 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
508 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
509 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
510 |
</tr>
|
|
|
511 |
</thead>
|
|
|
512 |
<tbody>
|
|
|
513 |
<tr>
|
|
|
514 |
<td class="phpdocumentor-cell"></td>
|
|
|
515 |
<td class="phpdocumentor-cell">82</td>
|
|
|
516 |
<td class="phpdocumentor-cell">prefix the name with this in a form</td>
|
|
|
517 |
</tr>
|
|
|
518 |
<tr>
|
|
|
519 |
<td class="phpdocumentor-cell"></td>
|
|
|
520 |
<td class="phpdocumentor-cell">85</td>
|
|
|
521 |
<td class="phpdocumentor-cell">table name for user records</td>
|
|
|
522 |
</tr>
|
|
|
523 |
<tr>
|
|
|
524 |
<td class="phpdocumentor-cell"></td>
|
|
|
525 |
<td class="phpdocumentor-cell">86</td>
|
|
|
526 |
<td class="phpdocumentor-cell">ID column name</td>
|
|
|
527 |
</tr>
|
|
|
528 |
<tr>
|
|
|
529 |
<td class="phpdocumentor-cell"></td>
|
|
|
530 |
<td class="phpdocumentor-cell">87</td>
|
|
|
531 |
<td class="phpdocumentor-cell">fields which are displayed to select</td>
|
|
|
532 |
</tr>
|
|
|
533 |
<tr>
|
|
|
534 |
<td class="phpdocumentor-cell"></td>
|
|
|
535 |
<td class="phpdocumentor-cell">90</td>
|
|
|
536 |
<td class="phpdocumentor-cell">field to test if form submitted</td>
|
|
|
537 |
</tr>
|
|
|
538 |
<tr>
|
|
|
539 |
<td class="phpdocumentor-cell"></td>
|
|
|
540 |
<td class="phpdocumentor-cell">93</td>
|
|
|
541 |
<td class="phpdocumentor-cell">login name column name</td>
|
|
|
542 |
</tr>
|
|
|
543 |
<tr>
|
|
|
544 |
<td class="phpdocumentor-cell"></td>
|
|
|
545 |
<td class="phpdocumentor-cell">101</td>
|
|
|
546 |
<td class="phpdocumentor-cell">password column name</td>
|
|
|
547 |
</tr>
|
|
|
548 |
<tr>
|
|
|
549 |
<td class="phpdocumentor-cell"></td>
|
|
|
550 |
<td class="phpdocumentor-cell">118</td>
|
|
|
551 |
<td class="phpdocumentor-cell">fields</td>
|
|
|
552 |
</tr>
|
|
|
553 |
<tr>
|
|
|
554 |
<td class="phpdocumentor-cell"></td>
|
|
|
555 |
<td class="phpdocumentor-cell">119</td>
|
|
|
556 |
<td class="phpdocumentor-cell">table users</td>
|
|
|
557 |
</tr>
|
|
|
558 |
<tr>
|
|
|
559 |
<td class="phpdocumentor-cell"></td>
|
|
|
560 |
<td class="phpdocumentor-cell">120</td>
|
|
|
561 |
<td class="phpdocumentor-cell">tables</td>
|
|
|
562 |
</tr>
|
|
|
563 |
<tr>
|
|
|
564 |
<td class="phpdocumentor-cell"></td>
|
|
|
565 |
<td class="phpdocumentor-cell">142</td>
|
|
|
566 |
<td class="phpdocumentor-cell">constructor</td>
|
|
|
567 |
</tr>
|
|
|
568 |
<tr>
|
|
|
569 |
<td class="phpdocumentor-cell"></td>
|
|
|
570 |
<td class="phpdocumentor-cell">234</td>
|
|
|
571 |
<td class="phpdocumentor-cell">validate</td>
|
|
|
572 |
</tr>
|
|
|
573 |
<tr>
|
|
|
574 |
<td class="phpdocumentor-cell"></td>
|
|
|
575 |
<td class="phpdocumentor-cell">252</td>
|
|
|
576 |
<td class="phpdocumentor-cell">don't do ourselves</td>
|
|
|
577 |
</tr>
|
|
|
578 |
<tr>
|
|
|
579 |
<td class="phpdocumentor-cell"></td>
|
|
|
580 |
<td class="phpdocumentor-cell">257</td>
|
|
|
581 |
<td class="phpdocumentor-cell">wrap in ul, then put a div around it</td>
|
|
|
582 |
</tr>
|
|
|
583 |
<tr>
|
|
|
584 |
<td class="phpdocumentor-cell"></td>
|
|
|
585 |
<td class="phpdocumentor-cell">356</td>
|
|
|
586 |
<td class="phpdocumentor-cell">boolean is set by checkboxes</td>
|
|
|
587 |
</tr>
|
|
|
588 |
<tr>
|
|
|
589 |
<td class="phpdocumentor-cell"></td>
|
|
|
590 |
<td class="phpdocumentor-cell">359</td>
|
|
|
591 |
<td class="phpdocumentor-cell">case</td>
|
|
|
592 |
</tr>
|
|
|
593 |
<tr>
|
|
|
594 |
<td class="phpdocumentor-cell"></td>
|
|
|
595 |
<td class="phpdocumentor-cell">362</td>
|
|
|
596 |
<td class="phpdocumentor-cell">makeHTMLField</td>
|
|
|
597 |
</tr>
|
|
|
598 |
<tr>
|
|
|
599 |
<td class="phpdocumentor-cell"></td>
|
|
|
600 |
<td class="phpdocumentor-cell">384</td>
|
|
|
601 |
<td class="phpdocumentor-cell">if this field is restricted and we are not admin, just skip it</td>
|
|
|
602 |
</tr>
|
|
|
603 |
<tr>
|
|
|
604 |
<td class="phpdocumentor-cell"></td>
|
|
|
605 |
<td class="phpdocumentor-cell">385</td>
|
|
|
606 |
<td class="phpdocumentor-cell">also skip if it is our record</td>
|
|
|
607 |
</tr>
|
|
|
608 |
<tr>
|
|
|
609 |
<td class="phpdocumentor-cell"></td>
|
|
|
610 |
<td class="phpdocumentor-cell">388</td>
|
|
|
611 |
<td class="phpdocumentor-cell">now process the field</td>
|
|
|
612 |
</tr>
|
|
|
613 |
<tr>
|
|
|
614 |
<td class="phpdocumentor-cell"></td>
|
|
|
615 |
<td class="phpdocumentor-cell">392</td>
|
|
|
616 |
<td class="phpdocumentor-cell">editScreen</td>
|
|
|
617 |
</tr>
|
|
|
618 |
<tr>
|
|
|
619 |
<td class="phpdocumentor-cell"></td>
|
|
|
620 |
<td class="phpdocumentor-cell">417</td>
|
|
|
621 |
<td class="phpdocumentor-cell">else</td>
|
|
|
622 |
</tr>
|
|
|
623 |
<tr>
|
|
|
624 |
<td class="phpdocumentor-cell"></td>
|
|
|
625 |
<td class="phpdocumentor-cell">418</td>
|
|
|
626 |
<td class="phpdocumentor-cell">foreach</td>
|
|
|
627 |
</tr>
|
|
|
628 |
<tr>
|
|
|
629 |
<td class="phpdocumentor-cell"></td>
|
|
|
630 |
<td class="phpdocumentor-cell">425</td>
|
|
|
631 |
<td class="phpdocumentor-cell">if this field is restricted it is our record, skip it</td>
|
|
|
632 |
</tr>
|
|
|
633 |
<tr>
|
|
|
634 |
<td class="phpdocumentor-cell"></td>
|
|
|
635 |
<td class="phpdocumentor-cell">444</td>
|
|
|
636 |
<td class="phpdocumentor-cell">text, textarea, other things like this</td>
|
|
|
637 |
</tr>
|
|
|
638 |
<tr>
|
|
|
639 |
<td class="phpdocumentor-cell"></td>
|
|
|
640 |
<td class="phpdocumentor-cell">453</td>
|
|
|
641 |
<td class="phpdocumentor-cell">switch</td>
|
|
|
642 |
</tr>
|
|
|
643 |
<tr>
|
|
|
644 |
<td class="phpdocumentor-cell"></td>
|
|
|
645 |
<td class="phpdocumentor-cell">454</td>
|
|
|
646 |
<td class="phpdocumentor-cell">foreach</td>
|
|
|
647 |
</tr>
|
|
|
648 |
<tr>
|
|
|
649 |
<td class="phpdocumentor-cell"></td>
|
|
|
650 |
<td class="phpdocumentor-cell">455</td>
|
|
|
651 |
<td class="phpdocumentor-cell">we have some errors</td>
|
|
|
652 |
</tr>
|
|
|
653 |
<tr>
|
|
|
654 |
<td class="phpdocumentor-cell"></td>
|
|
|
655 |
<td class="phpdocumentor-cell">468</td>
|
|
|
656 |
<td class="phpdocumentor-cell">we're working on ourself</td>
|
|
|
657 |
</tr>
|
|
|
658 |
<tr>
|
|
|
659 |
<td class="phpdocumentor-cell"></td>
|
|
|
660 |
<td class="phpdocumentor-cell">470</td>
|
|
|
661 |
<td class="phpdocumentor-cell">a new user</td>
|
|
|
662 |
</tr>
|
|
|
663 |
<tr>
|
|
|
664 |
<td class="phpdocumentor-cell"></td>
|
|
|
665 |
<td class="phpdocumentor-cell">472</td>
|
|
|
666 |
<td class="phpdocumentor-cell">this is an existing user</td>
|
|
|
667 |
</tr>
|
|
|
668 |
<tr>
|
|
|
669 |
<td class="phpdocumentor-cell"></td>
|
|
|
670 |
<td class="phpdocumentor-cell">475</td>
|
|
|
671 |
<td class="phpdocumentor-cell">initWorkingOn</td>
|
|
|
672 |
</tr>
|
|
|
673 |
<tr>
|
|
|
674 |
<td class="phpdocumentor-cell"></td>
|
|
|
675 |
<td class="phpdocumentor-cell">520</td>
|
|
|
676 |
<td class="phpdocumentor-cell">display screen for data entry</td>
|
|
|
677 |
</tr>
|
|
|
678 |
<tr>
|
|
|
679 |
<td class="phpdocumentor-cell"></td>
|
|
|
680 |
<td class="phpdocumentor-cell">521</td>
|
|
|
681 |
<td class="phpdocumentor-cell">$return[] = 'Initializing $workingOn';</td>
|
|
|
682 |
</tr>
|
|
|
683 |
<tr>
|
|
|
684 |
<td class="phpdocumentor-cell"></td>
|
|
|
685 |
<td class="phpdocumentor-cell">523</td>
|
|
|
686 |
<td class="phpdocumentor-cell">$return[] = "<pre>WorkingOn\n" . print_r( $this->workingOn, true) . '</pre>';</td>
|
|
|
687 |
</tr>
|
|
|
688 |
<tr>
|
|
|
689 |
<td class="phpdocumentor-cell"></td>
|
|
|
690 |
<td class="phpdocumentor-cell">532</td>
|
|
|
691 |
<td class="phpdocumentor-cell">they submitted the form</td>
|
|
|
692 |
</tr>
|
|
|
693 |
<tr>
|
|
|
694 |
<td class="phpdocumentor-cell"></td>
|
|
|
695 |
<td class="phpdocumentor-cell">533</td>
|
|
|
696 |
<td class="phpdocumentor-cell">$return[] = 'Posting';</td>
|
|
|
697 |
</tr>
|
|
|
698 |
<tr>
|
|
|
699 |
<td class="phpdocumentor-cell"></td>
|
|
|
700 |
<td class="phpdocumentor-cell">536</td>
|
|
|
701 |
<td class="phpdocumentor-cell">we just updated us, reload record</td>
|
|
|
702 |
</tr>
|
|
|
703 |
<tr>
|
|
|
704 |
<td class="phpdocumentor-cell"></td>
|
|
|
705 |
<td class="phpdocumentor-cell">544</td>
|
|
|
706 |
<td class="phpdocumentor-cell">admin</td>
|
|
|
707 |
</tr>
|
|
|
708 |
<tr>
|
|
|
709 |
<td class="phpdocumentor-cell"></td>
|
|
|
710 |
<td class="phpdocumentor-cell">546</td>
|
|
|
711 |
<td class="phpdocumentor-cell">class Users</td>
|
|
|
712 |
</tr>
|
|
|
713 |
</tbody>
|
|
|
714 |
</table>
|
|
|
715 |
<a id="UsersDataSourceMySQLi.class.php"></a>
|
|
|
716 |
<h3><abbr title="UsersDataSourceMySQLi.class.php">UsersDataSourceMySQLi.class.php</abbr></h3>
|
|
|
717 |
<table>
|
|
|
718 |
<thead>
|
|
|
719 |
<tr>
|
|
|
720 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
721 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
722 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
723 |
</tr>
|
|
|
724 |
</thead>
|
|
|
725 |
<tbody>
|
|
|
726 |
<tr>
|
|
|
727 |
<td class="phpdocumentor-cell"></td>
|
|
|
728 |
<td class="phpdocumentor-cell">75</td>
|
|
|
729 |
<td class="phpdocumentor-cell">table name for user records</td>
|
|
|
730 |
</tr>
|
|
|
731 |
<tr>
|
|
|
732 |
<td class="phpdocumentor-cell"></td>
|
|
|
733 |
<td class="phpdocumentor-cell">76</td>
|
|
|
734 |
<td class="phpdocumentor-cell">ID column name</td>
|
|
|
735 |
</tr>
|
|
|
736 |
<tr>
|
|
|
737 |
<td class="phpdocumentor-cell"></td>
|
|
|
738 |
<td class="phpdocumentor-cell">77</td>
|
|
|
739 |
<td class="phpdocumentor-cell">fields which are displayed to select</td>
|
|
|
740 |
</tr>
|
|
|
741 |
<tr>
|
|
|
742 |
<td class="phpdocumentor-cell"></td>
|
|
|
743 |
<td class="phpdocumentor-cell">80</td>
|
|
|
744 |
<td class="phpdocumentor-cell">These fields are stored encrypted</td>
|
|
|
745 |
</tr>
|
|
|
746 |
<tr>
|
|
|
747 |
<td class="phpdocumentor-cell"></td>
|
|
|
748 |
<td class="phpdocumentor-cell">85</td>
|
|
|
749 |
<td class="phpdocumentor-cell">login name column name</td>
|
|
|
750 |
</tr>
|
|
|
751 |
<tr>
|
|
|
752 |
<td class="phpdocumentor-cell"></td>
|
|
|
753 |
<td class="phpdocumentor-cell">92</td>
|
|
|
754 |
<td class="phpdocumentor-cell">password column name</td>
|
|
|
755 |
</tr>
|
|
|
756 |
<tr>
|
|
|
757 |
<td class="phpdocumentor-cell"></td>
|
|
|
758 |
<td class="phpdocumentor-cell">133</td>
|
|
|
759 |
<td class="phpdocumentor-cell">they sent us some login values</td>
|
|
|
760 |
</tr>
|
|
|
761 |
<tr>
|
|
|
762 |
<td class="phpdocumentor-cell"></td>
|
|
|
763 |
<td class="phpdocumentor-cell">176</td>
|
|
|
764 |
<td class="phpdocumentor-cell">always get the ID field</td>
|
|
|
765 |
</tr>
|
|
|
766 |
<tr>
|
|
|
767 |
<td class="phpdocumentor-cell"></td>
|
|
|
768 |
<td class="phpdocumentor-cell">178</td>
|
|
|
769 |
<td class="phpdocumentor-cell">Get the rest of the available fields</td>
|
|
|
770 |
</tr>
|
|
|
771 |
<tr>
|
|
|
772 |
<td class="phpdocumentor-cell"></td>
|
|
|
773 |
<td class="phpdocumentor-cell">180</td>
|
|
|
774 |
<td class="phpdocumentor-cell">do not use this one if $fieldList doesn't have it</td>
|
|
|
775 |
</tr>
|
|
|
776 |
<tr>
|
|
|
777 |
<td class="phpdocumentor-cell"></td>
|
|
|
778 |
<td class="phpdocumentor-cell">184</td>
|
|
|
779 |
<td class="phpdocumentor-cell">Change it into something SQL can handle</td>
|
|
|
780 |
</tr>
|
|
|
781 |
<tr>
|
|
|
782 |
<td class="phpdocumentor-cell"></td>
|
|
|
783 |
<td class="phpdocumentor-cell">186</td>
|
|
|
784 |
<td class="phpdocumentor-cell">now, build the rest of the query</td>
|
|
|
785 |
</tr>
|
|
|
786 |
<tr>
|
|
|
787 |
<td class="phpdocumentor-cell"></td>
|
|
|
788 |
<td class="phpdocumentor-cell">216</td>
|
|
|
789 |
<td class="phpdocumentor-cell">run the query, placing value in $result</td>
|
|
|
790 |
</tr>
|
|
|
791 |
<tr>
|
|
|
792 |
<td class="phpdocumentor-cell"></td>
|
|
|
793 |
<td class="phpdocumentor-cell">219</td>
|
|
|
794 |
<td class="phpdocumentor-cell">got one, so return it</td>
|
|
|
795 |
</tr>
|
|
|
796 |
<tr>
|
|
|
797 |
<td class="phpdocumentor-cell"></td>
|
|
|
798 |
<td class="phpdocumentor-cell">222</td>
|
|
|
799 |
<td class="phpdocumentor-cell">WTFO? nothing, so return empty array</td>
|
|
|
800 |
</tr>
|
|
|
801 |
<tr>
|
|
|
802 |
<td class="phpdocumentor-cell"></td>
|
|
|
803 |
<td class="phpdocumentor-cell">303</td>
|
|
|
804 |
<td class="phpdocumentor-cell">foreach table</td>
|
|
|
805 |
</tr>
|
|
|
806 |
<tr>
|
|
|
807 |
<td class="phpdocumentor-cell"></td>
|
|
|
808 |
<td class="phpdocumentor-cell">304</td>
|
|
|
809 |
<td class="phpdocumentor-cell">buildTable</td>
|
|
|
810 |
</tr>
|
|
|
811 |
<tr>
|
|
|
812 |
<td class="phpdocumentor-cell"></td>
|
|
|
813 |
<td class="phpdocumentor-cell">348</td>
|
|
|
814 |
<td class="phpdocumentor-cell">just return the table name</td>
|
|
|
815 |
</tr>
|
|
|
816 |
<tr>
|
|
|
817 |
<td class="phpdocumentor-cell"></td>
|
|
|
818 |
<td class="phpdocumentor-cell">350</td>
|
|
|
819 |
<td class="phpdocumentor-cell">looking for the index</td>
|
|
|
820 |
</tr>
|
|
|
821 |
<tr>
|
|
|
822 |
<td class="phpdocumentor-cell"></td>
|
|
|
823 |
<td class="phpdocumentor-cell">352</td>
|
|
|
824 |
<td class="phpdocumentor-cell">return the column name</td>
|
|
|
825 |
</tr>
|
|
|
826 |
<tr>
|
|
|
827 |
<td class="phpdocumentor-cell"></td>
|
|
|
828 |
<td class="phpdocumentor-cell">370</td>
|
|
|
829 |
<td class="phpdocumentor-cell">test</td>
|
|
|
830 |
</tr>
|
|
|
831 |
<tr>
|
|
|
832 |
<td class="phpdocumentor-cell"></td>
|
|
|
833 |
<td class="phpdocumentor-cell">384</td>
|
|
|
834 |
<td class="phpdocumentor-cell">make sure they sent us something</td>
|
|
|
835 |
</tr>
|
|
|
836 |
<tr>
|
|
|
837 |
<td class="phpdocumentor-cell"></td>
|
|
|
838 |
<td class="phpdocumentor-cell">385</td>
|
|
|
839 |
<td class="phpdocumentor-cell">we are doing an update</td>
|
|
|
840 |
</tr>
|
|
|
841 |
<tr>
|
|
|
842 |
<td class="phpdocumentor-cell"></td>
|
|
|
843 |
<td class="phpdocumentor-cell">390</td>
|
|
|
844 |
<td class="phpdocumentor-cell">if</td>
|
|
|
845 |
</tr>
|
|
|
846 |
<tr>
|
|
|
847 |
<td class="phpdocumentor-cell"></td>
|
|
|
848 |
<td class="phpdocumentor-cell">396</td>
|
|
|
849 |
<td class="phpdocumentor-cell">we are doing an insert</td>
|
|
|
850 |
</tr>
|
|
|
851 |
<tr>
|
|
|
852 |
<td class="phpdocumentor-cell"></td>
|
|
|
853 |
<td class="phpdocumentor-cell">403</td>
|
|
|
854 |
<td class="phpdocumentor-cell">if</td>
|
|
|
855 |
</tr>
|
|
|
856 |
<tr>
|
|
|
857 |
<td class="phpdocumentor-cell"></td>
|
|
|
858 |
<td class="phpdocumentor-cell">411</td>
|
|
|
859 |
<td class="phpdocumentor-cell">update</td>
|
|
|
860 |
</tr>
|
|
|
861 |
<tr>
|
|
|
862 |
<td class="phpdocumentor-cell"></td>
|
|
|
863 |
<td class="phpdocumentor-cell">422</td>
|
|
|
864 |
<td class="phpdocumentor-cell">print "<p>$query</p>\n";</td>
|
|
|
865 |
</tr>
|
|
|
866 |
</tbody>
|
|
|
867 |
</table>
|
|
|
868 |
<a id="UsersPermissions.class.php"></a>
|
|
|
869 |
<h3><abbr title="UsersPermissions.class.php">UsersPermissions.class.php</abbr></h3>
|
|
|
870 |
<table>
|
|
|
871 |
<thead>
|
|
|
872 |
<tr>
|
|
|
873 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
874 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
875 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
876 |
</tr>
|
|
|
877 |
</thead>
|
|
|
878 |
<tbody>
|
|
|
879 |
<tr>
|
|
|
880 |
<td class="phpdocumentor-cell"></td>
|
|
|
881 |
<td class="phpdocumentor-cell">29</td>
|
|
|
882 |
<td class="phpdocumentor-cell">Let's make sure we have the Users class loaded.</td>
|
|
|
883 |
</tr>
|
|
|
884 |
<tr>
|
|
|
885 |
<td class="phpdocumentor-cell"></td>
|
|
|
886 |
<td class="phpdocumentor-cell">64</td>
|
|
|
887 |
<td class="phpdocumentor-cell">constructor</td>
|
|
|
888 |
</tr>
|
|
|
889 |
<tr>
|
|
|
890 |
<td class="phpdocumentor-cell"></td>
|
|
|
891 |
<td class="phpdocumentor-cell">134</td>
|
|
|
892 |
<td class="phpdocumentor-cell">now we process all of the permissions</td>
|
|
|
893 |
</tr>
|
|
|
894 |
<tr>
|
|
|
895 |
<td class="phpdocumentor-cell"></td>
|
|
|
896 |
<td class="phpdocumentor-cell">141</td>
|
|
|
897 |
<td class="phpdocumentor-cell">if a new user, the permission is whatever is in the form</td>
|
|
|
898 |
</tr>
|
|
|
899 |
<tr>
|
|
|
900 |
<td class="phpdocumentor-cell"></td>
|
|
|
901 |
<td class="phpdocumentor-cell">144</td>
|
|
|
902 |
<td class="phpdocumentor-cell">otherwise, if it is not a new user, only do an update if it has changed</td>
|
|
|
903 |
</tr>
|
|
|
904 |
<tr>
|
|
|
905 |
<td class="phpdocumentor-cell"></td>
|
|
|
906 |
<td class="phpdocumentor-cell">148</td>
|
|
|
907 |
<td class="phpdocumentor-cell">foreach</td>
|
|
|
908 |
</tr>
|
|
|
909 |
<tr>
|
|
|
910 |
<td class="phpdocumentor-cell"></td>
|
|
|
911 |
<td class="phpdocumentor-cell">150</td>
|
|
|
912 |
<td class="phpdocumentor-cell">if not an error</td>
|
|
|
913 |
</tr>
|
|
|
914 |
<tr>
|
|
|
915 |
<td class="phpdocumentor-cell"></td>
|
|
|
916 |
<td class="phpdocumentor-cell">152</td>
|
|
|
917 |
<td class="phpdocumentor-cell">addEdit</td>
|
|
|
918 |
</tr>
|
|
|
919 |
</tbody>
|
|
|
920 |
</table>
|
|
|
921 |
<a id="UsersPermissionsDataSourceMySQLi.class.php"></a>
|
|
|
922 |
<h3><abbr title="UsersPermissionsDataSourceMySQLi.class.php">UsersPermissionsDataSourceMySQLi.class.php</abbr></h3>
|
|
|
923 |
<table>
|
|
|
924 |
<thead>
|
|
|
925 |
<tr>
|
|
|
926 |
<th class="phpdocumentor-heading">Type</th>
|
|
|
927 |
<th class="phpdocumentor-heading">Line</th>
|
|
|
928 |
<th class="phpdocumentor-heading">Description</th>
|
|
|
929 |
</tr>
|
|
|
930 |
</thead>
|
|
|
931 |
<tbody>
|
|
|
932 |
<tr>
|
|
|
933 |
<td class="phpdocumentor-cell"></td>
|
|
|
934 |
<td class="phpdocumentor-cell">89</td>
|
|
|
935 |
<td class="phpdocumentor-cell">table name for user records</td>
|
|
|
936 |
</tr>
|
|
|
937 |
<tr>
|
|
|
938 |
<td class="phpdocumentor-cell"></td>
|
|
|
939 |
<td class="phpdocumentor-cell">90</td>
|
|
|
940 |
<td class="phpdocumentor-cell">ID column name</td>
|
|
|
941 |
</tr>
|
|
|
942 |
<tr>
|
|
|
943 |
<td class="phpdocumentor-cell"></td>
|
|
|
944 |
<td class="phpdocumentor-cell">91</td>
|
|
|
945 |
<td class="phpdocumentor-cell">fields which are displayed to select</td>
|
|
|
946 |
</tr>
|
|
|
947 |
<tr>
|
|
|
948 |
<td class="phpdocumentor-cell"></td>
|
|
|
949 |
<td class="phpdocumentor-cell">103</td>
|
|
|
950 |
<td class="phpdocumentor-cell">permissions categories table</td>
|
|
|
951 |
</tr>
|
|
|
952 |
<tr>
|
|
|
953 |
<td class="phpdocumentor-cell"></td>
|
|
|
954 |
<td class="phpdocumentor-cell">105</td>
|
|
|
955 |
<td class="phpdocumentor-cell">table name for user records</td>
|
|
|
956 |
</tr>
|
|
|
957 |
<tr>
|
|
|
958 |
<td class="phpdocumentor-cell"></td>
|
|
|
959 |
<td class="phpdocumentor-cell">106</td>
|
|
|
960 |
<td class="phpdocumentor-cell">ID column name</td>
|
|
|
961 |
</tr>
|
|
|
962 |
<tr>
|
|
|
963 |
<td class="phpdocumentor-cell"></td>
|
|
|
964 |
<td class="phpdocumentor-cell">107</td>
|
|
|
965 |
<td class="phpdocumentor-cell">fields which are displayed to select</td>
|
|
|
966 |
</tr>
|
|
|
967 |
<tr>
|
|
|
968 |
<td class="phpdocumentor-cell"></td>
|
|
|
969 |
<td class="phpdocumentor-cell">135</td>
|
|
|
970 |
<td class="phpdocumentor-cell">permissions table</td>
|
|
|
971 |
</tr>
|
|
|
972 |
<tr>
|
|
|
973 |
<td class="phpdocumentor-cell"></td>
|
|
|
974 |
<td class="phpdocumentor-cell">137</td>
|
|
|
975 |
<td class="phpdocumentor-cell">table name for user records</td>
|
|
|
976 |
</tr>
|
|
|
977 |
<tr>
|
|
|
978 |
<td class="phpdocumentor-cell"></td>
|
|
|
979 |
<td class="phpdocumentor-cell">138</td>
|
|
|
980 |
<td class="phpdocumentor-cell">ID column name</td>
|
|
|
981 |
</tr>
|
|
|
982 |
<tr>
|
|
|
983 |
<td class="phpdocumentor-cell"></td>
|
|
|
984 |
<td class="phpdocumentor-cell">158</td>
|
|
|
985 |
<td class="phpdocumentor-cell">users permissions table</td>
|
|
|
986 |
</tr>
|
|
|
987 |
<tr>
|
|
|
988 |
<td class="phpdocumentor-cell"></td>
|
|
|
989 |
<td class="phpdocumentor-cell">164</td>
|
|
|
990 |
<td class="phpdocumentor-cell">users permissions view</td>
|
|
|
991 |
</tr>
|
|
|
992 |
<tr>
|
|
|
993 |
<td class="phpdocumentor-cell"></td>
|
|
|
994 |
<td class="phpdocumentor-cell">170</td>
|
|
|
995 |
<td class="phpdocumentor-cell">constructor</td>
|
|
|
996 |
</tr>
|
|
|
997 |
<tr>
|
|
|
998 |
<td class="phpdocumentor-cell"></td>
|
|
|
999 |
<td class="phpdocumentor-cell">182</td>
|
|
|
1000 |
<td class="phpdocumentor-cell">add a unique constraint on users permissions for user id and permission id</td>
|
|
|
1001 |
</tr>
|
|
|
1002 |
<tr>
|
|
|
1003 |
<td class="phpdocumentor-cell"></td>
|
|
|
1004 |
<td class="phpdocumentor-cell">183</td>
|
|
|
1005 |
<td class="phpdocumentor-cell">we do it this way since there is no way to do it automagically</td>
|
|
|
1006 |
</tr>
|
|
|
1007 |
<tr>
|
|
|
1008 |
<td class="phpdocumentor-cell"></td>
|
|
|
1009 |
<td class="phpdocumentor-cell">184</td>
|
|
|
1010 |
<td class="phpdocumentor-cell">without rewriting the $configuration code</td>
|
|
|
1011 |
</tr>
|
|
|
1012 |
<tr>
|
|
|
1013 |
<td class="phpdocumentor-cell"></td>
|
|
|
1014 |
<td class="phpdocumentor-cell">191</td>
|
|
|
1015 |
<td class="phpdocumentor-cell">create a convenience view</td>
|
|
|
1016 |
</tr>
|
|
|
1017 |
<tr>
|
|
|
1018 |
<td class="phpdocumentor-cell"></td>
|
|
|
1019 |
<td class="phpdocumentor-cell">250</td>
|
|
|
1020 |
<td class="phpdocumentor-cell">we did not find the category, so add it</td>
|
|
|
1021 |
</tr>
|
|
|
1022 |
<tr>
|
|
|
1023 |
<td class="phpdocumentor-cell"></td>
|
|
|
1024 |
<td class="phpdocumentor-cell">263</td>
|
|
|
1025 |
<td class="phpdocumentor-cell">if category not found</td>
|
|
|
1026 |
</tr>
|
|
|
1027 |
<tr>
|
|
|
1028 |
<td class="phpdocumentor-cell"></td>
|
|
|
1029 |
<td class="phpdocumentor-cell">282</td>
|
|
|
1030 |
<td class="phpdocumentor-cell">addPermission</td>
|
|
|
1031 |
</tr>
|
|
|
1032 |
<tr>
|
|
|
1033 |
<td class="phpdocumentor-cell"></td>
|
|
|
1034 |
<td class="phpdocumentor-cell">338</td>
|
|
|
1035 |
<td class="phpdocumentor-cell">setUsersPermissions</td>
|
|
|
1036 |
</tr>
|
|
|
1037 |
<tr>
|
|
|
1038 |
<td class="phpdocumentor-cell"></td>
|
|
|
1039 |
<td class="phpdocumentor-cell">433</td>
|
|
|
1040 |
<td class="phpdocumentor-cell">update</td>
|
|
|
1041 |
</tr>
|
|
|
1042 |
</tbody>
|
|
|
1043 |
</table>
|
|
|
1044 |
</div>
|
|
|
1045 |
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
|
|
|
1046 |
<section class="phpdocumentor-search-results__dialog">
|
|
|
1047 |
<header class="phpdocumentor-search-results__header">
|
|
|
1048 |
<h2 class="phpdocumentor-search-results__title">Search results</h2>
|
|
|
1049 |
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
|
|
|
1050 |
</header>
|
|
|
1051 |
<section class="phpdocumentor-search-results__body">
|
|
|
1052 |
<ul class="phpdocumentor-search-results__entries"></ul>
|
|
|
1053 |
</section>
|
|
|
1054 |
</section>
|
|
|
1055 |
</section>
|
|
|
1056 |
</div>
|
|
|
1057 |
</div>
|
|
|
1058 |
<a href="reports/markers.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
|
|
|
1059 |
|
|
|
1060 |
</main>
|
|
|
1061 |
|
|
|
1062 |
<script>
|
|
|
1063 |
cssVars({});
|
|
|
1064 |
</script>
|
|
|
1065 |
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
|
|
|
1066 |
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
|
|
|
1067 |
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
|
|
|
1068 |
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
|
|
|
1069 |
</body>
|
|
|
1070 |
</html>
|