ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFormPropertyGUI Class Reference

This class represents a property in a property form. More...

+ Inheritance diagram for ilFormPropertyGUI:
+ Collaboration diagram for ilFormPropertyGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 Constructor.
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.
 checkInput ()
 Check input, strip slashes etc.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 getSubForm ()
 Get sub form html.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 getItemByPostVar ($a_post_var)
 Get item by post var.
 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)

Protected Member Functions

 setType ($a_type)
 Set Type.

Protected Attributes

 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""

Detailed Description

This class represents a property in a property form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilFormPropertyGUI.php.

Constructor & Destructor Documentation

ilFormPropertyGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Reimplemented in ilTextAreaInputGUI, ilRecurrenceInputGUI, ilMultiSelectInputGUI, ilDurationInputGUI, ilCategoryWizardInputGUI, ilMatchingWizardInputGUI, ilRepositorySelectorInputGUI, ilKVPWizardInputGUI, ilNumberInputGUI, ilMatrixRowWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilSuggestedSolutionSelectorGUI, ilDateDurationInputGUI, ilCheckboxInputGUI, ilCSSRectInputGUI, ilRandomTestInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilMatchingPairWizardInputGUI, ilCheckboxGroupInputGUI, ilLocationInputGUI, ilRadioGroupInputGUI, ilTRBLColorPickerInputGUI, ilEMailInputGUI, ilFeedUrlInputGUI, ilFileWizardInputGUI, ilRadioMatrixInputGUI, ilTextWizardInputGUI, ilNumericStyleValueInputGUI, ilTRBLNumericStyleValueInputGUI, ilRandomTestROInputGUI, ilCustomInputGUI, ilRegExpInputGUI, ilBackgroundImageInputGUI, ilBackgroundPositionInputGUI, ilFontSizeInputGUI, ilTRBLBorderWidthInputGUI, ilTextInputGUI, ilLuceneQueryInputGUI, ilDateTimeInputGUI, ilAlphabetInputGUI, ilSelectInputGUI, ilPasswordInputGUI, ilImagemapFileInputGUI, ilFileInputGUI, ilNestedListInputGUI, ilScaleInputGUI, ilAdvSelectInputGUI, ilFlashFileInputGUI, ilCountrySelectInputGUI, ilNonEditableValueGUI, ilUserLoginInputGUI, ilColorPickerInputGUI, ilWidthHeightInputGUI, ilTRBLBorderStyleInputGUI, and ilImageFileInputGUI.

Definition at line 29 of file class.ilFormPropertyGUI.php.

References setDisabled(), setPostVar(), and setTitle().

{
$this->setTitle($a_title);
$this->setPostVar($a_postvar);
$this->setDisabled(false);
}

+ Here is the call graph for this function:

Member Function Documentation

ilFormPropertyGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented in ilTextAreaInputGUI, ilDateDurationInputGUI, ilDateTimeInputGUI, ilDurationInputGUI, ilTextInputGUI, ilNumberInputGUI, ilCombinationInputGUI, ilKVPWizardInputGUI, ilTRBLColorPickerInputGUI, ilPasswordInputGUI, ilCategoryWizardInputGUI, ilErrorTextWizardInputGUI, ilSingleChoiceWizardInputGUI, ilCSSRectInputGUI, ilMatchingWizardInputGUI, ilTRBLNumericStyleValueInputGUI, ilMatrixRowWizardInputGUI, ilFileInputGUI, ilSuggestedSolutionSelectorGUI, ilMultiSelectInputGUI, ilAnswerWizardInputGUI, ilImageWizardInputGUI, ilRepositorySelectorInputGUI, ilTRBLBorderWidthInputGUI, ilCheckboxInputGUI, ilRandomTestInputGUI, ilLocationInputGUI, ilMatchingPairWizardInputGUI, ilBackgroundPositionInputGUI, ilTRBLBorderStyleInputGUI, ilFileWizardInputGUI, ilCheckboxGroupInputGUI, ilRadioGroupInputGUI, ilImagemapFileInputGUI, ilRadioMatrixInputGUI, ilTextWizardInputGUI, ilCustomInputGUI, ilWidthHeightInputGUI, ilNumericStyleValueInputGUI, ilRegExpInputGUI, ilBackgroundImageInputGUI, ilAlphabetInputGUI, ilSelectInputGUI, ilAdvSelectInputGUI, ilNestedListInputGUI, ilRandomTestROInputGUI, ilRecurrenceInputGUI, ilUserLoginInputGUI, ilEMailInputGUI, ilChatSmiliesCurrentSmileyFormElement, ilFlashFileInputGUI, ilHiddenInputGUI, ilFontSizeInputGUI, ilMultipleChoiceWizardInputGUI, ilBirthdayInputGUI, ilFeedUrlInputGUI, ilLuceneQueryInputGUI, ilSolutionTitleInputGUI, ilColorPickerInputGUI, ilFormulaInputGUI, and ilNonEditableValueGUI.

Definition at line 207 of file class.ilFormPropertyGUI.php.

{
return false; // please overwrite
}
ilFormPropertyGUI::clearFromSession ( )

Clear session value.

Definition at line 347 of file class.ilFormPropertyGUI.php.

References $_SESSION, getFieldId(), and getParent().

{
$parent = $this->getParent();
if (!is_object($parent))
{
die("You must set parent for ".get_class($this)." to use serialize feature.");
}
$_SESSION["form_".$parent->getId()][$this->getFieldId()] = false;
}

+ Here is the call graph for this function:

& ilFormPropertyGUI::executeCommand ( )

Execute command.

Definition at line 39 of file class.ilFormPropertyGUI.php.

References $cmd, and $ilCtrl.

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
return $this->$cmd();
}
ilFormPropertyGUI::getAlert ( )

Get Alert Text.

Returns
string Alert Text

Definition at line 157 of file class.ilFormPropertyGUI.php.

References $alert.

{
return $this->alert;
}
ilFormPropertyGUI::getFieldId ( )

Get Post Variable.

Returns
string Post Variable

Definition at line 114 of file class.ilFormPropertyGUI.php.

References getPostVar().

Referenced by clearFromSession(), ilHiddenInputGUI\insert(), ilImageFileInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilTextWizardInputGUI\insert(), ilCheckboxGroupInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilImageWizardInputGUI\insert(), ilPasswordInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), readFromSession(), ilScaleInputGUI\render(), ilSelectInputGUI\render(), ilNonEditableValueGUI\render(), ilRadioGroupInputGUI\render(), ilCheckboxInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilFileInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilRepositorySelectorInputGUI\reset(), ilRepositorySelectorInputGUI\selectRepositoryItem(), and writeToSession().

{
$id = str_replace("[", "__", $this->getPostVar());
$id = str_replace("]", "__", $id);
return $id;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFormPropertyGUI::getHiddenTag (   $a_post_var,
  $a_value 
)

Get hidden tag (used for disabled properties)

Definition at line 373 of file class.ilFormPropertyGUI.php.

References ilUtil\prepareFormOutput().

Referenced by ilEMailInputGUI\insert(), ilTextAreaInputGUI\insert(), ilSelectInputGUI\render(), ilRadioGroupInputGUI\render(), and ilTextInputGUI\render().

{
return '<input type="hidden" name="'.$a_post_var.'" value="'.ilUtil::prepareFormOutput($a_value).'" />';
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFormPropertyGUI::getHiddenTitle ( )

Get hidden title.

Returns
string hidden title

Definition at line 285 of file class.ilFormPropertyGUI.php.

References $hidden_title.

{
}
ilFormPropertyGUI::getInfo ( )

Get Information Text.

Returns
string Information Text

Reimplemented in ilNonEditableValueGUI.

Definition at line 137 of file class.ilFormPropertyGUI.php.

References $info.

{
return $this->info;
}
ilFormPropertyGUI::getItemByPostVar (   $a_post_var)

Get item by post var.

Returns
mixed false or item object

Reimplemented in ilRadioGroupInputGUI, ilCheckboxGroupInputGUI, and ilSubEnabledFormPropertyGUI.

Definition at line 295 of file class.ilFormPropertyGUI.php.

References getPostVar().

{
if ($this->getPostVar() == $a_post_var)
{
return $this;
}
return false;
}

+ Here is the call graph for this function:

ilFormPropertyGUI::getParent ( )

Get Parent GUI object.

Returns
object parent gui object

Definition at line 247 of file class.ilFormPropertyGUI.php.

Referenced by clearFromSession(), getParentForm(), readFromSession(), ilRepositorySelectorInputGUI\render(), and writeToSession().

{
return $this->parent_gui;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::getParentForm ( )

Get Parent Form.

Returns
object Parent Form

Definition at line 227 of file class.ilFormPropertyGUI.php.

References getParent().

Referenced by ilCheckboxGroupInputGUI\insert(), and ilRadioGroupInputGUI\render().

{
return $this->getParent();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFormPropertyGUI::getPostVar ( )

Get Post Variable.

Returns
string Post Variable

Definition at line 104 of file class.ilFormPropertyGUI.php.

References $postvar.

Referenced by ilFormulaInputGUI\checkInput(), ilNonEditableValueGUI\checkInput(), ilColorPickerInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilBirthdayInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilWidthHeightInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilRadioMatrixInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilTRBLBorderStyleInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilRandomTestInputGUI\checkInput(), ilCheckboxInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilFileInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilTRBLColorPickerInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDurationInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), ilImageFileInputGUI\getDeletionFlag(), ilFlashFileInputGUI\getDeletionFlag(), getFieldId(), ilSubEnabledFormPropertyGUI\getItemByPostVar(), ilCheckboxGroupInputGUI\getItemByPostVar(), ilRadioGroupInputGUI\getItemByPostVar(), getItemByPostVar(), ilNumberInputGUI\getPostValueForComparison(), ilDateTimeInputGUI\getPostValueForComparison(), ilHiddenInputGUI\insert(), ilRandomTestROInputGUI\insert(), ilImageFileInputGUI\insert(), ilAdvSelectInputGUI\insert(), ilEMailInputGUI\insert(), ilUserLoginInputGUI\insert(), ilFontSizeInputGUI\insert(), ilRadioMatrixInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilTextWizardInputGUI\insert(), ilCheckboxGroupInputGUI\insert(), ilLocationInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilSuggestedSolutionSelectorGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilCSSRectInputGUI\insert(), ilFileWizardInputGUI\insert(), ilRandomTestInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilImageWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilPasswordInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilFlashFileInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextAreaInputGUI\insert(), ilScaleInputGUI\render(), ilNestedListInputGUI\render(), ilBirthdayInputGUI\render(), ilSelectInputGUI\render(), ilNonEditableValueGUI\render(), ilRadioGroupInputGUI\render(), ilCheckboxInputGUI\render(), ilMultiSelectInputGUI\render(), ilRepositorySelectorInputGUI\render(), ilFileInputGUI\render(), ilDurationInputGUI\render(), ilNumberInputGUI\render(), ilTextInputGUI\render(), ilDateTimeInputGUI\render(), ilDateDurationInputGUI\render(), ilBirthdayInputGUI\setValueByArray(), ilFlashFileInputGUI\setValueByArray(), ilFileInputGUI\setValueByArray(), ilUserLoginInputGUI\setValueByArray(), ilAlphabetInputGUI\setValueByArray(), ilRandomTestInputGUI\setValueByArray(), ilChatSmiliesCurrentSmileyFormElement\setValueByArray(), ilEMailInputGUI\setValueByArray(), ilAdvSelectInputGUI\setValueByArray(), ilSelectInputGUI\setValueByArray(), ilHiddenInputGUI\setValueByArray(), ilRepositorySelectorInputGUI\setValueByArray(), ilImagemapFileInputGUI\setValueByArray(), ilRadioMatrixInputGUI\setValueByArray(), ilRadioGroupInputGUI\setValueByArray(), ilCheckboxGroupInputGUI\setValueByArray(), ilCheckboxInputGUI\setValueByArray(), ilLocationInputGUI\setValueByArray(), ilNonEditableValueGUI\setValueByArray(), ilPasswordInputGUI\setValueByArray(), ilMultiSelectInputGUI\setValueByArray(), ilSuggestedSolutionSelectorGUI\setValueByArray(), ilTextInputGUI\setValueByArray(), ilCSSRectInputGUI\setValueByArray(), ilNumberInputGUI\setValueByArray(), ilBackgroundImageInputGUI\setValueByArray(), ilWidthHeightInputGUI\setValueByArray(), ilNumericStyleValueInputGUI\setValueByArray(), ilFontSizeInputGUI\setValueByArray(), ilTRBLBorderStyleInputGUI\setValueByArray(), ilDateTimeInputGUI\setValueByArray(), ilDurationInputGUI\setValueByArray(), ilBackgroundPositionInputGUI\setValueByArray(), ilTRBLNumericStyleValueInputGUI\setValueByArray(), ilTRBLBorderWidthInputGUI\setValueByArray(), ilDateDurationInputGUI\setValueByArray(), ilTextAreaInputGUI\setValueByArray(), and ilRepositorySelectorInputGUI\showRepositorySelection().

{
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::getRequired ( )

Get Required.

Returns
boolean Required

Definition at line 177 of file class.ilFormPropertyGUI.php.

References $required.

Referenced by ilFormulaInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilBirthdayInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilRadioMatrixInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilFileInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), and ilTextAreaInputGUI\checkInput().

{
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::getSubForm ( )

Get sub form html.

Reimplemented in ilSubEnabledFormPropertyGUI.

Definition at line 256 of file class.ilFormPropertyGUI.php.

{
return "";
}
ilFormPropertyGUI::getTitle ( )

Get Title.

Returns
string Title

Reimplemented in ilNonEditableValueGUI.

Definition at line 84 of file class.ilFormPropertyGUI.php.

References $title.

{
return $this->title;
}
ilFormPropertyGUI::getType ( )

Get Type.

Returns
string Type

Reimplemented in ilNonEditableValueGUI.

Definition at line 64 of file class.ilFormPropertyGUI.php.

References $type.

{
return $this->type;
}
ilFormPropertyGUI::hideSubForm ( )

Sub form hidden on init?

Reimplemented in ilCheckboxInputGUI.

Definition at line 265 of file class.ilFormPropertyGUI.php.

{
return false;
}
ilFormPropertyGUI::readFromSession ( )

Read from session.

Definition at line 360 of file class.ilFormPropertyGUI.php.

References $_SESSION, getFieldId(), getParent(), and unserializeData().

{
$parent = $this->getParent();
if (!is_object($parent))
{
die("You must set parent for ".get_class($this)." to use serialize feature.");
}
$this->unserializeData($_SESSION["form_".$parent->getId()][$this->getFieldId()]);
}

+ Here is the call graph for this function:

ilFormPropertyGUI::serializeData ( )

serialize data

Reimplemented in ilDateTimeInputGUI, ilDurationInputGUI, ilCheckboxInputGUI, and ilCombinationInputGUI.

Definition at line 308 of file class.ilFormPropertyGUI.php.

Referenced by writeToSession().

{
return serialize($this->getValue());
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setAlert (   $a_alert)

Set Alert Text.

Parameters
string$a_alertAlert Text

Definition at line 147 of file class.ilFormPropertyGUI.php.

Referenced by ilFormulaInputGUI\checkInput(), ilLuceneQueryInputGUI\checkInput(), ilFeedUrlInputGUI\checkInput(), ilBirthdayInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilFontSizeInputGUI\checkInput(), ilFlashFileInputGUI\checkInput(), ilEMailInputGUI\checkInput(), ilUserLoginInputGUI\checkInput(), ilRecurrenceInputGUI\checkInput(), ilAdvSelectInputGUI\checkInput(), ilSelectInputGUI\checkInput(), ilAlphabetInputGUI\checkInput(), ilRegExpInputGUI\checkInput(), ilBackgroundImageInputGUI\checkInput(), ilNumericStyleValueInputGUI\checkInput(), ilCustomInputGUI\checkInput(), ilRadioMatrixInputGUI\checkInput(), ilTextWizardInputGUI\checkInput(), ilImagemapFileInputGUI\checkInput(), ilRadioGroupInputGUI\checkInput(), ilCheckboxGroupInputGUI\checkInput(), ilFileWizardInputGUI\checkInput(), ilBackgroundPositionInputGUI\checkInput(), ilMatchingPairWizardInputGUI\checkInput(), ilLocationInputGUI\checkInput(), ilRandomTestInputGUI\checkInput(), ilTRBLBorderWidthInputGUI\checkInput(), ilRepositorySelectorInputGUI\checkInput(), ilImageWizardInputGUI\checkInput(), ilAnswerWizardInputGUI\checkInput(), ilMultiSelectInputGUI\checkInput(), ilSuggestedSolutionSelectorGUI\checkInput(), ilFileInputGUI\checkInput(), ilMatrixRowWizardInputGUI\checkInput(), ilTRBLNumericStyleValueInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilCSSRectInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilErrorTextWizardInputGUI\checkInput(), ilCategoryWizardInputGUI\checkInput(), ilPasswordInputGUI\checkInput(), ilKVPWizardInputGUI\checkInput(), ilNumberInputGUI\checkInput(), ilTextInputGUI\checkInput(), ilDateDurationInputGUI\checkInput(), ilTextAreaInputGUI\checkInput(), and ilCourseRegistrationGUI\fillRegistrationType().

{
$this->alert = $a_alert;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setDisabled (   $a_disabled)

Set Disabled.

Parameters
boolean$a_disabledDisabled

Definition at line 187 of file class.ilFormPropertyGUI.php.

Referenced by __construct(), ilObjPaymentSettingsGUI\getERPform(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjRoleGUI\initFormRoleProperties(), ilObjiLincClassroomGUI\initSettingsForm(), and ilObjSurveyGUI\propertiesObject().

{
$this->disabled = $a_disabled;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setHiddenTitle (   $a_val)

Set hidden title (for screenreaders)

Parameters
stringhidden title

Definition at line 275 of file class.ilFormPropertyGUI.php.

Referenced by ilImageFileInputGUI\__construct(), and ilFileInputGUI\__construct().

{
$this->hidden_title = $a_val;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setInfo (   $a_info)

Set Information Text.

Parameters
string$a_infoInformation Text

Reimplemented in ilNonEditableValueGUI.

Definition at line 127 of file class.ilFormPropertyGUI.php.

Referenced by ilSCORMCertificateAdapter\addAdditionalFormElements(), ilObjAssessmentFolderGUI\defaultsObject(), ilSetupGUI\displaySessions(), ilObjExternalToolsSettingsGUI\editGoogleMapsObject(), ilObjExternalToolsSettingsGUI\editjsMathObject(), assFileUploadGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), ilObjNewsSettingsGUI\editSettings(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilObjLearningResourcesSettingsGUI\editSettings(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjPaymentSettingsGUI\getERPform(), ilObjSurveyGUI\importExternalMailRecipientsObject(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjExerciseGUI\initAssignmentForm(), ilObjAuthSettingsGUI\initAuthModeDetermination(), ilSetupGUI\initBasicSettingsForm(), ilObjSystemFolderGUI\initBasicSettingsForm(), ilObjSystemFolderGUI\initCronJobsForm(), ilObjMailGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilObjChatServerGUI\initForm(), ilBookingScheduleGUI\initForm(), ilBookingTypeGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilObjBookingPoolGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilCourseItemAdministrationGUI\initFormEdit(), ilExternalFeedBlockGUIGen\initFormFeedBlock(), ilPDExternalFeedBlockGUI\initFormFeedBlock(), ilExternalFeedBlockGUI\initFormFeedBlock(), ilObjUserFolderGUI\initFormGeneralSettings(), ilNewsItemGUI\initFormNewsItem(), ilNewsItemGUIGen\initFormNewsItem(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilConsultationHoursGUI\initFormSequence(), ilObjTaggingSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjCalendarSettingsGUI\initFormSettings(), ilObjForumGUI\initForumCreateForm(), ilObjMDSettingsGUI\initGeneralSettingsForm(), ilPersonalProfileGUI\initGeneralSettingsForm(), ilObjContentObjectGUI\initImportForm(), ilObjGroupGUI\initInfoEditor(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilObjUserFolderGUI\initLoginSettingsForm(), ilMailOptionsGUI\initMailOptionsForm(), ilPersonalProfileGUI\initMailOptionsForm(), ilObjMediaObjectsSettingsGUI\initMediaObjectsSettingsForm(), ilShopNewsGUI\initNewsForm(), ilObjStyleSheetGUI\initPropertiesForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjExerciseGUI\initPropertiesForm(), ilObjSystemFolderGUI\initProxyForm(), ilPersonalProfileGUI\initPublicProfileForm(), ilPermission2GUI\initRoleForm(), ilShopNewsGUI\initSettingsForm(), ilECSSettingsGUI\initSettingsForm(), ilConsultationHoursGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilObjForumGUI\initTopicCreateForm(), ilObjSystemFolderGUI\initWebServicesForm(), ilObjFileGUI\initZipUploadForm(), ilObjSurveyGUI\inviteObject(), ilObjSurveyQuestionPoolGUI\propertiesObject(), ilObjQuestionPoolGUI\propertiesObject(), ilObjSurveyGUI\propertiesObject(), ilObjAdvancedEditingGUI\repositorySettingsObject(), ilRadiusSettingsGUI\settings(), ilOpenIdSettingsGUI\settings(), ilObjUserTrackingGUI\settingsObject(), ilObjPrivacySecurityGUI\showPrivacy(), and ilObjPrivacySecurityGUI\showSecurity().

{
$this->info = $a_info;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setParent (   $a_val)

Set Parent GUI object.

Parameters
objectparent gui object

Definition at line 237 of file class.ilFormPropertyGUI.php.

Referenced by setParentForm().

{
$this->parent_gui = $a_val;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setParentForm (   $a_parentform)

Set Parent Form.

Parameters
object$a_parentformParent Form

Definition at line 217 of file class.ilFormPropertyGUI.php.

References setParent().

{
$this->setParent($a_parentform);
}

+ Here is the call graph for this function:

ilFormPropertyGUI::setPostVar (   $a_postvar)

Set Post Variable.

Parameters
string$a_postvarPost Variable

Definition at line 94 of file class.ilFormPropertyGUI.php.

Referenced by __construct(), and ilObjMediaCastGUI\initAddCastItemForm().

{
$this->postvar = $a_postvar;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setRequired (   $a_required)

Set Required.

Parameters
boolean$a_requiredRequired

Definition at line 167 of file class.ilFormPropertyGUI.php.

Referenced by ilRandomTestROInputGUI\__construct(), ilRandomTestInputGUI\__construct(), FormMailCodesGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilSCORMCertificateAdapter\addAdditionalFormElements(), ilUserProfile\addStandardFieldsToForm(), ilCertificateGUI\certificateEditor(), SurveyTextQuestionGUI\editQuestion(), SurveyMetricQuestionGUI\editQuestion(), SurveySingleChoiceQuestionGUI\editQuestion(), assTextSubsetGUI\editQuestion(), SurveyMultipleChoiceQuestionGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assImagemapQuestionGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), ilRegistrationGUI\fillAgreement(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilSetupGUI\initBasicSettingsForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilSetupGUI\initClientIniForm(), ilObjStyleSheetGUI\initColorForm(), ilObjCourseGUI\initCreateForm(), ilObjMediaCastGUI\initCreationForm(), ilObjectCustomUserFieldsGUI\initFieldForm(), ilCalendarRecurrenceGUI\initForm(), ilObjChatServerGUI\initForm(), ilBookingTypeGUI\initForm(), ilBookingObjectGUI\initForm(), ilPCMapGUI\initForm(), ilObjBookingPoolGUI\initForm(), ilMailingListsGUI\initForm(), ilLDAPSettingsGUI\initForm(), ilObjUserGUI\initForm(), ilObjGroupGUI\initForm(), ilBookmarkAdministrationGUI\initFormBookmarkFolder(), ilConditionHandlerInterface\initFormCondition(), ilObjFolderGUI\initFormCreate(), ilObjFolderGUI\initFormEdit(), ilObjLinkResourceGUI\initFormLink(), ilObjSearchSettingsGUI\initFormLuceneSettings(), ilContainerGUI\initFormPasswordInstruction(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilObjLinkResourceGUI\initFormSettings(), ilObjSCORM2004LearningModuleGUI\initGlossaryCreationForm(), ilObjStyleSheetGUI\initImageForm(), ilBookmarkAdministrationGUI\initImportBookmarksForm(), ilNoteGUI\initNoteForm(), ilPersonalProfileGUI\initPasswordForm(), ilObjContentObjectGUI\initPropertiesForm(), ilObjExerciseGUI\initPropertiesForm(), ilObjForumGUI\initReplyEditForm(), ilECSSettingsGUI\initSettingsForm(), ilObjiLincClassroomGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjiLincCourseGUI\initSettingsForm(), ilObjFileGUI\initSingleUploadForm(), ilObjChatServerGUI\initSmiliesEditForm(), ilObjChatServerGUI\initSmiliesForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilObjFileGUI\initZipUploadForm(), SurveyQuestionGUI\material(), ilSurveyPhrasesGUI\phraseEditor(), ilRadiusSettingsGUI\settings(), ilObjCertificateSettingsGUI\settings(), and ilMailFormGUI\showForm().

{
$this->required = $a_required;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setTitle (   $a_title)

Set Title.

Parameters
string$a_titleTitle

Reimplemented in ilNonEditableValueGUI.

Definition at line 74 of file class.ilFormPropertyGUI.php.

Referenced by __construct(), ilObjMediaCastGUI\initCreationForm(), ilObjContentObjectGUI\initCreationForm(), ilObjSCORM2004LearningModuleGUI\initGlossaryCreationForm(), and ilObjWikiGUI\initSettingsForm().

{
$this->title = $a_title;
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::setType (   $a_type)
protected
ilFormPropertyGUI::unserializeData (   $a_data)

unserialize data

Reimplemented in ilDateTimeInputGUI, ilDurationInputGUI, ilCheckboxInputGUI, and ilCombinationInputGUI.

Definition at line 316 of file class.ilFormPropertyGUI.php.

References $data.

Referenced by readFromSession().

{
$data = unserialize($a_data);
if ($data)
{
$this->setValue($data);
}
else
{
$this->setValue(false);
}
}

+ Here is the caller graph for this function:

ilFormPropertyGUI::writeToSession ( )

Write to session.

Definition at line 333 of file class.ilFormPropertyGUI.php.

References $_SESSION, getFieldId(), getParent(), and serializeData().

Referenced by ilRepositorySelectorInputGUI\reset(), ilRepositorySelectorInputGUI\selectRepositoryItem(), and ilTable2GUI\SetFilterValue().

{
$parent = $this->getParent();
if (!is_object($parent))
{
die("You must set parent for ".get_class($this)." to use serialize feature.");
}
$_SESSION["form_".$parent->getId()][$this->getFieldId()] =
$this->serializeData();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilFormPropertyGUI::$alert
protected

Definition at line 17 of file class.ilFormPropertyGUI.php.

Referenced by getAlert().

ilFormPropertyGUI::$hidden_title = ""
protected

Definition at line 21 of file class.ilFormPropertyGUI.php.

Referenced by getHiddenTitle().

ilFormPropertyGUI::$info
protected

Definition at line 16 of file class.ilFormPropertyGUI.php.

Referenced by getInfo().

ilFormPropertyGUI::$parentform
protected

Definition at line 20 of file class.ilFormPropertyGUI.php.

ilFormPropertyGUI::$parentgui
protected

Definition at line 19 of file class.ilFormPropertyGUI.php.

ilFormPropertyGUI::$postvar
protected

Definition at line 15 of file class.ilFormPropertyGUI.php.

Referenced by getPostVar().

ilFormPropertyGUI::$required = false
protected

Definition at line 18 of file class.ilFormPropertyGUI.php.

Referenced by getRequired().

ilFormPropertyGUI::$title
protected

Definition at line 14 of file class.ilFormPropertyGUI.php.

Referenced by getTitle(), and ilRepositorySelectorInputGUI\render().


The documentation for this class was generated from the following file: