ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. More... | |
isEditingEnabled () | |
setEditingEnabled (bool $editingEnabled) | |
executeCommand () | |
confirmSyncCmd () | |
getHintPresentationLinkTarget ($hintId, $xmlStyle=true) | |
returns the link target for hint request presentation More... | |
![]() | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. More... | |
Data Fields | |
const | CMD_SHOW_LIST = 'showList' |
command constants More... | |
const | CMD_SHOW_HINT = 'showHint' |
const | CMD_CONFIRM_DELETE = 'confirmDelete' |
const | CMD_PERFORM_DELETE = 'performDelete' |
const | CMD_SAVE_LIST_ORDER = 'saveListOrder' |
const | CMD_CUT_TO_ORDERING_CLIPBOARD = 'cutToOrderingClipboard' |
const | CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE = 'pasteFromOrderingClipboardBefore' |
const | CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER = 'pasteFromOrderingClipboardAfter' |
const | CMD_RESET_ORDERING_CLIPBOARD = 'resetOrderingClipboard' |
const | CMD_CONFIRM_SYNC = 'confirmSync' |
Protected Attributes | |
$editingEnabled = false | |
![]() | |
ILIAS TestQuestionPool InternalRequestService | $request |
assQuestionGUI | $questionGUI = null |
assQuestion | $questionOBJ = null |
ilTabsGUI | $tabs |
Private Member Functions | |
showListCmd () | |
shows a table with existing hints More... | |
confirmDeleteCmd () | |
shows a confirmation screen with selected hints for deletion More... | |
performDeleteCmd () | |
performs confirmed deletion for selected hints More... | |
saveListOrderCmd () | |
saves the order based on index values passed from table's form (the table must not be paginated, because ALL hints index values are required) More... | |
cutToOrderingClipboardCmd () | |
cuts a hint from question hint list and stores it to ordering clipboard More... | |
pasteFromOrderingClipboardBeforeCmd () | |
pastes a hint from ordering clipboard before the selected one More... | |
pasteFromOrderingClipboardAfterCmd () | |
pastes a hint from ordering clipboard after the selected one More... | |
resetOrderingClipboardCmd () | |
resets the ordering clipboard More... | |
initHintOrderingClipboardNotification () | |
inits the notification telling the user, that a hint is stored to hint ordering clipboard More... | |
checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure ($hintId) | |
checks for an existing hint relating to current question and redirects with corresponding failure message on failure More... | |
getQuestionHintListWithoutHintStoredInOrderingClipboard (ilAssQuestionHintList $questionHintList) | |
returns a new quastion hint list that contains all question hints from the passed list except for the hint that is stored to ordering clipboard More... | |
checkForSingleHintIdAndRedirectOnFailure ($hintIds) | |
checks for a hint id in the passed array and redirects with corresponding failure message if not exactly one id is given More... | |
showHintCmd () | |
shows an allready requested hint More... | |
Static Private Member Functions | |
static | fetchHintIdsParameter () |
fetches either an array of hint ids from POST or a single hint id from GET and returns an array of (a single) hint id(s) casted to integer in both cases More... | |
static | fetchHintIndexesParameter () |
fetches an array of hint index values from POST More... | |
static | orderHintIndexes ($hintIndexes) |
sorts the array of indexes by index value so keys (hint ids) get into new order submitted by user More... | |
Private Attributes | |
$hintOrderingClipboard = null | |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilGlobalTemplateInterface | $main_tpl |
Definition at line 37 of file class.ilAssQuestionHintsGUI.php.
ilAssQuestionHintsGUI::__construct | ( | assQuestionGUI | $questionGUI | ) |
Constructor.
public
assQuestionGUI | $questionGUI |
Definition at line 69 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
private |
checks for an existing hint relating to current question and redirects with corresponding failure message on failure
private
integer | $hintId |
Definition at line 556 of file class.ilAssQuestionHintsGUI.php.
References ILIAS\Repository\ctrl(), ilAssQuestionHintList\getListByQuestionId(), and ILIAS\Repository\lng().
Referenced by cutToOrderingClipboardCmd(), pasteFromOrderingClipboardAfterCmd(), and pasteFromOrderingClipboardBeforeCmd().
|
private |
checks for a hint id in the passed array and redirects with corresponding failure message if not exactly one id is given
private ilCtrl $ilCtrl ilLanguage $lng
array | $hintIds |
Definition at line 598 of file class.ilAssQuestionHintsGUI.php.
References $DIC, and ilLanguage\txt().
Referenced by cutToOrderingClipboardCmd(), pasteFromOrderingClipboardAfterCmd(), and pasteFromOrderingClipboardBeforeCmd().
|
private |
shows a confirmation screen with selected hints for deletion
private ilCtrl $ilCtrl ilTemplate $tpl ilLanguage $lng
Definition at line 210 of file class.ilAssQuestionHintsGUI.php.
References $DIC, $tpl, ilAssQuestionHintList\getListByQuestionId(), and ilLanguage\txt().
ilAssQuestionHintsGUI::confirmSyncCmd | ( | ) |
Definition at line 677 of file class.ilAssQuestionHintsGUI.php.
|
private |
cuts a hint from question hint list and stores it to ordering clipboard
private ilCtrl $ilCtrl
Definition at line 365 of file class.ilAssQuestionHintsGUI.php.
References $DIC, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), and isEditingEnabled().
ilAssQuestionHintsGUI::executeCommand | ( | ) |
Definition at line 96 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilObjStyleSheet\getContentStylePath(), isEditingEnabled(), ilAssQuestionHintPageObjectCommandForwarder\PRESENTATION_MODE_AUTHOR, ilAssQuestionHintPageObjectCommandForwarder\PRESENTATION_MODE_PREVIEW, and ILIAS\Repository\tabs().
|
staticprivate |
fetches either an array of hint ids from POST or a single hint id from GET and returns an array of (a single) hint id(s) casted to integer in both cases
private
Definition at line 621 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHintAbstractGUI\$request, and ILIAS\Repository\int().
|
staticprivate |
fetches an array of hint index values from POST
private
Definition at line 647 of file class.ilAssQuestionHintsGUI.php.
References ILIAS\Repository\int().
ilAssQuestionHintsGUI::getHintPresentationLinkTarget | ( | $hintId, | |
$xmlStyle = true |
|||
) |
returns the link target for hint request presentation
integer | $hintId | |
boolean | $xmlStyle |
Definition at line 689 of file class.ilAssQuestionHintsGUI.php.
References $DIC.
|
private |
returns a new quastion hint list that contains all question hints from the passed list except for the hint that is stored to ordering clipboard
private
ilAssQuestionHintList | $questionHintList |
Definition at line 574 of file class.ilAssQuestionHintsGUI.php.
Referenced by showListCmd().
|
private |
inits the notification telling the user, that a hint is stored to hint ordering clipboard
private ilLanguage $lng
Definition at line 532 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHint\getInstanceById(), and ilLanguage\txt().
Referenced by showListCmd().
ilAssQuestionHintsGUI::isEditingEnabled | ( | ) |
Definition at line 83 of file class.ilAssQuestionHintsGUI.php.
References $editingEnabled.
Referenced by cutToOrderingClipboardCmd(), executeCommand(), pasteFromOrderingClipboardAfterCmd(), pasteFromOrderingClipboardBeforeCmd(), performDeleteCmd(), saveListOrderCmd(), and showListCmd().
|
staticprivate |
sorts the array of indexes by index value so keys (hint ids) get into new order submitted by user
private
Definition at line 670 of file class.ilAssQuestionHintsGUI.php.
|
private |
pastes a hint from ordering clipboard after the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 453 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHintList\addHint(), checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
|
private |
pastes a hint from ordering clipboard before the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 393 of file class.ilAssQuestionHintsGUI.php.
References $DIC, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
|
private |
performs confirmed deletion for selected hints
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 255 of file class.ilAssQuestionHintsGUI.php.
References $DIC, $ilUser, $tpl, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
|
private |
resets the ordering clipboard
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 513 of file class.ilAssQuestionHintsGUI.php.
References $DIC, and ilLanguage\txt().
|
private |
saves the order based on index values passed from table's form (the table must not be paginated, because ALL hints index values are required)
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 310 of file class.ilAssQuestionHintsGUI.php.
References $DIC, $ilUser, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
ilAssQuestionHintsGUI::setEditingEnabled | ( | bool | $editingEnabled | ) |
bool | $editingEnabled |
Definition at line 91 of file class.ilAssQuestionHintsGUI.php.
References $editingEnabled.
|
private |
shows an allready requested hint
private ilCtrl $ilCtrl ilTemplate $tpl ilLanguage $lng
Definition at line 713 of file class.ilAssQuestionHintsGUI.php.
References $DIC, $tpl, ilAssQuestionHint\getInstanceById(), ILIAS\Repository\int(), ilLegacyFormElementsUtil\prepareTextareaOutput(), ilNonEditableValueGUI\setValue(), and ilLanguage\txt().
|
private |
shows a table with existing hints
private ilTemplate $tpl
Definition at line 154 of file class.ilAssQuestionHintsGUI.php.
References $DIC, $tpl, ilAssQuestionHintGUI\CMD_SHOW_FORM, ilAssQuestionHintList\getListByQuestionId(), getQuestionHintListWithoutHintStoredInOrderingClipboard(), initHintOrderingClipboardNotification(), isEditingEnabled(), ilAssQuestionHintsTableGUI\TBL_MODE_ADMINISTRATION, ilAssQuestionHintsTableGUI\TBL_MODE_TESTOUTPUT, and ilLanguage\txt().
|
private |
Definition at line 55 of file class.ilAssQuestionHintsGUI.php.
|
protected |
Definition at line 60 of file class.ilAssQuestionHintsGUI.php.
Referenced by isEditingEnabled(), and setEditingEnabled().
|
private |
Definition at line 53 of file class.ilAssQuestionHintsGUI.php.
|
private |
Definition at line 54 of file class.ilAssQuestionHintsGUI.php.
|
private |
Definition at line 61 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE = 'confirmDelete' |
Definition at line 44 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\fillRow(), and ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_CONFIRM_SYNC = 'confirmSync' |
Definition at line 51 of file class.ilAssQuestionHintsGUI.php.
Referenced by performDeleteCmd(), ilAssQuestionHintGUI\saveFormCmd(), and saveListOrderCmd().
const ilAssQuestionHintsGUI::CMD_CUT_TO_ORDERING_CLIPBOARD = 'cutToOrderingClipboard' |
Definition at line 47 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER = 'pasteFromOrderingClipboardAfter' |
Definition at line 49 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE = 'pasteFromOrderingClipboardBefore' |
Definition at line 48 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PERFORM_DELETE = 'performDelete' |
Definition at line 45 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_RESET_ORDERING_CLIPBOARD = 'resetOrderingClipboard' |
Definition at line 50 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_SAVE_LIST_ORDER = 'saveListOrder' |
Definition at line 46 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_SHOW_HINT = 'showHint' |
Definition at line 43 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_SHOW_LIST = 'showList' |
command constants
Definition at line 42 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintPageObjectCommandForwarder\__construct(), assQuestionGUI\addTab_QuestionHints(), ilAssQuestionHintPageObjectCommandForwarder\buildAuthorPresentationPageObjectGUI(), ilAssQuestionHintPageObjectCommandForwarder\buildPreviewPresentationPageObjectGUI(), ilTestQuestionsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintGUI\showFormCmd(), and assQuestionGUI\showHints().