ILIAS
release_8 Revision v8.19
|
class ilConditionHandlerGUI More...
Public Member Functions | |
__construct (int $a_ref_id=null) | |
setBackButtons (array $a_btn_arr) | |
getBackButtons () | |
executeCommand () | |
setAutomaticValidation (bool $a_status) | |
getAutomaticValidation () | |
setTargetId (int $a_target_id) | |
getTargetId () | |
setTargetRefId (int $a_target_ref_id) | |
getTargetRefId () | |
setTargetType (string $a_target_type) | |
getTargetType () | |
setTargetTitle (string $a_target_title) | |
isTargetReferenced () | |
Check if target has refernce id. More... | |
getTargetTitle () | |
edit (?ilPropertyFormGUI $form=null) | |
updateCondition () | |
askDelete () | |
delete () | |
selector () | |
add (?ilPropertyFormGUI $form=null) | |
assign () | |
assign new trigger condition to target More... | |
getConditionsOfTarget () | |
Static Public Member Functions | |
static | translateOperator (int $a_obj_id, string $a_operator) |
Protected Member Functions | |
initConditionIdFromQuery () | |
initConditionsIdsFromPost () | |
initItemIdsFromPost () | |
initObligatoryItemsFromPost () | |
initListModeFromPost () | |
initSourceIdFromQuery () | |
getConditionHandler () | |
listConditions () | |
saveObligatorySettings () | |
saveObligatoryList () | |
showObligatoryForm (string $list_mode=self::LIST_MODE_ALL) | |
Protected Attributes | |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilGlobalTemplateInterface | $tpl |
ilTree | $tree |
ilAccessHandler | $access |
ilToolbarGUI | $toolbar |
ilConditionUtil | $conditionUtil |
ilObjectDefinition | $objectDefinition |
ilConditionHandler | $ch_obj |
ilObject | $target_obj = null |
int | $target_id = 0 |
string | $target_type = '' |
string | $target_title = '' |
int | $target_ref_id = 0 |
bool | $automatic_validation = true |
Private Member Functions | |
initFormCondition (int $a_source_id, int $a_condition_id=0, string $a_mode='add') | |
Private Attributes | |
const | LIST_MODE_UNDEFINED = 'undefined' |
const | LIST_MODE_ALL = 'all' |
const | LIST_MODE_SUBSET = 'subset' |
GlobalHttpState | $http |
Factory | $refinery |
class ilConditionHandlerGUI
Definition at line 32 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::__construct | ( | int | $a_ref_id = null | ) |
Definition at line 58 of file class.ilConditionHandlerGUI.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObject\getId(), ilObjectFactory\getInstanceByRefId(), ilObject\getRefId(), ilObject\getTitle(), ilObject\getType(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\objectDefinition(), ILIAS\Repository\refinery(), setTargetId(), setTargetRefId(), setTargetTitle(), setTargetType(), and ILIAS\Repository\toolbar().
ilConditionHandlerGUI::add | ( | ?ilPropertyFormGUI | $form = null | ) |
Definition at line 618 of file class.ilConditionHandlerGUI.php.
References initFormCondition(), initSourceIdFromQuery(), and selector().
Referenced by assign().
ilConditionHandlerGUI::askDelete | ( | ) |
Definition at line 552 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getCondition(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), initConditionsIdsFromPost(), listConditions(), and ILIAS\Repository\lng().
ilConditionHandlerGUI::assign | ( | ) |
assign new trigger condition to target
Definition at line 635 of file class.ilConditionHandlerGUI.php.
References add(), ILIAS\Repository\ctrl(), getAutomaticValidation(), ilObjectLP\getInstance(), ilObjectFactory\getInstanceByRefId(), getTargetId(), getTargetRefId(), getTargetType(), initFormCondition(), initItemIdsFromPost(), initSourceIdFromQuery(), ILIAS\Repository\lng(), ilConditionHandler\lookupPersistedHiddenStatusByTarget(), selector(), and ilConditionHandler\UNIQUE_CONDITIONS.
ilConditionHandlerGUI::delete | ( | ) |
Definition at line 584 of file class.ilConditionHandlerGUI.php.
References ILIAS\Repository\ctrl(), initConditionsIdsFromPost(), listConditions(), and ILIAS\Repository\lng().
ilConditionHandlerGUI::edit | ( | ?ilPropertyFormGUI | $form = null | ) |
Definition at line 479 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getCondition(), ILIAS\Repository\ctrl(), initConditionIdFromQuery(), initFormCondition(), and listConditions().
Referenced by updateCondition().
ilConditionHandlerGUI::executeCommand | ( | ) |
Definition at line 201 of file class.ilConditionHandlerGUI.php.
References $DIC, $ilErr, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
ilConditionHandlerGUI::getAutomaticValidation | ( | ) |
Definition at line 228 of file class.ilConditionHandlerGUI.php.
References $automatic_validation.
Referenced by assign().
ilConditionHandlerGUI::getBackButtons | ( | ) |
Definition at line 193 of file class.ilConditionHandlerGUI.php.
References ilSession\get(), and ilSession\has().
|
protected |
Definition at line 183 of file class.ilConditionHandlerGUI.php.
References $ch_obj.
Referenced by selector().
ilConditionHandlerGUI::getConditionsOfTarget | ( | ) |
Definition at line 697 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getPersistedConditionsOfTarget(), getTargetId(), getTargetRefId(), and getTargetType().
ilConditionHandlerGUI::getTargetId | ( | ) |
Definition at line 238 of file class.ilConditionHandlerGUI.php.
References $target_id.
Referenced by assign(), getConditionsOfTarget(), listConditions(), saveObligatoryList(), saveObligatorySettings(), and showObligatoryForm().
ilConditionHandlerGUI::getTargetRefId | ( | ) |
Definition at line 248 of file class.ilConditionHandlerGUI.php.
References $target_ref_id.
Referenced by assign(), getConditionsOfTarget(), isTargetReferenced(), listConditions(), saveObligatoryList(), saveObligatorySettings(), selector(), showObligatoryForm(), and updateCondition().
ilConditionHandlerGUI::getTargetTitle | ( | ) |
Definition at line 276 of file class.ilConditionHandlerGUI.php.
References $target_title.
Referenced by initFormCondition().
ilConditionHandlerGUI::getTargetType | ( | ) |
Definition at line 258 of file class.ilConditionHandlerGUI.php.
References $target_type.
Referenced by assign(), getConditionsOfTarget(), initFormCondition(), listConditions(), saveObligatoryList(), saveObligatorySettings(), and updateCondition().
|
protected |
Definition at line 87 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by edit(), and updateCondition().
|
protected |
Definition at line 98 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by askDelete(), and delete().
|
private |
Definition at line 714 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getCondition(), ilConditionHandler\_isReferenceHandlingOptional(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ilObjectLP\getInstance(), getTargetTitle(), getTargetType(), ILIAS\Repository\lng(), ilFormPropertyGUI\setInfo(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilConditionHandler\SHARED_CONDITIONS, and ilConditionHandler\UNIQUE_CONDITIONS.
Referenced by add(), assign(), edit(), and updateCondition().
|
protected |
Definition at line 113 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by assign(), and updateCondition().
|
protected |
Definition at line 143 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by listConditions().
|
protected |
Definition at line 128 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by saveObligatoryList().
|
protected |
Definition at line 154 of file class.ilConditionHandlerGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by add(), and assign().
ilConditionHandlerGUI::isTargetReferenced | ( | ) |
Check if target has refernce id.
Definition at line 271 of file class.ilConditionHandlerGUI.php.
References getTargetRefId().
|
protected |
Definition at line 281 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getPersistedConditionsOfTarget(), ILIAS\Repository\ctrl(), ilConditionHandler\getPersistedOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), initListModeFromPost(), ILIAS\Repository\lng(), showObligatoryForm(), and ILIAS\Repository\toolbar().
Referenced by askDelete(), delete(), edit(), and updateCondition().
|
protected |
Definition at line 388 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getPersistedConditionsOfTarget(), ilConditionHandler\calculatePersistedRequiredTriggers(), ILIAS\Repository\ctrl(), getTargetId(), getTargetRefId(), getTargetType(), initObligatoryItemsFromPost(), ILIAS\Repository\lng(), and ilConditionHandler\updateObligatory().
|
protected |
Definition at line 335 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getPersistedConditionsOfTarget(), ILIAS\Repository\ctrl(), ilConditionHandler\getPersistedOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), ILIAS\Repository\lng(), ilConditionHandler\saveNumberOfRequiredTriggers(), showObligatoryForm(), and ilConditionHandler\updateObligatory().
ilConditionHandlerGUI::selector | ( | ) |
Definition at line 600 of file class.ilConditionHandlerGUI.php.
References getConditionHandler(), getTargetRefId(), and ILIAS\Repository\lng().
Referenced by add(), and assign().
ilConditionHandlerGUI::setAutomaticValidation | ( | bool | $a_status | ) |
Definition at line 223 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::setBackButtons | ( | array | $a_btn_arr | ) |
Definition at line 188 of file class.ilConditionHandlerGUI.php.
References ilSession\set().
ilConditionHandlerGUI::setTargetId | ( | int | $a_target_id | ) |
Definition at line 233 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetRefId | ( | int | $a_target_ref_id | ) |
Definition at line 243 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetTitle | ( | string | $a_target_title | ) |
Definition at line 263 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetType | ( | string | $a_target_type | ) |
Definition at line 253 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
|
protected |
Definition at line 422 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getPersistedConditionsOfTarget(), ILIAS\Repository\ctrl(), getTargetId(), getTargetRefId(), ILIAS\Repository\lng(), ilConditionHandler\lookupObligatoryConditionsOfTarget(), ilConditionHandler\lookupPersistedHiddenStatusByTarget(), ILIAS\Repository\objectDefinition(), ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), and ilRadioGroupInputGUI\setValue().
Referenced by listConditions(), and saveObligatorySettings().
|
static |
Definition at line 165 of file class.ilConditionHandlerGUI.php.
References $DIC, ilLPObjSettings\_mode2Text(), ilLanguage\loadLanguageModule(), ilConditionHandler\OPERATOR_LP, and ilLanguage\txt().
Referenced by ilInfoScreenGUI\addPreconditionSection(), and ilObjectListGUI\parseConditions().
ilConditionHandlerGUI::updateCondition | ( | ) |
Definition at line 496 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getCondition(), ilLPStatusWrapper\_refreshStatus(), ILIAS\Repository\ctrl(), edit(), ilObjectLP\getInstance(), getTargetRefId(), getTargetType(), initConditionIdFromQuery(), initFormCondition(), initItemIdsFromPost(), listConditions(), ILIAS\Repository\lng(), and ilConditionHandler\UNIQUE_CONDITIONS.
|
protected |
Definition at line 42 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 56 of file class.ilConditionHandlerGUI.php.
Referenced by getAutomaticValidation().
|
protected |
Definition at line 49 of file class.ilConditionHandlerGUI.php.
Referenced by getConditionHandler().
|
protected |
Definition at line 44 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 38 of file class.ilConditionHandlerGUI.php.
|
private |
Definition at line 46 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 39 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 45 of file class.ilConditionHandlerGUI.php.
|
private |
Definition at line 47 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 51 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetId().
|
protected |
Definition at line 50 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 54 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetRefId().
|
protected |
Definition at line 53 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetTitle().
|
protected |
Definition at line 52 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetType().
|
protected |
Definition at line 43 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 40 of file class.ilConditionHandlerGUI.php.
|
protected |
Definition at line 41 of file class.ilConditionHandlerGUI.php.
|
private |
Definition at line 35 of file class.ilConditionHandlerGUI.php.
|
private |
Definition at line 36 of file class.ilConditionHandlerGUI.php.
|
private |
Definition at line 34 of file class.ilConditionHandlerGUI.php.