From 3987cb6f179b87d6c2814bc1cfa7bf142addd87d Mon Sep 17 00:00:00 2001 From: Andriy Chaika Date: Wed, 6 Jul 2011 00:21:27 +0300 Subject: [PATCH] =?UTF-8?q?[0.4]=20=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Docs/classtrees_default.html | 2 +- Docs/default/NCL.html | 4 +- Docs/default/NCLNameCaseCore.html | 4 +- Docs/default/NCLNameCaseInterface.html | 2 +- Docs/default/NCLNameCaseRu.html | 4 +- Docs/default/NCLNameCaseUa.html | 40 +++++++------- Docs/default/NCLNameCaseWord.html | 38 +++++++------- Docs/default/NCLStr.html | 2 +- Docs/default/_NCL---NCL.php.html | 2 +- Docs/default/_NCL---NCLNameCaseCore.php.html | 2 +- .../_NCL---NCLNameCaseInterface.php.html | 2 +- Docs/default/_NCL---NCLNameCaseWord.php.html | 4 +- Docs/default/_NCL---NCLStr.php.html | 2 +- Docs/default/_NCL.NameCase.ru.php.html | 2 +- Docs/default/_NCL.NameCase.ua.php.html | 2 +- Docs/elementindex.html | 2 +- Docs/elementindex_default.html | 2 +- Docs/errors.html | 6 +-- Docs/index.html | 2 +- Library/NCL/NCLNameCaseWord.php | 52 ++++++++++++++++--- 20 files changed, 107 insertions(+), 69 deletions(-) diff --git a/Docs/classtrees_default.html b/Docs/classtrees_default.html index ef64d3a..2dffa31 100644 --- a/Docs/classtrees_default.html +++ b/Docs/classtrees_default.html @@ -34,7 +34,7 @@
  • NCLStr
  • - Documentation generated on Wed, 06 Jul 2011 00:08:59 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:03 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCL.html b/Docs/default/NCL.html index bd7d90f..1600629 100644 --- a/Docs/default/NCL.html +++ b/Docs/default/NCL.html @@ -24,7 +24,7 @@

    Класс, который содержит основные константы библиотеки:

    @@ -440,7 +440,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLNameCaseCore.html b/Docs/default/NCLNameCaseCore.html index 7258de8..95056fe 100644 --- a/Docs/default/NCLNameCaseCore.html +++ b/Docs/default/NCLNameCaseCore.html @@ -26,7 +26,7 @@

    Класс, который содержит основные константы библиотеки:

    @@ -1749,7 +1749,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLNameCaseInterface.html b/Docs/default/NCLNameCaseInterface.html index a18d232..a635e34 100644 --- a/Docs/default/NCLNameCaseInterface.html +++ b/Docs/default/NCLNameCaseInterface.html @@ -772,7 +772,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLNameCaseRu.html b/Docs/default/NCLNameCaseRu.html index 043d761..5137242 100644 --- a/Docs/default/NCLNameCaseRu.html +++ b/Docs/default/NCLNameCaseRu.html @@ -30,7 +30,7 @@

    Класс, который содержит основные константы библиотеки:

    @@ -921,7 +921,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:08:59 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:03 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLNameCaseUa.html b/Docs/default/NCLNameCaseUa.html index 850fda0..f8ea232 100644 --- a/Docs/default/NCLNameCaseUa.html +++ b/Docs/default/NCLNameCaseUa.html @@ -30,7 +30,7 @@

    Класс, который содержит основные константы библиотеки:

    @@ -308,7 +308,7 @@

    - detectNamePart (line 684) + detectNamePart (line 690)
    @@ -338,7 +338,7 @@
    - GenderByFatherName (line 663) + GenderByFatherName (line 669)
    @@ -367,7 +367,7 @@
    - GenderByFirstName (line 584) + GenderByFirstName (line 590)
    @@ -396,7 +396,7 @@
    - GenderBySecondName (line 634) + GenderBySecondName (line 640)
    @@ -425,7 +425,7 @@
    - manFatherName (line 556) + manFatherName (line 562)
    @@ -450,7 +450,7 @@
    - manFirstName (line 519) + manFirstName (line 525)
    @@ -475,7 +475,7 @@
    - manRule1 (line 187) + manRule1 (line 193)
    @@ -504,7 +504,7 @@
    - manRule2 (line 224) + manRule2 (line 230)
    @@ -529,7 +529,7 @@
    - manRule3 (line 254) + manRule3 (line 260)
    @@ -554,7 +554,7 @@
    - manRule4 (line 365) + manRule4 (line 371)
    @@ -579,7 +579,7 @@
    - manRule5 (line 380) + manRule5 (line 386)
    @@ -604,7 +604,7 @@
    - manSecondName (line 538) + manSecondName (line 544)
    @@ -629,7 +629,7 @@
    - womanFatherName (line 570) + womanFatherName (line 576)
    @@ -654,7 +654,7 @@
    - womanFirstName (line 528) + womanFirstName (line 534)
    @@ -679,7 +679,7 @@
    - womanRule1 (line 401) + womanRule1 (line 407)
    @@ -708,7 +708,7 @@
    - womanRule2 (line 447) + womanRule2 (line 453)
    @@ -734,7 +734,7 @@
    - womanRule3 (line 491) + womanRule3 (line 497)
    @@ -759,7 +759,7 @@
    - womanSecondName (line 547) + womanSecondName (line 553)
    @@ -832,7 +832,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:00 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:04 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLNameCaseWord.html b/Docs/default/NCLNameCaseWord.html index 9563c2f..2a9ff5b 100644 --- a/Docs/default/NCLNameCaseWord.html +++ b/Docs/default/NCLNameCaseWord.html @@ -21,9 +21,10 @@
    -

    Description of NCL

    +

    NCLNameCaseWord - класс, который служит для хранения всей информации о каждом слове

      -
    • author: seagull
    • +
    • author: Андрей Чайка <bymer3@gmail.com>
    • +
    • version: 0.4

    Located in /NCL/NCLNameCaseWord.php (line 8) @@ -51,7 +52,7 @@

    NCLNameCaseWord __construct - (string $word, NCLNameCaseCore $core) + (string $word)
    void @@ -128,7 +129,7 @@
    - Constructor __construct (line 39) + Constructor __construct (line 79)
    @@ -142,16 +143,13 @@ __construct - (string $word, NCLNameCaseCore $core) + (string $word)
    @@ -160,7 +158,7 @@
    - gender (line 109) + gender (line 149)
    @@ -183,7 +181,7 @@
    - getGender (line 136) + getGender (line 176)
    @@ -206,7 +204,7 @@
    - getNameCases (line 104) + getNameCases (line 144)
    @@ -229,7 +227,7 @@
    - getNamePart (line 146) + getNamePart (line 186)
    @@ -252,7 +250,7 @@
    - getWord (line 151) + getWord (line 191)
    @@ -275,7 +273,7 @@
    - isGenderSolved (line 156) + isGenderSolved (line 196)
    @@ -298,7 +296,7 @@
    - setGender (line 125) + setGender (line 165)
    @@ -329,7 +327,7 @@
    - setNameCases (line 98) + setNameCases (line 138)
    @@ -357,7 +355,7 @@
    - setNamePart (line 141) + setNamePart (line 181)
    @@ -385,7 +383,7 @@
    - setRule (line 161) + setRule (line 201)
    @@ -413,7 +411,7 @@
    - setTrueGender (line 131) + setTrueGender (line 171)
    @@ -443,7 +441,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/NCLStr.html b/Docs/default/NCLStr.html index cedcc3b..04333f5 100644 --- a/Docs/default/NCLStr.html +++ b/Docs/default/NCLStr.html @@ -491,7 +491,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL---NCL.php.html b/Docs/default/_NCL---NCL.php.html index 58ade30..f1a5c6f 100644 --- a/Docs/default/_NCL---NCL.php.html +++ b/Docs/default/_NCL---NCL.php.html @@ -54,7 +54,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL---NCLNameCaseCore.php.html b/Docs/default/_NCL---NCLNameCaseCore.php.html index 595396d..e1d19e4 100644 --- a/Docs/default/_NCL---NCLNameCaseCore.php.html +++ b/Docs/default/_NCL---NCLNameCaseCore.php.html @@ -152,7 +152,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL---NCLNameCaseInterface.php.html b/Docs/default/_NCL---NCLNameCaseInterface.php.html index c35f495..563d45e 100644 --- a/Docs/default/_NCL---NCLNameCaseInterface.php.html +++ b/Docs/default/_NCL---NCLNameCaseInterface.php.html @@ -54,7 +54,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL---NCLNameCaseWord.php.html b/Docs/default/_NCL---NCLNameCaseWord.php.html index 621d32c..50ddf04 100644 --- a/Docs/default/_NCL---NCLNameCaseWord.php.html +++ b/Docs/default/_NCL---NCLNameCaseWord.php.html @@ -42,7 +42,7 @@ NCLNameCaseWord - Description of NCL + NCLNameCaseWord - класс, который служит для хранения всей информации о каждом слове @@ -54,7 +54,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL---NCLStr.php.html b/Docs/default/_NCL---NCLStr.php.html index c376060..d393ba7 100644 --- a/Docs/default/_NCL---NCLStr.php.html +++ b/Docs/default/_NCL---NCLStr.php.html @@ -54,7 +54,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL.NameCase.ru.php.html b/Docs/default/_NCL.NameCase.ru.php.html index 104ee78..230eed0 100644 --- a/Docs/default/_NCL.NameCase.ru.php.html +++ b/Docs/default/_NCL.NameCase.ru.php.html @@ -81,7 +81,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:08:59 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:03 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/default/_NCL.NameCase.ua.php.html b/Docs/default/_NCL.NameCase.ua.php.html index e2c0690..e7e2bad 100644 --- a/Docs/default/_NCL.NameCase.ua.php.html +++ b/Docs/default/_NCL.NameCase.ua.php.html @@ -88,7 +88,7 @@

    - Documentation generated on Wed, 06 Jul 2011 00:09:00 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:04 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/elementindex.html b/Docs/elementindex.html index 3130ec1..f95cfce 100644 --- a/Docs/elementindex.html +++ b/Docs/elementindex.html @@ -627,7 +627,7 @@
    NCLNameCaseWord in NCLNameCaseWord.php
    -
    Description of NCL
    +
    NCLNameCaseWord - класс, который служит для хранения всей информации о каждом слове
    NCLStr diff --git a/Docs/elementindex_default.html b/Docs/elementindex_default.html index 1a1ffae..93d2f7f 100644 --- a/Docs/elementindex_default.html +++ b/Docs/elementindex_default.html @@ -639,7 +639,7 @@
    NCLNameCaseWord in NCLNameCaseWord.php
    -
    Description of NCL
    +
    NCLNameCaseWord - класс, который служит для хранения всей информации о каждом слове
    NCLStr diff --git a/Docs/errors.html b/Docs/errors.html index 6bdd523..4762a21 100644 --- a/Docs/errors.html +++ b/Docs/errors.html @@ -24,7 +24,7 @@

    NCL.NameCase.ua.php

    Warnings:


    Warning on line 17 - no @package tag was used in a DocBlock for class NCLNameCaseUa
    -Warning on line 746 - File "/home/seagull/localhost/www/NameCaseLib/Library/NCL.NameCase.ua.php" has no page-level DocBlock, use @package in the first DocBlock to create one
    +Warning on line 752 - File "/home/seagull/localhost/www/NameCaseLib/Library/NCL.NameCase.ua.php" has no page-level DocBlock, use @package in the first DocBlock to create one

    NCL.php

    Warnings:


    @@ -44,14 +44,14 @@

    NCLNameCaseWord.php

    Warnings:


    Warning on line 8 - no @package tag was used in a DocBlock for class NCLNameCaseWord
    -Warning on line 166 - File "/home/seagull/localhost/www/NameCaseLib/Library/NCL/NCLNameCaseWord.php" has no page-level DocBlock, use @package in the first DocBlock to create one
    +Warning on line 206 - File "/home/seagull/localhost/www/NameCaseLib/Library/NCL/NCLNameCaseWord.php" has no page-level DocBlock, use @package in the first DocBlock to create one

    NCLStr.php

    Warnings:


    Warning on line 13 - no @package tag was used in a DocBlock for class NCLStr
    Warning on line 102 - File "/home/seagull/localhost/www/NameCaseLib/Library/NCL/NCLStr.php" has no page-level DocBlock, use @package in the first DocBlock to create one

    - Documentation generated on Wed, 06 Jul 2011 00:09:01 +0300 by phpDocumentor 1.4.3 + Documentation generated on Wed, 06 Jul 2011 00:21:05 +0300 by phpDocumentor 1.4.3

    \ No newline at end of file diff --git a/Docs/index.html b/Docs/index.html index c5f6f5b..951aafe 100644 --- a/Docs/index.html +++ b/Docs/index.html @@ -4,7 +4,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> - + Generated Documentation diff --git a/Library/NCL/NCLNameCaseWord.php b/Library/NCL/NCLNameCaseWord.php index 924cb4e..c11ab9a 100644 --- a/Library/NCL/NCLNameCaseWord.php +++ b/Library/NCL/NCLNameCaseWord.php @@ -1,40 +1,80 @@ + * @version 0.4 */ class NCLNameCaseWord { + /** + * Слово в нижнем регистре, которое хранится в об’єкте класса + * @var string + */ private $word = ''; + /** * Тип текущей записи (Фамилия/Имя/Отчество) + * - N - ім’я + * - S - прізвище + * - F - по-батькові * @var string */ private $namePart = null; + /** - * Вероятность, что мужчина + * Вероятность того, что текущей слово относится к мужскому полу * @var int */ private $genderMan = 0; + /** - * Вероятность, что женщина + * Вероятность того, что текущей слово относится к женскому полу * @var int */ private $genderWoman = 0; + + /** + * Окончательное решение, к какому полу относится слово + * - 0 - не определено + * - NCL::$MAN - мужской пол + * - NCL::$WOMAN - женский пол + * @var int + */ private $genderSolved = 0; + + /** + * Маска больших букв в слове. + * + * Содержит информацию о том, какие буквы в слове были большими, а какие мальникими: + * - x - маленькая буква + * - X - больная буква + * @var string + */ private $letterMask = ''; + + /** + * Содержит true, если все слово было в верхнем регистре и false, если не было + * @var bool + */ private $isUpperCase = false; + + /** + * Массив содержит все падежи слова, полученые после склонения текущего слова + * @var array + */ private $NameCases = array(); + /** + * Номер правила, по которому было произведено склонение текущего слова + * @var int + */ private $rule = 0; /** * Создать запись из слова * @param string $word - * @param NCLNameCaseCore $core */ public function __construct($word) {