PHP Class Kdyby\Translation\Phrase

Author: Filip Procházka ([email protected])
Inheritance: extends Nette\Object
Datei anzeigen Open project: kdyby/translation Class Usage Examples

Public Properties

Property Type Description
$count integer
$domain string
$locale string
$message string
$parameters array

Public Methods

Method Description
__construct ( $message, $count = NULL, $parameters = NULL, $domain = NULL, $locale = NULL )
__sleep ( )
__toString ( )
setTranslator ( Translator $translator )
translate ( Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL )

Method Details

__construct() public method

public __construct ( $message, $count = NULL, $parameters = NULL, $domain = NULL, $locale = NULL )

__sleep() public method

public __sleep ( )

__toString() public method

public __toString ( )

setTranslator() public method

public setTranslator ( Translator $translator )
$translator Translator

translate() public method

public translate ( Translator $translator, $count = NULL, array $parameters = [], $domain = NULL, $locale = NULL )
$translator Translator
$parameters array

Property Details

$count public_oe property

public int $count
return integer

$domain public_oe property

public string $domain
return string

$locale public_oe property

public string $locale
return string

$message public_oe property

public string $message
return string

$parameters public_oe property

public array $parameters
return array