XarayaTranslationMemory  1.6
Public Member Functions | Private Attributes | List of all members
TranslationWord Class Reference

Public Member Functions

 __construct ()
 
 SetID ($id)
 
 GetID ()
 
 SetWord ($word)
 
 GetWord ()
 
 SetCount ($count)
 
 GetCount ()
 

Private Attributes

 $ID
 
 $Word
 
 $Count
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

TranslationWord::__construct ( )

Create an empy word.

Definition at line 37 of file TranslationWord.php.

Member Function Documentation

◆ GetCount()

TranslationWord::GetCount ( )

Get the occurences of this word in your sentence.

Definition at line 87 of file TranslationWord.php.

References $Count.

◆ GetID()

TranslationWord::GetID ( )

Get the WordIndex ID of this word.

Definition at line 55 of file TranslationWord.php.

References $ID.

◆ GetWord()

TranslationWord::GetWord ( )

Get this word's actual text.

Definition at line 71 of file TranslationWord.php.

References $Word.

◆ SetCount()

TranslationWord::SetCount (   $count)

Set the occurences of this word in your sentence.

Definition at line 79 of file TranslationWord.php.

◆ SetID()

TranslationWord::SetID (   $id)

Set the WordIndex ID of this word.

Definition at line 47 of file TranslationWord.php.

◆ SetWord()

TranslationWord::SetWord (   $word)

Set this word's actual text.

Definition at line 63 of file TranslationWord.php.

Member Data Documentation

◆ $Count

TranslationWord::$Count
private

Number of occurences in the current context

Definition at line 31 of file TranslationWord.php.

Referenced by GetCount().

◆ $ID

TranslationWord::$ID
private

Word's ID in the WordIndex database

Definition at line 29 of file TranslationWord.php.

Referenced by GetID().

◆ $Word

TranslationWord::$Word
private

The word's text

Definition at line 30 of file TranslationWord.php.

Referenced by GetWord().


The documentation for this class was generated from the following file: