XarayaTranslationMemory
1.6
|
Public Member Functions | |
__construct () | |
SetID ($id) | |
GetID () | |
SetWord ($word) | |
GetWord () | |
SetCount ($count) | |
GetCount () | |
Private Attributes | |
$ID | |
$Word | |
$Count | |
Class to store one single word in a sentence, including its count of occurences.
This simple class can store one single word, an occurence counter for it and the word's ID in the WordIndex database.
Definition at line 27 of file TranslationWord.php.
TranslationWord::__construct | ( | ) |
Create an empy word.
Definition at line 37 of file TranslationWord.php.
TranslationWord::GetCount | ( | ) |
Get the occurences of this word in your sentence.
Definition at line 87 of file TranslationWord.php.
References $Count.
TranslationWord::GetID | ( | ) |
Get the WordIndex ID of this word.
Definition at line 55 of file TranslationWord.php.
References $ID.
TranslationWord::GetWord | ( | ) |
TranslationWord::SetCount | ( | $count | ) |
Set the occurences of this word in your sentence.
Definition at line 79 of file TranslationWord.php.
TranslationWord::SetID | ( | $id | ) |
Set the WordIndex ID of this word.
Definition at line 47 of file TranslationWord.php.
TranslationWord::SetWord | ( | $word | ) |
Set this word's actual text.
Definition at line 63 of file TranslationWord.php.
|
private |
Number of occurences in the current context
Definition at line 31 of file TranslationWord.php.
Referenced by GetCount().
|
private |
Word's ID in the WordIndex database
Definition at line 29 of file TranslationWord.php.
Referenced by GetID().
|
private |