ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. More... | |
isEditingEnabled () | |
setEditingEnabled (bool $editingEnabled) | |
executeCommand () | |
Execute Command. More... | |
confirmSyncCmd () | |
getHintPresentationLinkTarget ($hintId, $xmlStyle=true) | |
returns the link target for hint request presentation More... | |
Public Member Functions inherited from ilAssQuestionHintAbstractGUI | |
__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 | |
Protected Attributes inherited from ilAssQuestionHintAbstractGUI | |
$questionGUI = null | |
$questionOBJ = null | |
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 | |
Definition at line 22 of file class.ilAssQuestionHintsGUI.php.
ilAssQuestionHintsGUI::__construct | ( | assQuestionGUI | $questionGUI | ) |
Constructor.
public
assQuestionGUI | $questionGUI |
Definition at line 57 of file class.ilAssQuestionHintsGUI.php.
|
private |
checks for an existing hint relating to current question and redirects with corresponding failure message on failure
private
integer | $hintId |
Definition at line 551 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, ilAssQuestionHintList\getListByQuestionId(), and ilUtil\sendFailure().
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 596 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, and ilUtil\sendFailure().
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 202 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, $tpl, ilAssQuestionHintList\getListByQuestionId(), and ilUtil\sendFailure().
ilAssQuestionHintsGUI::confirmSyncCmd | ( | ) |
Definition at line 676 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 361 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), and isEditingEnabled().
ilAssQuestionHintsGUI::executeCommand | ( | ) |
Execute Command.
public ilCtrl $ilCtrl
Definition at line 87 of file class.ilAssQuestionHintsGUI.php.
References $cmd, $DIC, $ilCtrl, $lng, $tpl, ilObjStyleSheet\getContentStylePath(), isEditingEnabled(), ilAssQuestionHintPageObjectCommandForwarder\PRESENTATION_MODE_AUTHOR, and ilAssQuestionHintPageObjectCommandForwarder\PRESENTATION_MODE_PREVIEW.
|
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 620 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $_POST, and array.
|
staticprivate |
fetches an array of hint index values from POST
private
Definition at line 646 of file class.ilAssQuestionHintsGUI.php.
ilAssQuestionHintsGUI::getHintPresentationLinkTarget | ( | $hintId, | |
$xmlStyle = true |
|||
) |
returns the link target for hint request presentation
integer | $hintId | |
boolean | $xmlStyle |
Definition at line 688 of file class.ilAssQuestionHintsGUI.php.
|
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 570 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 528 of file class.ilAssQuestionHintsGUI.php.
References $lng, ilAssQuestionHint\getInstanceById(), and ilUtil\sendInfo().
Referenced by showListCmd().
ilAssQuestionHintsGUI::isEditingEnabled | ( | ) |
Definition at line 67 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 669 of file class.ilAssQuestionHintsGUI.php.
|
private |
pastes a hint from ordering clipboard after the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 450 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, ilAssQuestionHintList\addHint(), checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilUtil\sendSuccess().
|
private |
pastes a hint from ordering clipboard before the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 389 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilUtil\sendSuccess().
|
private |
performs confirmed deletion for selected hints
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 246 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
private |
resets the ordering clipboard
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 511 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, and ilUtil\sendInfo().
|
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 304 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilAssQuestionHintsGUI::setEditingEnabled | ( | bool | $editingEnabled | ) |
bool | $editingEnabled |
Definition at line 75 of file class.ilAssQuestionHintsGUI.php.
References $editingEnabled.
|
private |
shows an allready requested hint
private ilCtrl $ilCtrl ilTemplate $tpl ilLanguage $lng
Definition at line 715 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $DIC, $ilCtrl, $lng, $tpl, ilAssQuestionHint\getInstanceById(), ilUtil\prepareTextareaOutput(), and ilNonEditableValueGUI\setValue().
|
private |
shows a table with existing hints
private ilTemplate $tpl
Definition at line 147 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, $tpl, ilAssQuestionHintGUI\CMD_SHOW_FORM, ilAssQuestionHintList\getListByQuestionId(), getQuestionHintListWithoutHintStoredInOrderingClipboard(), initHintOrderingClipboardNotification(), isEditingEnabled(), ilAssQuestionHintsTableGUI\TBL_MODE_ADMINISTRATION, and ilAssQuestionHintsTableGUI\TBL_MODE_TESTOUTPUT.
|
protected |
Definition at line 49 of file class.ilAssQuestionHintsGUI.php.
Referenced by isEditingEnabled(), and setEditingEnabled().
|
private |
Definition at line 44 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE = 'confirmDelete' |
Definition at line 29 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\fillRow(), and ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_CONFIRM_SYNC = 'confirmSync' |
Definition at line 36 of file class.ilAssQuestionHintsGUI.php.
Referenced by performDeleteCmd(), ilAssQuestionHintGUI\saveFormCmd(), and saveListOrderCmd().
const ilAssQuestionHintsGUI::CMD_CUT_TO_ORDERING_CLIPBOARD = 'cutToOrderingClipboard' |
Definition at line 32 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER = 'pasteFromOrderingClipboardAfter' |
Definition at line 34 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE = 'pasteFromOrderingClipboardBefore' |
Definition at line 33 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PERFORM_DELETE = 'performDelete' |
Definition at line 30 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_RESET_ORDERING_CLIPBOARD = 'resetOrderingClipboard' |
Definition at line 35 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_SAVE_LIST_ORDER = 'saveListOrder' |
Definition at line 31 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_SHOW_HINT = 'showHint' |
Definition at line 28 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_SHOW_LIST = 'showList' |
command constants
Definition at line 27 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintPageObjectCommandForwarder\__construct(), assQuestionGUI\addTab_QuestionHints(), ilAssQuestionHintPageObjectCommandForwarder\buildAuthorPresentationPageObjectGUI(), ilAssQuestionHintPageObjectCommandForwarder\buildPreviewPresentationPageObjectGUI(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintGUI\showFormCmd(), and assQuestionGUI\showHints().