PHP Class Recurr\Transformer\TextTransformer

显示文件 Open project: simshaun/recurr Class Usage Examples

Protected Properties

Property Type Description
$fragments
$translator

Public Methods

Method 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 )

Protected Methods

Method 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 method

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

addByDay() protected method

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

addByMonth() protected method

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

addByMonthDay() protected method

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

addDaily() protected method

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

addDayOfWeek() protected method

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

addFragment() protected method

protected addFragment ( $fragment )

addMonthly() protected method

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

addWeekly() protected method

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

addYearly() protected method

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

getByDayAsText() public method

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

getByMonthAsText() public method

public getByMonthAsText ( $byMonth )

getByMonthDayAsText() public method

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

getByWeekNumberAsText() public method

public getByWeekNumberAsText ( $byWeekNum )

getByYearDayAsText() public method

public getByYearDayAsText ( $byYearDay )

getListStringFromArray() protected method

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

getOrdinalNumber() protected method

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

isFullyConvertible() protected method

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

isPlural() protected method

protected isPlural ( $number )

resetFragments() public method

public resetFragments ( )

transform() public method

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

Property Details

$fragments protected_oe property

protected $fragments

$translator protected_oe property

protected $translator