ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
class ilConditionHandlerGUI More...
Public Member Functions | |
__construct ($gui_obj, $a_ref_id=null) | |
Constructor <type> $lng <type> $tpl <type> $tree <type> $ilCtrl. More... | |
setBackButtons ($a_btn_arr) | |
getBackButtons () | |
executeCommand () | |
setAutomaticValidation ($a_status) | |
getAutomaticValidation () | |
setTargetId ($a_target_id) | |
set target id More... | |
getTargetId () | |
get target id More... | |
setTargetRefId ($a_target_ref_id) | |
set target ref id More... | |
getTargetRefId () | |
get target ref id More... | |
setTargetType ($a_target_type) | |
set target type More... | |
getTargetType () | |
get target type More... | |
setTargetTitle ($a_target_title) | |
set target title More... | |
isTargetReferenced () | |
Check if target has refernce id. More... | |
getTargetTitle () | |
get target title More... | |
chi_init (&$chi_target_obj, $a_ref_id=null) | |
edit () | |
updateCondition () | |
askDelete () | |
delete () | |
selector () | |
add () | |
assign () | |
assign new trigger condition to target More... | |
chi_update () | |
__getConditionsOfTarget () | |
Static Public Member Functions | |
static | translateOperator ($a_obj_id, $a_operator) |
Translate operator. More... | |
Data Fields | |
$ctrl = null | |
$lng | |
$tpl | |
$tree | |
$ch_obj | |
$target_obj | |
$client_obj | |
$target_id | |
$target_type | |
$target_title | |
$target_ref_id | |
$automatic_validation = true | |
Protected Member Functions | |
getConditionHandler () | |
Get condition handler. More... | |
listConditions () | |
list conditions ilToolbar More... | |
saveObligatorySettings () | |
Save obligatory settings. More... | |
saveObligatoryList () | |
Save obligatory settings. More... | |
showObligatoryForm ($opt=array()) | |
Show obligatory form. More... | |
Private Member Functions | |
initFormCondition ($a_source_id, $a_condition_id=0, $a_mode='add') | |
Init form for condition table. More... | |
class ilConditionHandlerGUI
Definition at line 15 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::__construct | ( | $gui_obj, | |
$a_ref_id = null |
|||
) |
Constructor <type> $lng <type> $tpl <type> $tree <type> $ilCtrl.
<type> | $gui_obj |
<type> | $a_ref_id |
Definition at line 42 of file class.ilConditionHandlerGUI.php.
References $ilCtrl, $lng, $tpl, $tree, ilObjectFactory\getInstanceByRefId(), setTargetId(), setTargetRefId(), setTargetTitle(), and setTargetType().
ilConditionHandlerGUI::__getConditionsOfTarget | ( | ) |
Definition at line 699 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getConditionsOfTarget(), array, getTargetId(), getTargetRefId(), and getTargetType().
Referenced by chi_update().
ilConditionHandlerGUI::add | ( | ) |
Definition at line 592 of file class.ilConditionHandlerGUI.php.
References $_GET, initFormCondition(), selector(), and ilUtil\sendFailure().
Referenced by assign().
ilConditionHandlerGUI::askDelete | ( | ) |
Definition at line 521 of file class.ilConditionHandlerGUI.php.
References $_POST, $title, $tpl, ilConditionHandler\_getCondition(), ilObject\_lookupTitle(), ilUtil\getImagePath(), listConditions(), and ilUtil\sendFailure().
ilConditionHandlerGUI::assign | ( | ) |
assign new trigger condition to target
Definition at line 616 of file class.ilConditionHandlerGUI.php.
References $_GET, $_POST, add(), getAutomaticValidation(), ilObjectLP\getInstance(), ilObjectFactory\getInstanceByRefId(), getTargetId(), getTargetRefId(), getTargetType(), ilConditionHandler\lookupHiddenStatusByTarget(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConditionHandler\UNIQUE_CONDITIONS.
ilConditionHandlerGUI::chi_init | ( | & | $chi_target_obj, |
$a_ref_id = null |
|||
) |
Definition at line 214 of file class.ilConditionHandlerGUI.php.
References ilObjectFactory\getInstanceByRefId().
ilConditionHandlerGUI::chi_update | ( | ) |
Definition at line 680 of file class.ilConditionHandlerGUI.php.
References $_POST, __getConditionsOfTarget(), and ilUtil\sendSuccess().
ilConditionHandlerGUI::delete | ( | ) |
Definition at line 555 of file class.ilConditionHandlerGUI.php.
References $_POST, listConditions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilConditionHandlerGUI::edit | ( | ) |
Definition at line 447 of file class.ilConditionHandlerGUI.php.
References $_GET, ilConditionHandler\_getCondition(), initFormCondition(), listConditions(), and ilUtil\sendFailure().
ilConditionHandlerGUI::executeCommand | ( | ) |
Definition at line 110 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::getAutomaticValidation | ( | ) |
Definition at line 135 of file class.ilConditionHandlerGUI.php.
References $automatic_validation.
Referenced by assign().
ilConditionHandlerGUI::getBackButtons | ( | ) |
|
protected |
Get condition handler.
Definition at line 96 of file class.ilConditionHandlerGUI.php.
References $ch_obj.
Referenced by selector().
ilConditionHandlerGUI::getTargetId | ( | ) |
get target id
Definition at line 152 of file class.ilConditionHandlerGUI.php.
References $target_id.
Referenced by __getConditionsOfTarget(), assign(), listConditions(), saveObligatoryList(), saveObligatorySettings(), and showObligatoryForm().
ilConditionHandlerGUI::getTargetRefId | ( | ) |
get target ref id
Definition at line 168 of file class.ilConditionHandlerGUI.php.
References $target_ref_id.
Referenced by __getConditionsOfTarget(), assign(), isTargetReferenced(), listConditions(), saveObligatoryList(), saveObligatorySettings(), selector(), showObligatoryForm(), and updateCondition().
ilConditionHandlerGUI::getTargetTitle | ( | ) |
get target title
Definition at line 209 of file class.ilConditionHandlerGUI.php.
References $target_title.
Referenced by initFormCondition().
ilConditionHandlerGUI::getTargetType | ( | ) |
get target type
Definition at line 184 of file class.ilConditionHandlerGUI.php.
References $target_type.
Referenced by __getConditionsOfTarget(), assign(), initFormCondition(), listConditions(), saveObligatoryList(), saveObligatorySettings(), showObligatoryForm(), and updateCondition().
|
private |
Init form for condition table.
private
Definition at line 720 of file class.ilConditionHandlerGUI.php.
References $ch_obj, $counter, $tpl, ilConditionHandler\_getCondition(), ilConditionHandler\_isReferenceHandlingOptional(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilUtil\getImagePath(), ilObjectLP\getInstance(), getTargetTitle(), getTargetType(), ilFormPropertyGUI\setRequired(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilConditionHandler\SHARED_CONDITIONS, and ilConditionHandler\UNIQUE_CONDITIONS.
Referenced by add(), and edit().
ilConditionHandlerGUI::isTargetReferenced | ( | ) |
Check if target has refernce id.
Definition at line 201 of file class.ilConditionHandlerGUI.php.
References getTargetRefId().
|
protected |
list conditions ilToolbar
Definition at line 235 of file class.ilConditionHandlerGUI.php.
References $form, $h, $table, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), and showObligatoryForm().
Referenced by askDelete(), delete(), edit(), and updateCondition().
|
protected |
Save obligatory settings.
Definition at line 344 of file class.ilConditionHandlerGUI.php.
References $_POST, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\calculateRequiredTriggers(), getTargetId(), getTargetRefId(), getTargetType(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConditionHandler\updateObligatory().
|
protected |
Save obligatory settings.
Definition at line 287 of file class.ilConditionHandlerGUI.php.
References $form, ilConditionHandler\_getConditionsOfTarget(), array, ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), ilConditionHandler\saveNumberOfRequiredTriggers(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showObligatoryForm(), and ilConditionHandler\updateObligatory().
ilConditionHandlerGUI::selector | ( | ) |
Definition at line 572 of file class.ilConditionHandlerGUI.php.
References array, getConditionHandler(), getTargetRefId(), and ilUtil\sendInfo().
Referenced by add().
ilConditionHandlerGUI::setAutomaticValidation | ( | $a_status | ) |
Definition at line 131 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::setBackButtons | ( | $a_btn_arr | ) |
ilConditionHandlerGUI::setTargetId | ( | $a_target_id | ) |
set target id
Definition at line 144 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetRefId | ( | $a_target_ref_id | ) |
set target ref id
Definition at line 160 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetTitle | ( | $a_target_title | ) |
set target title
Definition at line 192 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
ilConditionHandlerGUI::setTargetType | ( | $a_target_type | ) |
set target type
Definition at line 176 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
|
protected |
Show obligatory form.
Definition at line 381 of file class.ilConditionHandlerGUI.php.
References $form, $GLOBALS, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), ilConditionHandler\lookupHiddenStatusByTarget(), ilConditionHandler\lookupObligatoryConditionsOfTarget(), ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by listConditions(), and saveObligatorySettings().
|
static |
Translate operator.
type | $a_operator |
Definition at line 77 of file class.ilConditionHandlerGUI.php.
References $GLOBALS, ilLPObjSettings\_mode2Text(), and ilConditionHandler\OPERATOR_LP.
Referenced by ilObjectListGUI\parseConditions().
ilConditionHandlerGUI::updateCondition | ( | ) |
Definition at line 470 of file class.ilConditionHandlerGUI.php.
References $_GET, $_POST, ilConditionHandler\_getCondition(), ilLPStatusWrapper\_refreshStatus(), ilObjectLP\getInstance(), getTargetRefId(), getTargetType(), listConditions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConditionHandler\UNIQUE_CONDITIONS.
ilConditionHandlerGUI::$automatic_validation = true |
Definition at line 31 of file class.ilConditionHandlerGUI.php.
Referenced by getAutomaticValidation().
ilConditionHandlerGUI::$ch_obj |
Definition at line 23 of file class.ilConditionHandlerGUI.php.
Referenced by getConditionHandler(), and initFormCondition().
ilConditionHandlerGUI::$client_obj |
Definition at line 25 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::$ctrl = null |
Definition at line 17 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::$lng |
Definition at line 19 of file class.ilConditionHandlerGUI.php.
Referenced by __construct(), and executeCommand().
ilConditionHandlerGUI::$target_id |
Definition at line 26 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetId().
ilConditionHandlerGUI::$target_obj |
Definition at line 24 of file class.ilConditionHandlerGUI.php.
ilConditionHandlerGUI::$target_ref_id |
Definition at line 29 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetRefId().
ilConditionHandlerGUI::$target_title |
Definition at line 28 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetTitle().
ilConditionHandlerGUI::$target_type |
Definition at line 27 of file class.ilConditionHandlerGUI.php.
Referenced by getTargetType().
ilConditionHandlerGUI::$tpl |
Definition at line 20 of file class.ilConditionHandlerGUI.php.
Referenced by __construct(), askDelete(), and initFormCondition().
ilConditionHandlerGUI::$tree |
Definition at line 21 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().