PHP Class Newscoop\Entity\Translation

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$language Language
$phrase_id integer
$translationText integer

Méthodes publiques

Méthode Description
__construct ( integer $phraseId )
__toString ( ) : string Return translation text when echo this object
getLanguage ( ) : Language Gets the value of language.
getPhraseId ( ) : integer Gets the value of phrase_id.
getTranslationText ( ) : integer Gets the value of translationText.
setLanguage ( Language $language ) : self Sets the value of language.
setPhraseId ( integer $phrase_id ) : self Sets the value of phrase_id.
setTranslationText ( integer $translationText ) : self Sets the value of translationText.

Method Details

__construct() public méthode

public __construct ( integer $phraseId )
$phraseId integer Current phrase id for translations from autoid table.

__toString() public méthode

Return translation text when echo this object
public __toString ( ) : string
Résultat string

getLanguage() public méthode

Gets the value of language.
public getLanguage ( ) : Language
Résultat Language

getPhraseId() public méthode

Gets the value of phrase_id.
public getPhraseId ( ) : integer
Résultat integer

getTranslationText() public méthode

Gets the value of translationText.
public getTranslationText ( ) : integer
Résultat integer

setLanguage() public méthode

Sets the value of language.
public setLanguage ( Language $language ) : self
$language Language the language
Résultat self

setPhraseId() public méthode

Sets the value of phrase_id.
public setPhraseId ( integer $phrase_id ) : self
$phrase_id integer the phrase_id
Résultat self

setTranslationText() public méthode

Sets the value of translationText.
public setTranslationText ( integer $translationText ) : self
$translationText integer the translation text
Résultat self

Property Details

$language protected_oe property

protected Language,Newscoop\Entity $language
Résultat Language

$phrase_id protected_oe property

protected int $phrase_id
Résultat integer

$translationText protected_oe property

protected int $translationText
Résultat integer