PHP Class Recurr\Transformer\TextTransformer

Afficher le fichier Open project: simshaun/recurr Class Usage Examples

Protected Properties

Свойство Type Description
$fragments
$translator

Méthodes publiques

Méthode Description
__construct ( Recurr\Transformer\TranslatorInterface $translator = null )
getByDayAsText ( $byDay, $listSeparator = 'and' )
getByMonthAsText ( $byMonth )
getByMonthDayAsText ( $byMonthDay, $listSeparator = 'and' )
getByWeekNumberAsText ( $byWeekNum )
getByYearDayAsText ( $byYearDay )
resetFragments ( )
transform ( Rule $rule )

Méthodes protégées

Méthode Description
addByDay ( Rule $rule )
addByMonth ( Rule $rule )
addByMonthDay ( Rule $rule )
addDaily ( Rule $rule )
addDayOfWeek ( Rule $rule )
addFragment ( $fragment )
addMonthly ( Rule $rule )
addWeekly ( Rule $rule )
addYearly ( Rule $rule )
getListStringFromArray ( $values, $separator = 'and' )
getOrdinalNumber ( $number, $hasNegatives = false, $dayInMonth = false )
isFullyConvertible ( Rule $rule )
isPlural ( $number )

Method Details

__construct() public méthode

public __construct ( Recurr\Transformer\TranslatorInterface $translator = null )
$translator Recurr\Transformer\TranslatorInterface

addByDay() protected méthode

protected addByDay ( Rule $rule )
$rule Recurr\Rule

addByMonth() protected méthode

protected addByMonth ( Rule $rule )
$rule Recurr\Rule

addByMonthDay() protected méthode

protected addByMonthDay ( Rule $rule )
$rule Recurr\Rule

addDaily() protected méthode

protected addDaily ( Rule $rule )
$rule Recurr\Rule

addDayOfWeek() protected méthode

protected addDayOfWeek ( Rule $rule )
$rule Recurr\Rule

addFragment() protected méthode

protected addFragment ( $fragment )

addMonthly() protected méthode

protected addMonthly ( Rule $rule )
$rule Recurr\Rule

addWeekly() protected méthode

protected addWeekly ( Rule $rule )
$rule Recurr\Rule

addYearly() protected méthode

protected addYearly ( Rule $rule )
$rule Recurr\Rule

getByDayAsText() public méthode

public getByDayAsText ( $byDay, $listSeparator = 'and' )

getByMonthAsText() public méthode

public getByMonthAsText ( $byMonth )

getByMonthDayAsText() public méthode

public getByMonthDayAsText ( $byMonthDay, $listSeparator = 'and' )

getByWeekNumberAsText() public méthode

public getByWeekNumberAsText ( $byWeekNum )

getByYearDayAsText() public méthode

public getByYearDayAsText ( $byYearDay )

getListStringFromArray() protected méthode

protected getListStringFromArray ( $values, $separator = 'and' )

getOrdinalNumber() protected méthode

protected getOrdinalNumber ( $number, $hasNegatives = false, $dayInMonth = false )

isFullyConvertible() protected méthode

protected isFullyConvertible ( Rule $rule )
$rule Recurr\Rule

isPlural() protected méthode

protected isPlural ( $number )

resetFragments() public méthode

public resetFragments ( )

transform() public méthode

public transform ( Rule $rule )
$rule Recurr\Rule

Property Details

$fragments protected_oe property

protected $fragments

$translator protected_oe property

protected $translator