本文整理汇总了PHP中ilDateTimeInputGUI::getTableFilterHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP ilDateTimeInputGUI::getTableFilterHTML方法的具体用法?PHP ilDateTimeInputGUI::getTableFilterHTML怎么用?PHP ilDateTimeInputGUI::getTableFilterHTML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilDateTimeInputGUI
的用法示例。
在下文中一共展示了ilDateTimeInputGUI::getTableFilterHTML方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildUntilSelection
/**
* build selection for ending date
*
* @access protected
* @param object tpl
* @return
*/
protected function buildUntilSelection($tpl)
{
if ($this->isUnlimitedRecurrenceAllowed()) {
$tpl->setVariable('TXT_NO_ENDING', $this->lng->txt('cal_no_ending'));
}
$tpl->setVariable('TXT_UNTIL_CREATE', $this->lng->txt('cal_create'));
$tpl->setVariable('TXT_APPOINTMENTS', $this->lng->txt('cal_appointments'));
$tpl->setVariable('VAL_COUNT', $this->recurrence->getFrequenceUntilCount() ? $this->recurrence->getFrequenceUntilCount() : 2);
if ($this->recurrence->getFrequenceUntilDate()) {
$tpl->setVariable('UNTIL_END_CHECKED', 'checked="checked"');
} elseif ($this->recurrence->getFrequenceUntilCount() or !$this->isUnlimitedRecurrenceAllowed()) {
$tpl->setVariable('UNTIL_COUNT_CHECKED', 'checked="checked"');
} else {
$tpl->setVariable('UNTIL_NO_CHECKED', 'checked="checked"');
}
$tpl->setVariable('TXT_UNTIL_END', $this->lng->txt('cal_repeat_until'));
$dt = new ilDateTimeInputGUI('', 'until_end');
$dt->setDate($this->recurrence->getFrequenceUntilDate() ? $this->recurrence->getFrequenceUntilDate() : new ilDate(time(), IL_CAL_UNIX));
$tpl->setVariable('UNTIL_END_DATE', $dt->getTableFilterHTML());
}
示例2: buildUntilSelection
/**
* build selection for ending date
*
* @access protected
* @param object tpl
* @return
*/
protected function buildUntilSelection($tpl)
{
$tpl->setVariable('TXT_NO_ENDING', $this->lng->txt('cal_no_ending'));
$tpl->setVariable('TXT_UNTIL_CREATE', $this->lng->txt('cal_create'));
$tpl->setVariable('TXT_APPOINTMENTS', $this->lng->txt('cal_appointments'));
if ($this->freq_end instanceof ilDate) {
$tpl->setVariable('UNTIL_END_CHECKED', 'checked="checked"');
} else {
$tpl->setVariable('UNTIL_NO_CHECKED', 'checked="checked"');
}
$tpl->setVariable('TXT_UNTIL_END', $this->lng->txt('cal_repeat_until'));
$dt = new ilDateTimeInputGUI('', 'until_end');
$dt->setDate($this->freq_end instanceof ilDate ? $this->freq_end : new ilDate(time(), IL_CAL_UNIX));
$tpl->setVariable('UNTIL_END_DATE', $dt->getTableFilterHTML());
}