Skip to content

Commit

Permalink
Regenerates documentation for 2.9.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Dec 24, 2023
1 parent 4a41472 commit ecad9cb
Show file tree
Hide file tree
Showing 213 changed files with 4,728 additions and 2,004 deletions.
91 changes: 87 additions & 4 deletions docs/html/ajax__add__term__transl_8php.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="lwt_icon.png"/></td>
<td id="projectalign">
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.8.1-fork</span>
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.9.0-fork</span>
</div>
<div id="projectbrief">Learn foreign languages with texts</div>
</td>
Expand Down Expand Up @@ -96,6 +96,10 @@
<tr class="separator:ae95444187deb18ec23aaae657a69bfcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae2fbf960fa44cb2a3b37ec7d34ef249"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__add__term__transl_8php.html#aae2fbf960fa44cb2a3b37ec7d34ef249">edit_term_transl</a> ($wid, $new_trans)</td></tr>
<tr class="separator:aae2fbf960fa44cb2a3b37ec7d34ef249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a957cda480993c70ce82a4ef04e1dd028"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__add__term__transl_8php.html#a957cda480993c70ce82a4ef04e1dd028">do_ajax_check_update_translation</a> ($wid, $new_trans)</td></tr>
<tr class="separator:a957cda480993c70ce82a4ef04e1dd028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a162d57d7c37aa6498ffc1ba4c07c5ef5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__add__term__transl_8php.html#a162d57d7c37aa6498ffc1ba4c07c5ef5">do_ajax_add_term_transl</a> ($wid, $data)</td></tr>
<tr class="separator:a162d57d7c37aa6498ffc1ba4c07c5ef5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Add a translation to term. </p>
Expand Down Expand Up @@ -141,8 +145,87 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae95444187deb18ec23aaae65
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string Error message if failure, lowercase $text otherwise</dd></dl>
<p>@global string $tbpref Database table prefix </p>
<dl class="section return"><dt>Returns</dt><dd>string|array [new word ID, lowercase $text] if success, error message otherwise</dd></dl>
<p>@global string $tbpref Database table prefix</p>
<dl class="section since"><dt>Since</dt><dd>2.9.0 Error messages are much more explicit </dd>
<dd>
2.9.0 Return an array </dd></dl>

</div>
</div>
<a id="a162d57d7c37aa6498ffc1ba4c07c5ef5" name="a162d57d7c37aa6498ffc1ba4c07c5ef5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a162d57d7c37aa6498ffc1ba4c07c5ef5">&#9670;&#160;</a></span>do_ajax_add_term_transl()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">do_ajax_add_term_transl </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$wid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$data</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add or edit a term translation.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramtype">int</td><td class="paramname">$wid</td><td>Word ID </td></tr>
<tr><td class="paramtype">string</td><td class="paramname">$data</td><td>Translation</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string Database alteration message</dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000016">Deprecated:</a></b></dt><dd>Deprecated in 2.9.0 in favor to the REST API. </dd></dl>

</div>
</div>
<a id="a957cda480993c70ce82a4ef04e1dd028" name="a957cda480993c70ce82a4ef04e1dd028"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a957cda480993c70ce82a4ef04e1dd028">&#9670;&#160;</a></span>do_ajax_check_update_translation()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">do_ajax_check_update_translation </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$wid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$new_trans</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Edit term translation if it exists.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramtype">int</td><td class="paramname">$wid</td><td>Word ID </td></tr>
<tr><td class="paramtype">string</td><td class="paramname">$new_trans</td><td>New translation</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string <a class="el" href="class_term.html">Term</a> in lower case, or error message if term does not exist</dd></dl>
<p>@global string $tbpref </p>

</div>
</div>
Expand Down Expand Up @@ -179,7 +262,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#aae2fbf960fa44cb2a3b37ec7
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string WoTextLC, lower version of the word</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>string WoTextLC, lowercase version of the word</dd></dl>
<p>@global string $tbpref Database table prefix </p>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/ajax__check__regexp_8php.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="lwt_icon.png"/></td>
<td id="projectalign">
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.8.1-fork</span>
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.9.0-fork</span>
</div>
<div id="projectbrief">Learn foreign languages with texts</div>
</td>
Expand Down Expand Up @@ -137,7 +137,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#aa8f063f0d4fc3bcffb174c94
</tr>
</table>
</div><div class="memdoc">
<p>Check if string 'test' is consistently recorgnized a word.</p>
<p>Check if string 'test' is consistently recognized as a word.</p>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

</div>
Expand Down
95 changes: 89 additions & 6 deletions docs/html/ajax__chg__term__status_8php.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="lwt_icon.png"/></td>
<td id="projectalign">
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.8.1-fork</span>
<div id="projectname">Learning with Texts - Fork<span id="projectnumber">&#160;2.9.0-fork</span>
</div>
<div id="projectbrief">Learn foreign languages with texts</div>
</td>
Expand Down Expand Up @@ -82,7 +82,7 @@
</div><!--header-->
<div class="contents">

<p>Change term status (Table Test)
<p>Change term status (Table Test).
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Expand All @@ -92,17 +92,61 @@
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c8244e6e3c6154a02c60d20eb7d6833"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__chg__term__status_8php.html#a3c8244e6e3c6154a02c60d20eb7d6833">set_word_status</a> ($wid, $status)</td></tr>
<tr class="separator:a3c8244e6e3c6154a02c60d20eb7d6833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6297bba60b0f4ec38a6415afda73e92b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__chg__term__status_8php.html#a6297bba60b0f4ec38a6415afda73e92b">get_new_status</a> ($oldstatus, $up)</td></tr>
<tr class="separator:a6297bba60b0f4ec38a6415afda73e92b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb875bfdb5f0c40515cd8e0d3a3490c7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__chg__term__status_8php.html#aeb875bfdb5f0c40515cd8e0d3a3490c7">update_word_status</a> ($wid, $currstatus)</td></tr>
<tr class="separator:aeb875bfdb5f0c40515cd8e0d3a3490c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a9f8775501a61d789606c5da1536ced"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__chg__term__status_8php.html#a0a9f8775501a61d789606c5da1536ced">ajax_increment_term_status</a> ($wid, $up)</td></tr>
<tr class="separator:a0a9f8775501a61d789606c5da1536ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c28255da72bc7d61ad78b37a5eb478c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ajax__chg__term__status_8php.html#a5c28255da72bc7d61ad78b37a5eb478c">do_ajax_chg_term_status</a> ($wid, $up)</td></tr>
<tr class="separator:a5c28255da72bc7d61ad78b37a5eb478c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Change term status (Table Test) </p>
<p>Call: <a class="el" href="ajax__chg__term__status_8php.html" title="Change term status (Table Test)">inc/ajax_chg_term_status.php</a>?id=[wordID]&amp;data=[translation] </p>
<div class="textblock"><p>Change term status (Table Test). </p>
<p>value-difference should be either 1 or -1.</p>
<p>Call: <a class="el" href="ajax__chg__term__status_8php.html" title="Change term status (Table Test).">inc/ajax_chg_term_status.php</a>?id=[wordID]&amp;data=[value-difference] </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a0a9f8775501a61d789606c5da1536ced" name="a0a9f8775501a61d789606c5da1536ced"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a9f8775501a61d789606c5da1536ced">&#9670;&#160;</a></span>ajax_increment_term_status()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ajax_increment_term_status </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$wid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$up</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Do a word status change.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramtype">int</td><td class="paramname">$wid</td><td>Word ID </td></tr>
<tr><td class="paramtype">bool</td><td class="paramname">$up</td><td>Should the status be incremeted or decremented</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string HTML-formatted string for increments</dd></dl>
<p>@global string $tbpref Database table prefix.</p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>2.9.0 Dirty PHP implementation, needs further refactoring </dd></dl>

</div>
</div>
<a id="a5c28255da72bc7d61ad78b37a5eb478c" name="a5c28255da72bc7d61ad78b37a5eb478c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c28255da72bc7d61ad78b37a5eb478c">&#9670;&#160;</a></span>do_ajax_chg_term_status()</h2>

Expand Down Expand Up @@ -137,7 +181,8 @@ <h2 class="memtitle"><span class="permalink"><a href="#a5c28255da72bc7d61ad78b37
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void</dd></dl>
<p>@global string $tbpref Database table prefix. </p>
<p>@global string $tbpref Database table prefix.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ajax__chg__term__status_8php.html#a0a9f8775501a61d789606c5da1536ced">ajax_increment_term_status</a> Return values instead of printing. </dd></dl>

</div>
</div>
Expand Down Expand Up @@ -176,6 +221,44 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6297bba60b0f4ec38a6415af
</dl>
<dl class="section return"><dt>Returns</dt><dd>int&lt;1, 5&gt;|98|99 New status in the good number range. </dd></dl>

</div>
</div>
<a id="a3c8244e6e3c6154a02c60d20eb7d6833" name="a3c8244e6e3c6154a02c60d20eb7d6833"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c8244e6e3c6154a02c60d20eb7d6833">&#9670;&#160;</a></span>set_word_status()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">set_word_status </td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$wid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>$status</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Force a term to get a new status.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramtype">string</td><td class="paramname">$wid</td><td>ID of the word to edit </td></tr>
<tr><td class="paramtype">string</td><td class="paramname">$status</td><td>New status to set</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string Number of affected rows or error message</dd></dl>
<p>@global string $tbpref </p>

</div>
</div>
<a id="aeb875bfdb5f0c40515cd8e0d3a3490c7" name="aeb875bfdb5f0c40515cd8e0d3a3490c7"></a>
Expand Down Expand Up @@ -203,7 +286,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#aeb875bfdb5f0c40515cd8e0d
</tr>
</table>
</div><div class="memdoc">
<p>Save the new word status to the database.</p>
<p>Save the new word status to the database, return the controls.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramtype">int</td><td class="paramname">$wid</td><td>Word ID </td></tr>
Expand Down
Loading

0 comments on commit ecad9cb

Please sign in to comment.