ActionScheduler_Abstract_RecurringSchedule::__construct()
Метод класса: ActionScheduler_Abstract_RecurringSchedule{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$ActionScheduler_Abstract_RecurringSchedule = new ActionScheduler_Abstract_RecurringSchedule(); $ActionScheduler_Abstract_RecurringSchedule->__construct( $date, $recurrence, $first );
- $date(DateTime) (обязательный)
- The date & time to run the action.
- $recurrence(разное) (обязательный)
- The data used to determine the schedule's recurrance.
- $first(DateTime|null)
- (Optional) The date & time the first instance of this interval schedule ran.
По умолчанию: null, meaning this is the first instance
Код ActionScheduler_Abstract_RecurringSchedule::__construct() ActionScheduler Abstract RecurringSchedule:: construct WC 7.7.2
public function __construct( DateTime $date, $recurrence, DateTime $first = null ) { parent::__construct( $date ); $this->first_date = empty( $first ) ? $date : $first; $this->recurrence = $recurrence; }