ILIAS
Release_4_1_x_branch Revision 61804
|
This class represents an input GUI for recurring events/appointments (course events or calendar appointments) More...
Public Member Functions | |
__construct ($a_title, $a_postvar) | |
Constructor. | |
checkInput () | |
check input | |
setRecurrence ($a_rec) | |
set recurrence object | |
getRecurrence () | |
Get Recurrence. | |
allowUnlimitedRecurrences ($a_status) | |
Allow unlimited recurrences. | |
isUnlimitedRecurrenceAllowed () | |
Check if unlimited recurrence is allowed. | |
setEnabledSubForms ($a_sub_forms) | |
set enabled subforms | |
getEnabledSubForms () | |
get enabled subforms | |
insert ($a_tpl) | |
insert | |
Public Member Functions inherited from ilCustomInputGUI | |
setHtml ($a_html) | |
Set Html. | |
getHtml () | |
Get Html. | |
setValueByArray ($a_values) | |
Set value by array. | |
insert (&$a_tpl) | |
Insert property html. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
Public Member Functions inherited from ilFormPropertyGUI | |
& | executeCommand () |
Execute command. | |
getType () | |
Get Type. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setPostVar ($a_postvar) | |
Set Post Variable. | |
getPostVar () | |
Get Post Variable. | |
getFieldId () | |
Get Post Variable. | |
setInfo ($a_info) | |
Set Information Text. | |
getInfo () | |
Get Information Text. | |
setAlert ($a_alert) | |
Set Alert Text. | |
getAlert () | |
Get Alert Text. | |
setRequired ($a_required) | |
Set Required. | |
getRequired () | |
Get Required. | |
setDisabled ($a_disabled) | |
Set Disabled. | |
getDisabled () | |
Get Disabled. | |
setParentForm ($a_parentform) | |
Set Parent Form. | |
getParentForm () | |
Get Parent Form. | |
setParent ($a_val) | |
Set Parent GUI object. | |
getParent () | |
Get Parent GUI object. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
serializeData () | |
serialize data | |
unserializeData ($a_data) | |
unserialize data | |
writeToSession () | |
Write to session. | |
clearFromSession () | |
Clear session value. | |
readFromSession () | |
Read from session. | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) |
Data Fields | |
const | REC_LIMITED = 2 |
const | REC_UNLIMITED = 1 |
Protected Member Functions | |
loadRecurrence () | |
load recurrence settings protected | |
buildWeekDaySelection ($tpl) | |
build weekday checkboxes | |
buildMonthlyByDaySelection ($tpl) | |
build monthly by day list (e.g second monday) | |
buildMonthlyByMonthDaySelection ($tpl) | |
build monthly bymonthday selection | |
buildYearlyByMonthDaySelection ($tpl) | |
protected | |
buildYearlyByDaySelection ($tpl) | |
protected | |
buildUntilSelection ($tpl) | |
build selection for ending date |
Protected Attributes | |
$lng | |
$recurrence | |
$user_settings | |
$allow_unlimited_recurrences = true | |
$enabled_subforms | |
Protected Attributes inherited from ilCustomInputGUI | |
$html | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" |
This class represents an input GUI for recurring events/appointments (course events or calendar appointments)
Definition at line 37 of file class.ilRecurrenceInputGUI.php.
ilRecurrenceInputGUI::__construct | ( | $a_title, | |
$a_postvar | |||
) |
Constructor.
public
string | title |
string | postvar |
Reimplemented from ilCustomInputGUI.
Definition at line 62 of file class.ilRecurrenceInputGUI.php.
References $lng, $tpl, ilCalendarUserSettings\_getInstanceByUserId(), and setRecurrence().
ilRecurrenceInputGUI::allowUnlimitedRecurrences | ( | $a_status | ) |
Allow unlimited recurrences.
object | $a_status |
Definition at line 247 of file class.ilRecurrenceInputGUI.php.
Referenced by ilObjSessionGUI\initForm().
|
protected |
build monthly by day list (e.g second monday)
protected
@return |
Definition at line 413 of file class.ilRecurrenceInputGUI.php.
References $tpl, ilCalendarUtil\_numericDayToString(), and ilUtil\formSelect().
Referenced by insert().
|
protected |
build monthly bymonthday selection
protected
@return |
Definition at line 505 of file class.ilRecurrenceInputGUI.php.
References $tpl, and ilUtil\formSelect().
Referenced by insert().
|
protected |
build selection for ending date
protected
object | tpl |
Definition at line 705 of file class.ilRecurrenceInputGUI.php.
References $tpl, IL_CAL_UNIX, and isUnlimitedRecurrenceAllowed().
Referenced by insert().
|
protected |
build weekday checkboxes
protected
object | tpl |
Definition at line 377 of file class.ilRecurrenceInputGUI.php.
References $tpl, and ilCalendarUtil\_numericDayToString().
Referenced by insert().
|
protected |
protected
@return |
Definition at line 617 of file class.ilRecurrenceInputGUI.php.
References $tpl, ilCalendarUtil\_numericDayToString(), ilCalendarUtil\_numericMonthToString(), and ilUtil\formSelect().
Referenced by insert().
|
protected |
protected
objet | tpl |
Definition at line 550 of file class.ilRecurrenceInputGUI.php.
References $tpl, ilCalendarUtil\_numericMonthToString(), and ilUtil\formSelect().
Referenced by insert().
ilRecurrenceInputGUI::checkInput | ( | ) |
check input
public
@return |
Reimplemented from ilCustomInputGUI.
Definition at line 84 of file class.ilRecurrenceInputGUI.php.
References $_POST, $lng, loadRecurrence(), REC_LIMITED, and ilFormPropertyGUI\setAlert().
ilRecurrenceInputGUI::getEnabledSubForms | ( | ) |
get enabled subforms
public
Definition at line 279 of file class.ilRecurrenceInputGUI.php.
References $enabled_subforms.
Referenced by insert().
ilRecurrenceInputGUI::getRecurrence | ( | ) |
Get Recurrence.
Definition at line 237 of file class.ilRecurrenceInputGUI.php.
References $recurrence.
Referenced by loadRecurrence().
ilRecurrenceInputGUI::insert | ( | $a_tpl | ) |
insert
public
@return |
Definition at line 291 of file class.ilRecurrenceInputGUI.php.
References $tpl, buildMonthlyByDaySelection(), buildMonthlyByMonthDaySelection(), buildUntilSelection(), buildWeekDaySelection(), buildYearlyByDaySelection(), buildYearlyByMonthDaySelection(), ilUtil\formSelect(), getEnabledSubForms(), IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, and IL_CAL_FREQ_YEARLY.
ilRecurrenceInputGUI::isUnlimitedRecurrenceAllowed | ( | ) |
Check if unlimited recurrence is allowed.
Definition at line 256 of file class.ilRecurrenceInputGUI.php.
References $allow_unlimited_recurrences.
Referenced by buildUntilSelection().
|
protected |
load recurrence settings protected
Definition at line 113 of file class.ilRecurrenceInputGUI.php.
References $_POST, getRecurrence(), IL_CAL_FKT_GETDATE, IL_CAL_FREQ_DAILY, IL_CAL_FREQ_MONTHLY, IL_CAL_FREQ_WEEKLY, IL_CAL_FREQ_YEARLY, and ilUtil\stripSlashes().
Referenced by checkInput().
ilRecurrenceInputGUI::setEnabledSubForms | ( | $a_sub_forms | ) |
set enabled subforms
public
array(IL_CAL_FREQ_DAILY,IL_CAL_FREQ_WEEKLY...) |
Definition at line 268 of file class.ilRecurrenceInputGUI.php.
Referenced by ilConsultationHoursGUI\initFormSequence().
ilRecurrenceInputGUI::setRecurrence | ( | $a_rec | ) |
set recurrence object
public
@return |
Definition at line 228 of file class.ilRecurrenceInputGUI.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilRecurrenceInputGUI.php.
Referenced by isUnlimitedRecurrenceAllowed().
|
protected |
Definition at line 49 of file class.ilRecurrenceInputGUI.php.
Referenced by getEnabledSubForms().
|
protected |
Definition at line 42 of file class.ilRecurrenceInputGUI.php.
Referenced by __construct(), and checkInput().
|
protected |
Definition at line 44 of file class.ilRecurrenceInputGUI.php.
Referenced by getRecurrence().
|
protected |
Definition at line 45 of file class.ilRecurrenceInputGUI.php.
const ilRecurrenceInputGUI::REC_LIMITED = 2 |
Definition at line 39 of file class.ilRecurrenceInputGUI.php.
Referenced by checkInput().
const ilRecurrenceInputGUI::REC_UNLIMITED = 1 |
Definition at line 40 of file class.ilRecurrenceInputGUI.php.