|
ILIAS
Release_5_0_x_branch Revision 61816
|
class ilConditionHandlerGUI More...
Collaboration diagram for ilConditionHandlerGUI:Public Member Functions | |
| __construct ($gui_obj, $a_ref_id=null) | |
| Constructor <type> $lng <type> $tpl <type> $tree <type> $ilCtrl. | |
| setBackButtons ($a_btn_arr) | |
| getBackButtons () | |
| executeCommand () | |
| setAutomaticValidation ($a_status) | |
| getAutomaticValidation () | |
| setTargetId ($a_target_id) | |
| set target id | |
| getTargetId () | |
| get target id | |
| setTargetRefId ($a_target_ref_id) | |
| set target ref id | |
| getTargetRefId () | |
| get target ref id | |
| setTargetType ($a_target_type) | |
| set target type | |
| getTargetType () | |
| get target type | |
| setTargetTitle ($a_target_title) | |
| set target title | |
| isTargetReferenced () | |
| Check if target has refernce id. | |
| getTargetTitle () | |
| get target title | |
| chi_init (&$chi_target_obj, $a_ref_id=null) | |
| edit () | |
| updateCondition () | |
| askDelete () | |
| delete () | |
| selector () | |
| add () | |
| assign () | |
| assign new trigger condition to target | |
| chi_update () | |
| __getConditionsOfTarget () | |
Static Public Member Functions | |
| static | translateOperator ($a_obj_id, $a_operator) |
| Translate operator. | |
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. | |
| listConditions () | |
| list conditions ilToolbar | |
| saveObligatorySettings () | |
| Save obligatory settings. | |
| saveObligatoryList () | |
| Save obligatory settings. | |
| showObligatoryForm ($opt=array()) | |
| Show obligatory form. | |
Private Member Functions | |
| initFormCondition ($a_source_id, $a_condition_id=0, $a_mode= 'add') | |
| Init form for condition table. | |
class ilConditionHandlerGUI
This class is aggregated in folders, groups which have a parent course object Since it is something like an interface, all varirables, methods have there own name space (names start with cci) to avoid collisions
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().
Here is the call graph for this function:| ilConditionHandlerGUI::__getConditionsOfTarget | ( | ) |
Definition at line 738 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getConditionsOfTarget(), getTargetId(), getTargetRefId(), and getTargetType().
Referenced by chi_update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConditionHandlerGUI::add | ( | ) |
Definition at line 622 of file class.ilConditionHandlerGUI.php.
References $_GET, initFormCondition(), selector(), and ilUtil\sendFailure().
Referenced by assign().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConditionHandlerGUI::askDelete | ( | ) |
Definition at line 547 of file class.ilConditionHandlerGUI.php.
References $_POST, $tpl, ilConditionHandler\_getCondition(), ilObject\_lookupTitle(), ilUtil\getImagePath(), listConditions(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilConditionHandlerGUI::assign | ( | ) |
assign new trigger condition to target
Definition at line 643 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.
Here is the call graph for this function:| ilConditionHandlerGUI::chi_init | ( | & | $chi_target_obj, |
$a_ref_id = null |
|||
| ) |
Definition at line 222 of file class.ilConditionHandlerGUI.php.
References ilObjectFactory\getInstanceByRefId().
Here is the call graph for this function:| ilConditionHandlerGUI::chi_update | ( | ) |
Definition at line 717 of file class.ilConditionHandlerGUI.php.
References $_POST, __getConditionsOfTarget(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilConditionHandlerGUI::delete | ( | ) |
Definition at line 583 of file class.ilConditionHandlerGUI.php.
References $_POST, listConditions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilConditionHandlerGUI::edit | ( | ) |
Definition at line 471 of file class.ilConditionHandlerGUI.php.
References $_GET, ilConditionHandler\_getCondition(), initFormCondition(), listConditions(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilConditionHandlerGUI::executeCommand | ( | ) |
Definition at line 115 of file class.ilConditionHandlerGUI.php.
References $cmd, $ilErr, and $lng.
| ilConditionHandlerGUI::getAutomaticValidation | ( | ) |
Definition at line 143 of file class.ilConditionHandlerGUI.php.
References $automatic_validation.
Referenced by assign().
Here is the caller graph for this function:| ilConditionHandlerGUI::getBackButtons | ( | ) |
Definition at line 110 of file class.ilConditionHandlerGUI.php.
References $_SESSION.
|
protected |
Get condition handler.
Definition at line 101 of file class.ilConditionHandlerGUI.php.
References $ch_obj.
Referenced by selector().
Here is the caller graph for this function:| ilConditionHandlerGUI::getTargetId | ( | ) |
get target id
Definition at line 160 of file class.ilConditionHandlerGUI.php.
References $target_id.
Referenced by __getConditionsOfTarget(), assign(), listConditions(), saveObligatoryList(), saveObligatorySettings(), and showObligatoryForm().
Here is the caller graph for this function:| ilConditionHandlerGUI::getTargetRefId | ( | ) |
get target ref id
Definition at line 176 of file class.ilConditionHandlerGUI.php.
References $target_ref_id.
Referenced by __getConditionsOfTarget(), assign(), isTargetReferenced(), listConditions(), saveObligatoryList(), saveObligatorySettings(), selector(), showObligatoryForm(), and updateCondition().
Here is the caller graph for this function:| ilConditionHandlerGUI::getTargetTitle | ( | ) |
get target title
Definition at line 217 of file class.ilConditionHandlerGUI.php.
References $target_title.
Referenced by initFormCondition().
Here is the caller graph for this function:| ilConditionHandlerGUI::getTargetType | ( | ) |
get target type
Definition at line 192 of file class.ilConditionHandlerGUI.php.
References $target_type.
Referenced by __getConditionsOfTarget(), assign(), initFormCondition(), listConditions(), saveObligatoryList(), saveObligatorySettings(), showObligatoryForm(), and updateCondition().
Here is the caller graph for this function:
|
private |
Init form for condition table.
private
Definition at line 763 of file class.ilConditionHandlerGUI.php.
References $ch_obj, $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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConditionHandlerGUI::isTargetReferenced | ( | ) |
Check if target has refernce id.
Definition at line 209 of file class.ilConditionHandlerGUI.php.
References getTargetRefId().
Here is the call graph for this function:
|
protected |
list conditions ilToolbar
Definition at line 246 of file class.ilConditionHandlerGUI.php.
References $_REQUEST, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), and showObligatoryForm().
Referenced by askDelete(), delete(), edit(), and updateCondition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Save obligatory settings.
Definition at line 363 of file class.ilConditionHandlerGUI.php.
References $_POST, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\calculateRequiredTriggers(), getTargetId(), getTargetRefId(), getTargetType(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilConditionHandler\updateObligatory().
Here is the call graph for this function:
|
protected |
Save obligatory settings.
Definition at line 299 of file class.ilConditionHandlerGUI.php.
References ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), ilConditionHandler\saveNumberOfRequiredTriggers(), ilUtil\sendFailure(), ilUtil\sendSuccess(), showObligatoryForm(), and ilConditionHandler\updateObligatory().
Here is the call graph for this function:| ilConditionHandlerGUI::selector | ( | ) |
Definition at line 602 of file class.ilConditionHandlerGUI.php.
References getConditionHandler(), getTargetRefId(), and ilUtil\sendInfo().
Referenced by add().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConditionHandlerGUI::setAutomaticValidation | ( | $a_status | ) |
Definition at line 139 of file class.ilConditionHandlerGUI.php.
| ilConditionHandlerGUI::setBackButtons | ( | $a_btn_arr | ) |
Definition at line 106 of file class.ilConditionHandlerGUI.php.
References $_SESSION.
| ilConditionHandlerGUI::setTargetId | ( | $a_target_id | ) |
set target id
Definition at line 152 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilConditionHandlerGUI::setTargetRefId | ( | $a_target_ref_id | ) |
set target ref id
Definition at line 168 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilConditionHandlerGUI::setTargetTitle | ( | $a_target_title | ) |
set target title
Definition at line 200 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
Here is the caller graph for this function:| ilConditionHandlerGUI::setTargetType | ( | $a_target_type | ) |
set target type
Definition at line 184 of file class.ilConditionHandlerGUI.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Show obligatory form.
Definition at line 403 of file class.ilConditionHandlerGUI.php.
References $_REQUEST, ilConditionHandler\_getConditionsOfTarget(), ilConditionHandler\calculateRequiredTriggers(), ilConditionHandler\getOptionalConditionsOfTarget(), getTargetId(), getTargetRefId(), getTargetType(), ilConditionHandler\lookupHiddenStatusByTarget(), ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), and ilRadioGroupInputGUI\setValue().
Referenced by listConditions(), and saveObligatorySettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Translate operator.
| type | $a_operator |
Definition at line 81 of file class.ilConditionHandlerGUI.php.
References $GLOBALS, ilLPObjSettings\_mode2Text(), and ilConditionHandler\OPERATOR_LP.
Referenced by ilObjectListGUI\parseConditions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilConditionHandlerGUI::updateCondition | ( | ) |
Definition at line 491 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.
Here is the call graph for this function:| 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().