Blame | Last modification | View Log | Download | RSS feed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Documentation » Markers
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="../">
<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/template.css">
<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" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
<script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
<script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
<script src="js/search.js"></script>
<script defer src="js/searchIndex.js"></script>
</head>
<body id="top">
<header class="phpdocumentor-header phpdocumentor-section">
<h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
<input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
<label class="phpdocumentor-header__menu-icon" for="menu-button">
<i class="fas fa-bars"></i>
</label>
<section data-search-form class="phpdocumentor-search">
<label>
<span class="visually-hidden">Search for</span>
<svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
<line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
</svg>
<input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
</label>
</section>
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
</ul>
</nav>
</header>
<main class="phpdocumentor">
<div class="phpdocumentor-section">
<input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
<label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
Menu
</label>
<aside class="phpdocumentor-column -four phpdocumentor-sidebar">
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="packages/Application.html"><abbr title="\Application">Application</abbr></a></h3>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
<h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>
<section class="phpdocumentor-sidebar__category">
<h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
<h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
</aside>
<div class="phpdocumentor-column -eight phpdocumentor-content">
<ul class="phpdocumentor-breadcrumbs">
<li><a href="">Home</a></li>
</ul>
<div class="phpdocumentor-row">
<h2 class="phpdocumentor-content__title">Markers</h2>
<h3>Table of Contents</h3>
<table class="phpdocumentor-table_of_contents">
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersInitDB.php">examples/UsersInitDB.php</a></td>
<td class="phpdocumentor-cell">11</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersPermissionsInitDB.php">examples/UsersPermissionsInitDB.php</a></td>
<td class="phpdocumentor-cell">11</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersPermissionsTestExtended.php">examples/UsersPermissionsTestExtended.php</a></td>
<td class="phpdocumentor-cell">17</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersTest.php">examples/UsersTest.php</a></td>
<td class="phpdocumentor-cell">7</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#examples/UsersTestExtended.php">examples/UsersTestExtended.php</a></td>
<td class="phpdocumentor-cell">16</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#Users.class.php">Users.class.php</a></td>
<td class="phpdocumentor-cell">40</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersDataSourceMySQLi.class.php">UsersDataSourceMySQLi.class.php</a></td>
<td class="phpdocumentor-cell">28</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersPermissions.class.php">UsersPermissions.class.php</a></td>
<td class="phpdocumentor-cell">8</td>
</tr>
<tr>
<td class="phpdocumentor-cell"><a href="reports/markers.html#UsersPermissionsDataSourceMySQLi.class.php">UsersPermissionsDataSourceMySQLi.class.php</a></td>
<td class="phpdocumentor-cell">22</td>
</tr>
</table>
<a id="examples/UsersInitDB.php"></a>
<h3><abbr title="examples/UsersInitDB.php">UsersInitDB.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">21</td>
<td class="phpdocumentor-cell">For Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">22</td>
<td class="phpdocumentor-cell">this will be the display label on the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">24</td>
<td class="phpdocumentor-cell">the input type to use for data entry</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">26</td>
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">27</td>
<td class="phpdocumentor-cell">else' record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">29</td>
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">31</td>
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">33</td>
<td class="phpdocumentor-cell">for Data Source</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">35</td>
<td class="phpdocumentor-cell">actual mySQL column type</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">37</td>
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">39</td>
<td class="phpdocumentor-cell">set a default value</td>
</tr>
</tbody>
</table>
<a id="examples/UsersPermissionsInitDB.php"></a>
<h3><abbr title="examples/UsersPermissionsInitDB.php">UsersPermissionsInitDB.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">20</td>
<td class="phpdocumentor-cell">For Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">21</td>
<td class="phpdocumentor-cell">this will be the display label on the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">23</td>
<td class="phpdocumentor-cell">the input type to use for data entry</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">25</td>
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">26</td>
<td class="phpdocumentor-cell">else' record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">28</td>
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">30</td>
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">32</td>
<td class="phpdocumentor-cell">for Data Source</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">34</td>
<td class="phpdocumentor-cell">actual mySQL column type</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">36</td>
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">38</td>
<td class="phpdocumentor-cell">set a default value</td>
</tr>
</tbody>
</table>
<a id="examples/UsersPermissionsTestExtended.php"></a>
<h3><abbr title="examples/UsersPermissionsTestExtended.php">UsersPermissionsTestExtended.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">6</td>
<td class="phpdocumentor-cell">session_destroy(); die;</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">31</td>
<td class="phpdocumentor-cell">For Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">32</td>
<td class="phpdocumentor-cell">this will be the display label on the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">34</td>
<td class="phpdocumentor-cell">the input type to use for data entry</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">36</td>
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">37</td>
<td class="phpdocumentor-cell">else' record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">39</td>
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">41</td>
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">43</td>
<td class="phpdocumentor-cell">for Data Source</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">45</td>
<td class="phpdocumentor-cell">actual mySQL column type</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">47</td>
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">66</td>
<td class="phpdocumentor-cell">Pass the same custom fields to the Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">70</td>
<td class="phpdocumentor-cell">check if the user has request a log out.</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">84</td>
<td class="phpdocumentor-cell">if ( isset( $_SESSION['user'] ) ) print_r( $_SESSION['user']->data() ); ?></pre></td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">88</td>
<td class="phpdocumentor-cell">only used when we need to log in, empty otherwise</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">96</td>
<td class="phpdocumentor-cell">build a little menu</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">107</td>
<td class="phpdocumentor-cell">this only displays something if doAdmin is set</td>
</tr>
</tbody>
</table>
<a id="examples/UsersTest.php"></a>
<h3><abbr title="examples/UsersTest.php">UsersTest.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">6</td>
<td class="phpdocumentor-cell">session_destroy(); die;</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">7</td>
<td class="phpdocumentor-cell">make a connection to the database</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">10</td>
<td class="phpdocumentor-cell">create a data source</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">12</td>
<td class="phpdocumentor-cell">check if table exists and, if not, create it with username admin, password admin</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">24</td>
<td class="phpdocumentor-cell">create an empty Users instance and save it in the session</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">28</td>
<td class="phpdocumentor-cell">if they asked to log out, log out</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">45</td>
<td class="phpdocumentor-cell">displays/processes login page if needed, empty otherwise</td>
</tr>
</tbody>
</table>
<a id="examples/UsersTestExtended.php"></a>
<h3><abbr title="examples/UsersTestExtended.php">UsersTestExtended.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">6</td>
<td class="phpdocumentor-cell">session_destroy(); die;</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">31</td>
<td class="phpdocumentor-cell">For Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">32</td>
<td class="phpdocumentor-cell">this will be the display label on the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">34</td>
<td class="phpdocumentor-cell">the input type to use for data entry</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">36</td>
<td class="phpdocumentor-cell">you can only edit this if an admin and changing someone</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">37</td>
<td class="phpdocumentor-cell">else' record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">39</td>
<td class="phpdocumentor-cell">will be displayed on a hover in HTML5 (ie, title=)</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">41</td>
<td class="phpdocumentor-cell">this is entered in an empty box, ie placeholder=</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">43</td>
<td class="phpdocumentor-cell">for Data Source</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">45</td>
<td class="phpdocumentor-cell">actual mySQL column type</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">47</td>
<td class="phpdocumentor-cell">set it to not null if we build the table ourselves</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">66</td>
<td class="phpdocumentor-cell">Pass the same custom fields to the Users class</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">70</td>
<td class="phpdocumentor-cell">check if the user has request a log out.</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">86</td>
<td class="phpdocumentor-cell">only used when we need to log in, empty otherwise</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">94</td>
<td class="phpdocumentor-cell">build a little menu</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">105</td>
<td class="phpdocumentor-cell">this only displays something if doAdmin is set</td>
</tr>
</tbody>
</table>
<a id="Users.class.php"></a>
<h3><abbr title="Users.class.php">Users.class.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">82</td>
<td class="phpdocumentor-cell">prefix the name with this in a form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">85</td>
<td class="phpdocumentor-cell">table name for user records</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">86</td>
<td class="phpdocumentor-cell">ID column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">87</td>
<td class="phpdocumentor-cell">fields which are displayed to select</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">90</td>
<td class="phpdocumentor-cell">field to test if form submitted</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">93</td>
<td class="phpdocumentor-cell">login name column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">101</td>
<td class="phpdocumentor-cell">password column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">118</td>
<td class="phpdocumentor-cell">fields</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">119</td>
<td class="phpdocumentor-cell">table users</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">120</td>
<td class="phpdocumentor-cell">tables</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">142</td>
<td class="phpdocumentor-cell">constructor</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">234</td>
<td class="phpdocumentor-cell">validate</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">252</td>
<td class="phpdocumentor-cell">don't do ourselves</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">257</td>
<td class="phpdocumentor-cell">wrap in ul, then put a div around it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">356</td>
<td class="phpdocumentor-cell">boolean is set by checkboxes</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">359</td>
<td class="phpdocumentor-cell">case</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">362</td>
<td class="phpdocumentor-cell">makeHTMLField</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">384</td>
<td class="phpdocumentor-cell">if this field is restricted and we are not admin, just skip it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">385</td>
<td class="phpdocumentor-cell">also skip if it is our record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">388</td>
<td class="phpdocumentor-cell">now process the field</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">392</td>
<td class="phpdocumentor-cell">editScreen</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">417</td>
<td class="phpdocumentor-cell">else</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">418</td>
<td class="phpdocumentor-cell">foreach</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">425</td>
<td class="phpdocumentor-cell">if this field is restricted it is our record, skip it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">444</td>
<td class="phpdocumentor-cell">text, textarea, other things like this</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">453</td>
<td class="phpdocumentor-cell">switch</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">454</td>
<td class="phpdocumentor-cell">foreach</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">455</td>
<td class="phpdocumentor-cell">we have some errors</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">468</td>
<td class="phpdocumentor-cell">we're working on ourself</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">470</td>
<td class="phpdocumentor-cell">a new user</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">472</td>
<td class="phpdocumentor-cell">this is an existing user</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">475</td>
<td class="phpdocumentor-cell">initWorkingOn</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">520</td>
<td class="phpdocumentor-cell">display screen for data entry</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">521</td>
<td class="phpdocumentor-cell">$return[] = 'Initializing $workingOn';</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">523</td>
<td class="phpdocumentor-cell">$return[] = "<pre>WorkingOn\n" . print_r( $this->workingOn, true) . '</pre>';</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">532</td>
<td class="phpdocumentor-cell">they submitted the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">533</td>
<td class="phpdocumentor-cell">$return[] = 'Posting';</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">536</td>
<td class="phpdocumentor-cell">we just updated us, reload record</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">544</td>
<td class="phpdocumentor-cell">admin</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">546</td>
<td class="phpdocumentor-cell">class Users</td>
</tr>
</tbody>
</table>
<a id="UsersDataSourceMySQLi.class.php"></a>
<h3><abbr title="UsersDataSourceMySQLi.class.php">UsersDataSourceMySQLi.class.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">75</td>
<td class="phpdocumentor-cell">table name for user records</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">76</td>
<td class="phpdocumentor-cell">ID column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">77</td>
<td class="phpdocumentor-cell">fields which are displayed to select</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">80</td>
<td class="phpdocumentor-cell">These fields are stored encrypted</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">85</td>
<td class="phpdocumentor-cell">login name column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">92</td>
<td class="phpdocumentor-cell">password column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">133</td>
<td class="phpdocumentor-cell">they sent us some login values</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">176</td>
<td class="phpdocumentor-cell">always get the ID field</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">178</td>
<td class="phpdocumentor-cell">Get the rest of the available fields</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">180</td>
<td class="phpdocumentor-cell">do not use this one if $fieldList doesn't have it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">184</td>
<td class="phpdocumentor-cell">Change it into something SQL can handle</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">186</td>
<td class="phpdocumentor-cell">now, build the rest of the query</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">216</td>
<td class="phpdocumentor-cell">run the query, placing value in $result</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">219</td>
<td class="phpdocumentor-cell">got one, so return it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">222</td>
<td class="phpdocumentor-cell">WTFO? nothing, so return empty array</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">303</td>
<td class="phpdocumentor-cell">foreach table</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">304</td>
<td class="phpdocumentor-cell">buildTable</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">348</td>
<td class="phpdocumentor-cell">just return the table name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">350</td>
<td class="phpdocumentor-cell">looking for the index</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">352</td>
<td class="phpdocumentor-cell">return the column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">370</td>
<td class="phpdocumentor-cell">test</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">384</td>
<td class="phpdocumentor-cell">make sure they sent us something</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">385</td>
<td class="phpdocumentor-cell">we are doing an update</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">390</td>
<td class="phpdocumentor-cell">if</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">396</td>
<td class="phpdocumentor-cell">we are doing an insert</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">403</td>
<td class="phpdocumentor-cell">if</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">411</td>
<td class="phpdocumentor-cell">update</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">422</td>
<td class="phpdocumentor-cell">print "<p>$query</p>\n";</td>
</tr>
</tbody>
</table>
<a id="UsersPermissions.class.php"></a>
<h3><abbr title="UsersPermissions.class.php">UsersPermissions.class.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">29</td>
<td class="phpdocumentor-cell">Let's make sure we have the Users class loaded.</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">64</td>
<td class="phpdocumentor-cell">constructor</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">134</td>
<td class="phpdocumentor-cell">now we process all of the permissions</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">141</td>
<td class="phpdocumentor-cell">if a new user, the permission is whatever is in the form</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">144</td>
<td class="phpdocumentor-cell">otherwise, if it is not a new user, only do an update if it has changed</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">148</td>
<td class="phpdocumentor-cell">foreach</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">150</td>
<td class="phpdocumentor-cell">if not an error</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">152</td>
<td class="phpdocumentor-cell">addEdit</td>
</tr>
</tbody>
</table>
<a id="UsersPermissionsDataSourceMySQLi.class.php"></a>
<h3><abbr title="UsersPermissionsDataSourceMySQLi.class.php">UsersPermissionsDataSourceMySQLi.class.php</abbr></h3>
<table>
<thead>
<tr>
<th class="phpdocumentor-heading">Type</th>
<th class="phpdocumentor-heading">Line</th>
<th class="phpdocumentor-heading">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">89</td>
<td class="phpdocumentor-cell">table name for user records</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">90</td>
<td class="phpdocumentor-cell">ID column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">91</td>
<td class="phpdocumentor-cell">fields which are displayed to select</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">103</td>
<td class="phpdocumentor-cell">permissions categories table</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">105</td>
<td class="phpdocumentor-cell">table name for user records</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">106</td>
<td class="phpdocumentor-cell">ID column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">107</td>
<td class="phpdocumentor-cell">fields which are displayed to select</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">135</td>
<td class="phpdocumentor-cell">permissions table</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">137</td>
<td class="phpdocumentor-cell">table name for user records</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">138</td>
<td class="phpdocumentor-cell">ID column name</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">158</td>
<td class="phpdocumentor-cell">users permissions table</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">164</td>
<td class="phpdocumentor-cell">users permissions view</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">170</td>
<td class="phpdocumentor-cell">constructor</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">182</td>
<td class="phpdocumentor-cell">add a unique constraint on users permissions for user id and permission id</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">183</td>
<td class="phpdocumentor-cell">we do it this way since there is no way to do it automagically</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">184</td>
<td class="phpdocumentor-cell">without rewriting the $configuration code</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">191</td>
<td class="phpdocumentor-cell">create a convenience view</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">250</td>
<td class="phpdocumentor-cell">we did not find the category, so add it</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">263</td>
<td class="phpdocumentor-cell">if category not found</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">282</td>
<td class="phpdocumentor-cell">addPermission</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">338</td>
<td class="phpdocumentor-cell">setUsersPermissions</td>
</tr>
<tr>
<td class="phpdocumentor-cell"></td>
<td class="phpdocumentor-cell">433</td>
<td class="phpdocumentor-cell">update</td>
</tr>
</tbody>
</table>
</div>
<section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
<header class="phpdocumentor-search-results__header">
<h2 class="phpdocumentor-search-results__title">Search results</h2>
<button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
</header>
<section class="phpdocumentor-search-results__body">
<ul class="phpdocumentor-search-results__entries"></ul>
</section>
</section>
</section>
</div>
</div>
<a href="reports/markers.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
</main>
<script>
cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
</body>
</html>