Files
legolog/jsdoc/global.html
Ben a6ed6d28e9 the docs for what i just did
Former-commit-id: 1c241c331cbc1b3d05a8add5ce9e0899b709a712
2022-02-12 03:04:27 +00:00

740 lines
7.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Global</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">Global</h1>
<section>
<header>
<h2></h2>
</header>
<article>
<div class="container-overview">
<dl class="details">
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="addModel"><span class="type-signature"></span>addModel<span class="signature">(name, model)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Adds a model to the database stash</p>
</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>name</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>model</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entity-relationships.js.html">entity-relationships.js</a>, <a href="entity-relationships.js.html#line52">line 52</a>
</li></ul></dd>
</dl>
<h4 class="name" id="model"><span class="type-signature"></span>model<span class="signature">(modelName)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Gets a model from the database stash</p>
</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>modelName</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>The name of the target model</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entity-relationships.js.html">entity-relationships.js</a>, <a href="entity-relationships.js.html#line31">line 31</a>
</li></ul></dd>
</dl>
<h4 class="name" id="property"><span class="type-signature"></span>property<span class="signature">(name)</span><span class="type-signature"></span></h4>
<div class="description">
<p>Gets a property from the model</p>
</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>name</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last"><p>The name of the target property</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="model.js.html">model.js</a>, <a href="model.js.html#line23">line 23</a>
</li></ul></dd>
</dl>
<h4 class="name" id="resolveDependants"><span class="type-signature"></span>resolveDependants<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
<p>Resolves all the dependancies for the models that have been added where properties weren't available when they were added</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entity-relationships.js.html">entity-relationships.js</a>, <a href="entity-relationships.js.html#line93">line 93</a>
</li></ul></dd>
</dl>
<h4 class="name" id="syncModels"><span class="type-signature"></span>syncModels<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
<p>Syncs the models to the database
ONLY run this after all models are properly added</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entity-relationships.js.html">entity-relationships.js</a>, <a href="entity-relationships.js.html#line143">line 143</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Database.html">Database</a></li><li><a href="Model.html">Model</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addModel">addModel</a></li><li><a href="global.html#model">model</a></li><li><a href="global.html#property">property</a></li><li><a href="global.html#resolveDependants">resolveDependants</a></li><li><a href="global.html#syncModels">syncModels</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Sat Feb 12 2022 03:04:16 GMT+0000 (Greenwich Mean Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>