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 29 of file TranslationWord.php.
Public Member Functions | |
__construct () | |
SetID ($id) | |
GetID () | |
SetWord ($word) | |
GetWord () | |
SetCount ($count) | |
GetCount () | |
Private Attributes | |
$ID | |
$Word | |
$Count |
TranslationWord::__construct | ( | ) |
Create an empy word.
Definition at line 39 of file TranslationWord.php.
TranslationWord::GetCount | ( | ) |
Get the occurences of this word in your sentence.
Definition at line 89 of file TranslationWord.php.
TranslationWord::GetID | ( | ) |
Get the WordIndex ID of this word.
Definition at line 57 of file TranslationWord.php.
TranslationWord::GetWord | ( | ) |
Get this word's actual text.
Definition at line 73 of file TranslationWord.php.
TranslationWord::SetCount | ( | $ | count | ) |
Set the occurences of this word in your sentence.
Definition at line 81 of file TranslationWord.php.
TranslationWord::SetID | ( | $ | id | ) |
Set the WordIndex ID of this word.
Definition at line 49 of file TranslationWord.php.
TranslationWord::SetWord | ( | $ | word | ) |
Set this word's actual text.
Definition at line 65 of file TranslationWord.php.
TranslationWord::$Count [private] |
Number of occurences in the current context
Definition at line 33 of file TranslationWord.php.
TranslationWord::$ID [private] |
Word's ID in the WordIndex database
Definition at line 31 of file TranslationWord.php.
TranslationWord::$Word [private] |
The word's text
Definition at line 32 of file TranslationWord.php.