easyappointments/doc/code/js/SecretariesHelper.html
2015-01-21 23:17:16 +01:00

1363 lines
No EOL
16 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: SecretariesHelper</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: SecretariesHelper</h1>
<section>
<header>
<h2>
SecretariesHelper
</h2>
</header>
<article>
<div class="container-overview">
<h2>Constructor</h2>
<h4 class="name" id="SecretariesHelper"><span class="type-signature"></span>new SecretariesHelper<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
This class contains the Secretaries helper class declaration, along with the "Secretaries"
tab event handlers. By deviding the backend/users tab functionality into separate files
it is easier to maintain the code.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line1">line 1</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="bindEventHandlers"><span class="type-signature"></span>bindEventHandlers<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Bind the event handlers for the backend/users "Secretaries" tab.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line15">line 15</a>
</li></ul></dd>
</dl>
<h4 class="name" id="delete"><span class="type-signature"></span>delete<span class="signature">(id)</span><span class="type-signature"></span></h4>
<div class="description">
Delete a secretary record from database.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type">int</span>
</td>
<td class="description last">Record id to be deleted.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line202">line 202</a>
</li></ul></dd>
</dl>
<h4 class="name" id="display"><span class="type-signature"></span>display<span class="signature">(secretary)</span><span class="type-signature"></span></h4>
<div class="description">
Display a secretary record into the admin form.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>secretary</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">Contains the secretary record data.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line300">line 300</a>
</li></ul></dd>
</dl>
<h4 class="name" id="filter"><span class="type-signature"></span>filter<span class="signature">(key, selectId, display)</span><span class="type-signature"></span></h4>
<div class="description">
Filters secretary records depending a string key.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">This is used to filter the secretary records of the database.</td>
</tr>
<tr>
<td class="name"><code>selectId</code></td>
<td class="type">
<span class="param-type">numeric</span>
</td>
<td class="description last">(OPTIONAL = undefined) If provided then the given id will be
selected in the filter results (only selected, not displayed).</td>
</tr>
<tr>
<td class="name"><code>display</code></td>
<td class="type">
<span class="param-type">bool</span>
</td>
<td class="description last">(OPTIONAL = false)</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line338">line 338</a>
</li></ul></dd>
</dl>
<h4 class="name" id="getFilterHtml"><span class="type-signature"></span>getFilterHtml<span class="signature">(secretary)</span><span class="type-signature"> &rarr; {string}</span></h4>
<div class="description">
Get an secretary row html code that is going to be displayed on the filter results list.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>secretary</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">Contains the secretary record data.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line377">line 377</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
The html code that represents the record on the filter results list.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">string</span>
</dd>
</dl>
<h4 class="name" id="resetForm"><span class="type-signature"></span>resetForm<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Resets the admin tab form back to its initial state.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line276">line 276</a>
</li></ul></dd>
</dl>
<h4 class="name" id="save"><span class="type-signature"></span>save<span class="signature">(secretary)</span><span class="type-signature"></span></h4>
<div class="description">
Save secretary record to database.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>secretary</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">Contains the admin record data. If an 'id' value is provided
then the update operation is going to be executed.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line177">line 177</a>
</li></ul></dd>
</dl>
<h4 class="name" id="select"><span class="type-signature"></span>select<span class="signature">(id, display)</span><span class="type-signature"></span></h4>
<div class="description">
Select a specific record from the current filter results. If the secretary id does not exist
in the list then no record will be selected.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type">numeric</span>
</td>
<td class="description last">The record id to be selected from the filter results.</td>
</tr>
<tr>
<td class="name"><code>display</code></td>
<td class="type">
<span class="param-type">bool</span>
</td>
<td class="description last">(OPTIONAL = false) If true then the method will display the record
on the form.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line402">line 402</a>
</li></ul></dd>
</dl>
<h4 class="name" id="validate"><span class="type-signature"></span>validate<span class="signature">(secretary)</span><span class="type-signature"> &rarr; {bool}</span></h4>
<div class="description">
Validates a secretary record.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>secretary</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last">Contains the admin data to be validated.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="backend_users_secretaries.js.html">backend_users_secretaries.js</a>, <a href="backend_users_secretaries.js.html#line223">line 223</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Returns the validation result.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">bool</span>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AdminsHelper.html">AdminsHelper</a></li><li><a href="CategoriesHelper.html">CategoriesHelper</a></li><li><a href="CustomersHelper.html">CustomersHelper</a></li><li><a href="ProvidersHelper.html">ProvidersHelper</a></li><li><a href="SecretariesHelper.html">SecretariesHelper</a></li><li><a href="ServicesHelper.html">ServicesHelper</a></li><li><a href="SystemSettings.html">SystemSettings</a></li><li><a href="UserSettings.html">UserSettings</a></li><li><a href="WorkingPlan.html">WorkingPlan</a></li></ul><h3>Namespaces</h3><ul><li><a href="Backend.html">Backend</a></li><li><a href="BackendCalendar.html">BackendCalendar</a></li><li><a href="BackendCustomers.html">BackendCustomers</a></li><li><a href="BackendServices.html">BackendServices</a></li><li><a href="BackendSettings.html">BackendSettings</a></li><li><a href="BackendUsers.html">BackendUsers</a></li><li><a href="FrontendBook.html">FrontendBook</a></li><li><a href="GeneralFunctions.html">GeneralFunctions</a></li></ul><h3>Global</h3><ul><li><a href="global.html#enableCancel">enableCancel</a></li><li><a href="global.html#enableSubmit">enableSubmit</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha13</a> on Wed Jan 21 2015 23:15:08 GMT+0100 (CET)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>