NameCaseLib/Docs/default/NCLNameCaseCore.html
2011-07-11 20:56:11 +03:00

1401 lines
64 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs For Class NCLNameCaseCore</title>
<link rel="stylesheet" href="../media/stylesheet.css" />
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>
<body>
<div class="page-body">
<h2 class="class-name">Class NCLNameCaseCore</h2>
<a name="sec-description"></a>
<div class="info-box">
<div class="info-box-title">Description</div>
<div class="nav-bar">
<span class="disabled">Description</span> |
<a href="#sec-descendents">Descendents</a>
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Класс, который содержит основные константы библиотеки:</p>
<p class="description"><p><ul><li>индексы мужского и женского пола</li><li>индексы всех падежей</li></ul></p></p>
<ul class="tags">
<li><span class="field">author:</span> Андрей Чайка &lt;<a href="mailto:bymer3@gmail.com">bymer3@gmail.com</a>&gt;</li>
<li><span class="field">version:</span> 0.4.1</li>
</ul>
<p class="notes">
Located in <a class="field" href="_NCL---NCLNameCaseCore.php.html">/NCL/NCLNameCaseCore.php</a> (line <span class="field">13</span>)
</p>
<pre><a href="../default/NCL.html">NCL</a>
|
--NCLNameCaseCore</pre>
</div>
</div>
<a name="sec-descendents"></a>
<div class="info-box">
<div class="info-box-title">Direct descendents</div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<span class="disabled">Descendents</span>
| <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
| <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<table cellpadding="2" cellspacing="0" class="class-table">
<tr>
<th class="class-table-header">Class</th>
<th class="class-table-header">Description</th>
</tr>
<tr>
<td style="padding-right: 2em"><a href="../default/NCLNameCaseRu.html">NCLNameCaseRu</a></td>
<td>
Класс, который содержит основные константы библиотеки:
</td>
</tr>
<tr>
<td style="padding-right: 2em"><a href="../default/NCLNameCaseUa.html">NCLNameCaseUa</a></td>
<td>
Класс, который содержит основные константы библиотеки:
</td>
</tr>
</table>
</div>
</div>
<a name="sec-var-summary"></a>
<div class="info-box">
<div class="info-box-title">Variable Summary</span></div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<a href="#sec-descendents">Descendents</a> |
<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<div class="var-summary">
<div class="var-title">
<span class="var-type">array</span>
<a href="#$lastResult" title="details" class="var-name">$lastResult</a>
</div>
<div class="var-title">
<span class="var-type">array</span>
<a href="#$workindLastCache" title="details" class="var-name">$workindLastCache</a>
</div>
<div class="var-title">
<span class="var-type">string</span>
<a href="#$workingWord" title="details" class="var-name">$workingWord</a>
</div>
</div>
</div>
</div>
<a name="sec-method-summary"></a>
<div class="info-box">
<div class="info-box-title">Method Summary</span></div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<a href="#sec-descendents">Descendents</a> |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
|
<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<div class="method-summary">
<div class="method-definition">
<span class="method-result">void</span>
<a href="#fullReset" title="details" class="method-name">fullReset</a>
()
</div>
<div class="method-definition">
<span class="method-result">int</span>
<a href="#genderAutoDetect" title="details" class="method-name">genderAutoDetect</a>
()
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#getFatherNameCase" title="details" class="method-name">getFatherNameCase</a>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#getFirstNameCase" title="details" class="method-name">getFirstNameCase</a>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">string</span>
<a href="#getFormatted" title="details" class="method-name">getFormatted</a>
([<span class="var-type"></span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">&quot;S N F&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">array</span>
<a href="#getFormattedArray" title="details" class="method-name">getFormattedArray</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span>)
</div>
<div class="method-definition">
<span class="method-result">array</span>
<a href="#getFormattedArrayHard" title="details" class="method-name">getFormattedArrayHard</a>
(<span class="var-type">array</span>&nbsp;<span class="var-name">$format</span>)
</div>
<div class="method-definition">
<span class="method-result">string</span>
<a href="#getFormattedHard" title="details" class="method-name">getFormattedHard</a>
([<span class="var-type"></span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">array()</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#getSecondNameCase" title="details" class="method-name">getSecondNameCase</a>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">bool</span>
<a href="#in" title="details" class="method-name">in</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$letter</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$string</span>)
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#inNames" title="details" class="method-name">inNames</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$nameNeedle</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$names</span>)
</div>
<div class="method-definition">
<span class="method-result">string</span>
<a href="#Last" title="details" class="method-name">Last</a>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">1</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$stopAfter</span> = <span class="var-default">0</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#q" title="details" class="method-name">q</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">null</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#qFatherName" title="details" class="method-name">qFatherName</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#qFirstName" title="details" class="method-name">qFirstName</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#qFullName" title="details" class="method-name">qFullName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">&quot;S N F&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">mixed</span>
<a href="#qSecondName" title="details" class="method-name">qSecondName</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#Rule" title="details" class="method-name">Rule</a>
(<span class="var-type">int</span>&nbsp;<span class="var-name">$index</span>)
</div>
<div class="method-definition">
<span class="method-result">boolean</span>
<a href="#RulesChain" title="details" class="method-name">RulesChain</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$gender</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$rulesArray</span>)
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setFatherName" title="details" class="method-name">setFatherName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$fathername</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setFirstName" title="details" class="method-name">setFirstName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$firstname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setFullName" title="details" class="method-name">setFullName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setGender" title="details" class="method-name">setGender</a>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setLastName" title="details" class="method-name">setLastName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setName" title="details" class="method-name">setName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$firstname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setSecondName" title="details" class="method-name">setSecondName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setSirName" title="details" class="method-name">setSirName</a>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#setWorkingWord" title="details" class="method-name">setWorkingWord</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>)
</div>
<div class="method-definition">
<span class="method-result">string</span>
<a href="#splitFullName" title="details" class="method-name">splitFullName</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>)
</div>
<div class="method-definition">
<span class="method-result">void</span>
<a href="#wordForms" title="details" class="method-name">wordForms</a>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$endings</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$replaceLast</span> = <span class="var-default">0</span>])
</div>
</div>
</div>
</div>
<a name="sec-vars"></a>
<div class="info-box">
<div class="info-box-title">Variables</div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<a href="#sec-descendents">Descendents</a> |
<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
|
<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
</div>
<div class="info-box-body">
<a name="var$lastResult" id="$lastResult"><!-- --></A>
<div class="oddrow">
<div class="var-header">
<span class="var-title">
<span class="var-type">array</span>
<span class="var-name">$lastResult</span>
= <span class="var-default">array()</span> (line <span class="line-number">61</span>)
</span>
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Массив содержит результат склонения слова - слово во всех падежах</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
</div>
<a name="var$workindLastCache" id="$workindLastCache"><!-- --></A>
<div class="evenrow">
<div class="var-header">
<span class="var-title">
<span class="var-type">array</span>
<span class="var-name">$workindLastCache</span>
= <span class="var-default">array()</span> (line <span class="line-number">49</span>)
</span>
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Метод Last() вырезает подстроки разной длины. Посколько одинаковых вызовов бывает несколько, то все результаты выполнения кешируются в этом массиве.</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
</div>
<a name="var$workingWord" id="$workingWord"><!-- --></A>
<div class="oddrow">
<div class="var-header">
<span class="var-title">
<span class="var-type">string</span>
<span class="var-name">$workingWord</span>
= <span class="var-default"> ''</span> (line <span class="line-number">42</span>)
</span>
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Переменная, в которую заносится слово с которым сейчас идет работа</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
</div>
<h4>Inherited Variables</h4>
<A NAME='inherited_vars'><!-- --></A>
<p>Inherited from <span class="classname"><a href="../default/NCL.html">NCL</a></span></p>
<blockquote>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$DATELN">NCL::$DATELN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$IMENITLN">NCL::$IMENITLN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$MAN">NCL::$MAN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$PREDLOGN">NCL::$PREDLOGN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$RODITLN">NCL::$RODITLN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$TVORITELN">NCL::$TVORITELN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaDavalnyi">NCL::$UaDavalnyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaKlychnyi">NCL::$UaKlychnyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaMiszevyi">NCL::$UaMiszevyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaNazyvnyi">NCL::$UaNazyvnyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaOrudnyi">NCL::$UaOrudnyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaRodovyi">NCL::$UaRodovyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$UaZnahidnyi">NCL::$UaZnahidnyi</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$VINITELN">NCL::$VINITELN</a></span><br>
</span>
<span class="var-title">
<span class="var-name"><a href="../default/NCL.html#var$WOMAN">NCL::$WOMAN</a></span><br>
</span>
</blockquote>
</div>
</div>
<a name="sec-methods"></a>
<div class="info-box">
<div class="info-box-title">Methods</div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<a href="#sec-descendents">Descendents</a> |
<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
</div>
<div class="info-box-body">
<A NAME='method_detail'></A>
<a name="methodfullReset" id="fullReset"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">fullReset</span> (line <span class="line-number">85</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Сбрасывает все информацию на начальную. Очищает все слова добавленые в систему.</p>
<p class="description"><p>После выполнения система готова работать с начала.</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
fullReset
</span>
()
</div>
</div>
<a name="methodgenderAutoDetect" id="genderAutoDetect"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">genderAutoDetect</span> (line <span class="line-number">475</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">По указаным словам определяется пол человека:</p>
<p class="description"><p><ul><li>0 - не определено</li><li>NCL::$MAN - мужчина</li><li>NCL::$WOMAN - женщина</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> текущий пол человека</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">int</span>
<span class="method-name">
genderAutoDetect
</span>
()
</div>
</div>
<a name="methodgetFatherNameCase" id="getFatherNameCase"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">getFatherNameCase</span> (line <span class="line-number">666</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит отчество в нужный падеж.</p>
<p class="description"><p>Если указан номер падежа <var>$number</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
getFatherNameCase
</span>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$number</span><span class="var-description">: номер падежа</span> </li>
</ul>
</div>
<a name="methodgetFirstNameCase" id="getFirstNameCase"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">getFirstNameCase</span> (line <span class="line-number">636</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит имя в нужный падеж.</p>
<p class="description"><p>Если указан номер падежа <var>$number</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
getFirstNameCase
</span>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$number</span><span class="var-description">: номер падежа</span> </li>
</ul>
</div>
<a name="methodgetFormatted" id="getFormatted"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">getFormatted</span> (line <span class="line-number">903</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет текущие слова в падеж <var>$caseNum</var> и форматирует слово по шаблону <var>$format</var></p>
<p class="description"><p><strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> строка в нужном падеже</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">string</span>
<span class="method-name">
getFormatted
</span>
([<span class="var-type"></span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">&quot;S N F&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$format</span><span class="var-description">: строка с форматом</span> </li>
<li>
<span class="var-type"></span>
<span class="var-name">$caseNum</span> </li>
</ul>
</div>
<a name="methodgetFormattedArray" id="getFormattedArray"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">getFormattedArray</span> (line <span class="line-number">746</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет текущие слова во все падежи и форматирует слово по шаблону <var>$format</var></p>
<p class="description"><p><strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> массив со всеми падежами</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">array</span>
<span class="method-name">
getFormattedArray
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$format</span><span class="var-description">: строка формат</span> </li>
</ul>
</div>
<a name="methodgetFormattedArrayHard" id="getFormattedArrayHard"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">getFormattedArrayHard</span> (line <span class="line-number">810</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет текущие слова во все падежи и форматирует слово по шаблону <var>$format</var></p>
<p class="description"><p><strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> массив со всеми падежами</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">array</span>
<span class="method-name">
getFormattedArrayHard
</span>
(<span class="var-type">array</span>&nbsp;<span class="var-name">$format</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">array</span>
<span class="var-name">$format</span><span class="var-description">: массив с форматом</span> </li>
</ul>
</div>
<a name="methodgetFormattedHard" id="getFormattedHard"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">getFormattedHard</span> (line <span class="line-number">869</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет текущие слова в падеж <var>$caseNum</var> и форматирует слово по шаблону <var>$format</var></p>
<p class="description"><p><strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> строка в нужном падеже</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">string</span>
<span class="method-name">
getFormattedHard
</span>
([<span class="var-type"></span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">array()</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">array</span>
<span class="var-name">$format</span><span class="var-description">: массив с форматом</span> </li>
<li>
<span class="var-type"></span>
<span class="var-name">$caseNum</span> </li>
</ul>
</div>
<a name="methodgetSecondNameCase" id="getSecondNameCase"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">getSecondNameCase</span> (line <span class="line-number">651</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит фамилию в нужный падеж.</p>
<p class="description"><p>Если указан номер падежа <var>$number</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
getSecondNameCase
</span>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$number</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$number</span><span class="var-description">: номер падежа</span> </li>
</ul>
</div>
<a name="methodin" id="in"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">in</span> (line <span class="line-number">180</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Если <var>$string</var> строка, тогда проверяется входит ли буква <var>$letter</var> в строку <var>$string</var></p>
<p class="description"><p>Если <var>$string</var> массив, тогда проверяется входит ли строка <var>$letter</var> в массив <var>$string</var></p></p>
<ul class="tags">
<li><span class="field">return:</span> true если искомое значение найдено</li>
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">bool</span>
<span class="method-name">
in
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$letter</span>, <span class="var-type">mixed</span>&nbsp;<span class="var-name">$string</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$letter</span><span class="var-description">: буква или строка, которую нужно искать</span> </li>
<li>
<span class="var-type">mixed</span>
<span class="var-name">$string</span><span class="var-description">: строка или массив, в котором нужно искать</span> </li>
</ul>
</div>
<a name="methodinNames" id="inNames"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">inNames</span> (line <span class="line-number">205</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция проверяет, входит ли имя <var>$nameNeedle</var> в перечень имен <var>$names</var>.</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
inNames
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$nameNeedle</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$names</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$nameNeedle</span><span class="var-description">: - имя которое нужно найти</span> </li>
<li>
<span class="var-type">array</span>
<span class="var-name">$names</span><span class="var-description">: - перечень имен в котором нужно найти имя</span> </li>
</ul>
</div>
<a name="methodLast" id="Last"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">Last</span> (line <span class="line-number">133</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Если <var>$stopAfter</var> = 0, тогда вырезает $length последних букв с текущего слова (<var>$this-&gt;workingWord</var>)</p>
<p class="description"><p>Если нет, тогда вырезает <var>$stopAfter</var> букв начиная от <var>$length</var> с конца</p></p>
<ul class="tags">
<li><span class="field">return:</span> требуемая подстрока</li>
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">string</span>
<span class="method-name">
Last
</span>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">1</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$stopAfter</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$length</span><span class="var-description">: количество букв с конца</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$stopAfter</span><span class="var-description">: количество букв которые нужно вырезать (0 - все)</span> </li>
</ul>
</div>
<a name="methodq" id="q"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">q</span> (line <span class="line-number">980</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет ФИО <var>$fullname</var> в падеж <var>$caseNum</var> по правилам пола <var>$gender</var>.</p>
<p class="description"><p>Возвращает результат в таком же формате, как он и был.</p></p>
<ul class="tags">
<li><span class="field">return:</span> либо массив со всеми падежами, либо строка</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
q
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">null</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$fullname</span><span class="var-description">: ФИО</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$caseNum</span><span class="var-description">: номер падежа</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол человека</span> </li>
</ul>
</div>
<a name="methodqFatherName" id="qFatherName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">qFatherName</span> (line <span class="line-number">726</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит отчество <var>$fatherName</var> в нужный падеж <var>$CaseNumber</var> по правилам пола <var>$gender</var>.</p>
<p class="description"><p>Если указан номер падежа <var>$CaseNumber</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
qFatherName
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$fatherName</span><span class="var-description">: отчество, которое нужно просклонять</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$CaseNumber</span><span class="var-description">: номер падежа</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол, который нужно использовать</span> </li>
</ul>
</div>
<a name="methodqFirstName" id="qFirstName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">qFirstName</span> (line <span class="line-number">683</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит имя <var>$firstName</var> в нужный падеж <var>$CaseNumber</var> по правилам пола <var>$gender</var>.</p>
<p class="description"><p>Если указан номер падежа <var>$CaseNumber</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
qFirstName
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$firstName</span><span class="var-description">: имя, которое нужно просклонять</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$CaseNumber</span><span class="var-description">: номер падежа</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол, который нужно использовать</span> </li>
</ul>
</div>
<a name="methodqFullName" id="qFullName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">qFullName</span> (line <span class="line-number">958</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет фамилию <var>$secondName</var>, имя <var>$firstName</var>, отчество <var>$fatherName</var></p>
<p class="description"><p>в падеж <var>$caseNum</var> по правилам пола <var>$gender</var> и форматирует результат по шаблону <var>$format</var> <strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> либо массив со всеми падежами, либо строка</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
qFullName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$caseNum</span> = <span class="var-default">0</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">&quot;S N F&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondName</span><span class="var-description">: фамилия</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$firstName</span><span class="var-description">: имя</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$fatherName</span><span class="var-description">: отчество</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$caseNum</span><span class="var-description">: номер падежа</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$format</span><span class="var-description">: формат</span> </li>
</ul>
</div>
<a name="methodqSecondName" id="qSecondName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">qSecondName</span> (line <span class="line-number">704</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Функция ставит фамилию <var>$secondName</var> в нужный падеж <var>$CaseNumber</var> по правилам пола <var>$gender</var>.</p>
<p class="description"><p>Если указан номер падежа <var>$CaseNumber</var>, тогда возвращается строка с таким номером падежа, если нет, тогда возвращается массив со всеми падежами текущего слова.</p></p>
<ul class="tags">
<li><span class="field">return:</span> массив или строка с нужным падежом</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">mixed</span>
<span class="method-name">
qSecondName
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$CaseNumber</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondName</span><span class="var-description">: фамилия, которую нужно просклонять</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$CaseNumber</span><span class="var-description">: номер падежа</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол, который нужно использовать</span> </li>
</ul>
</div>
<a name="methodRule" id="Rule"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">Rule</span> (line <span class="line-number">106</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Устанавливает номер последнего правила</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
Rule
</span>
(<span class="var-type">int</span>&nbsp;<span class="var-name">$index</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$index</span><span class="var-description">: номер правила которое нужно установить</span> </li>
</ul>
</div>
<a name="methodRulesChain" id="RulesChain"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">RulesChain</span> (line <span class="line-number">160</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Над текущим словом (<var>$this-&gt;workingWord</var>) выполняются правила в порядке указаном в <var>$rulesArray</var>.</p>
<p class="description"><p><var>$gender</var> служит для указания какие правила использовать мужские ('man') или женские ('woman')</p></p>
<ul class="tags">
<li><span class="field">return:</span> если правило было задествовано, тогда true, если нет - тогда false</li>
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">boolean</span>
<span class="method-name">
RulesChain
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$gender</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$rulesArray</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$gender</span><span class="var-description">: - префикс мужских/женских правил</span> </li>
<li>
<span class="var-type">array</span>
<span class="var-name">$rulesArray</span><span class="var-description">: - массив, порядок выполнения правил</span> </li>
</ul>
</div>
<a name="methodsetFatherName" id="setFatherName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setFatherName</span> (line <span class="line-number">282</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$fathername</var> и пометкой, что это отчество</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setFatherName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$fathername</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$fathername</span><span class="var-description">: отчество</span> </li>
</ul>
</div>
<a name="methodsetFirstName" id="setFirstName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">setFirstName</span> (line <span class="line-number">250</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$firstname</var> и пометкой, что это имя</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setFirstName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$firstname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$firstname</span><span class="var-description">: имя</span> </li>
</ul>
</div>
<a name="methodsetFullName" id="setFullName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setFullName</span> (line <span class="line-number">314</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В система заносится сразу фамилия, имя, отчество</p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setFullName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$firstName</span> = <span class="var-default">&quot;&quot;</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$fatherName</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondName</span><span class="var-description">: фамилия</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$firstName</span><span class="var-description">: имя</span> </li>
<li>
<span class="var-type">string</span>
<span class="var-name">$fatherName</span><span class="var-description">: отчество</span> </li>
</ul>
</div>
<a name="methodsetGender" id="setGender"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">setGender</span> (line <span class="line-number">300</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Всем словам устанавливается пол, который может иметь следующие значения</p>
<p class="description"><p><ul><li>0 - не определено</li><li>NCL::$MAN - мужчина</li><li>NCL::$WOMAN - женщина</li></ul></p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setGender
</span>
([<span class="var-type">int</span>&nbsp;<span class="var-name">$gender</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">int</span>
<span class="var-name">$gender</span><span class="var-description">: пол, который нужно установить</span> </li>
</ul>
</div>
<a name="methodsetLastName" id="setLastName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setLastName</span> (line <span class="line-number">336</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$secondname</var> и пометкой, что это фамилия</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setLastName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondname</span><span class="var-description">: фамилия</span> </li>
</ul>
</div>
<a name="methodsetName" id="setName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">setName</span> (line <span class="line-number">326</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$firstname</var> и пометкой, что это имя</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$firstname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$firstname</span><span class="var-description">: имя</span> </li>
</ul>
</div>
<a name="methodsetSecondName" id="setSecondName"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setSecondName</span> (line <span class="line-number">266</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$secondname</var> и пометкой, что это фамилия</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setSecondName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondname</span><span class="var-description">: фамилия</span> </li>
</ul>
</div>
<a name="methodsetSirName" id="setSirName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">setSirName</span> (line <span class="line-number">346</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">В массив <var>$this-&gt;words</var> добавляется новый об’єкт класса NCLNameCaseWord</p>
<p class="description"><p>со словом <var>$secondname</var> и пометкой, что это фамилия</p></p>
<ul class="tags">
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setSirName
</span>
([<span class="var-type">string</span>&nbsp;<span class="var-name">$secondname</span> = <span class="var-default">&quot;&quot;</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$secondname</span><span class="var-description">: фамилия</span> </li>
</ul>
</div>
<a name="methodsetWorkingWord" id="setWorkingWord"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">setWorkingWord</span> (line <span class="line-number">116</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Устанавливает слово текущим для работы системы. Очищает кеш слова.</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
setWorkingWord
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$word</span><span class="var-description">: слово, которое нужно установить</span> </li>
</ul>
</div>
<a name="methodsplitFullName" id="splitFullName"><!-- --></a>
<div class="evenrow">
<div class="method-header">
<span class="method-title">splitFullName</span> (line <span class="line-number">494</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Разбивает строку <var>$fullname</var> на слова и возвращает формат в котором записано имя</p>
<p class="description"><p><strong>Формат:</strong> <ul><li>S - Фамилия</li><li>N - Имя</li><li>F - Отчество</li></ul></p></p>
<ul class="tags">
<li><span class="field">return:</span> формат в котором записано имя например 'N F S'</li>
<li><span class="field">access:</span> public</li>
</ul>
<div class="method-signature">
<span class="method-result">string</span>
<span class="method-name">
splitFullName
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$fullname</span>)
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$fullname</span><span class="var-description">: строка, для которой необходимо определить формат</span> </li>
</ul>
</div>
<a name="methodwordForms" id="wordForms"><!-- --></a>
<div class="oddrow">
<div class="method-header">
<span class="method-title">wordForms</span> (line <span class="line-number">229</span>)
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Склоняет слово <var>$word</var>, удаляя из него <var>$replaceLast</var> последних букв и добавляя в каждый падеж окончание из массива <var>$endings</var>.</p>
<ul class="tags">
<li><span class="field">access:</span> protected</li>
</ul>
<div class="method-signature">
<span class="method-result">void</span>
<span class="method-name">
wordForms
</span>
(<span class="var-type">string</span>&nbsp;<span class="var-name">$word</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$endings</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$replaceLast</span> = <span class="var-default">0</span>])
</div>
<ul class="parameters">
<li>
<span class="var-type">string</span>
<span class="var-name">$word</span><span class="var-description">: слово, к которому нужно добавить окончания</span> </li>
<li>
<span class="var-type">array</span>
<span class="var-name">$endings</span><span class="var-description">: массив окончаний</span> </li>
<li>
<span class="var-type">int</span>
<span class="var-name">$replaceLast</span><span class="var-description">: сколько последних букв нужно убрать с начального слова</span> </li>
</ul>
</div>
</div>
</div>
<p class="notes" id="credit">
Documentation generated on Wed, 06 Jul 2011 13:46:17 +0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
</p>
</div></body>
</html>