Свойство | Тип | Описание | |
---|---|---|---|
$translator | Symfony\Component\Translation\TranslatorInterface |
Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Translation\TranslatorInterface $translator ) | Constructor method | |
distanceOfTimeInWordsFilter ( string | DateTime $from_time, string | DateTime $to_time = null, boolean $include_seconds = false, boolean $include_months = false ) : string | Reports the approximate distance in time between two times given in seconds or in a valid ISO string like. | |
getFilters ( ) | ||
getName ( ) : string | Returns the name of the extension. | |
timeAgoInWordsFilter ( $from_time, boolean $include_seconds = false, boolean $include_months = false ) : mixed | Like distance_of_time_in_words, but where to_time is fixed to timestamp() |
Метод | Описание | |
---|---|---|
future ( integer $distance_in_minutes, boolean $include_seconds, $distance_in_seconds ) : mixed |
public __construct ( Symfony\Component\Translation\TranslatorInterface $translator ) | ||
$translator | Symfony\Component\Translation\TranslatorInterface |
public distanceOfTimeInWordsFilter ( string | DateTime $from_time, string | DateTime $to_time = null, boolean $include_seconds = false, boolean $include_months = false ) : string | ||
$from_time | string | DateTime | |
$to_time | string | DateTime | |
$include_seconds | boolean | True to return distance in seconds when it's lower than a minute. |
$include_months | boolean | |
Результат | string |