ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Public Member Functions | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. More... | |
executeCommand () | |
Execute Command. More... | |
confirmSyncCmd () | |
![]() | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. More... | |
Data Fields | |
const | CMD_SHOW_LIST = 'showList' |
command constants More... | |
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' |
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... | |
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 | |
Additional Inherited Members | |
![]() | |
$questionGUI = null | |
$questionOBJ = null | |
Definition at line 22 of file class.ilAssQuestionHintsGUI.php.
ilAssQuestionHintsGUI::__construct | ( | assQuestionGUI | $questionGUI | ) |
Constructor.
public
assQuestionGUI | $questionGUI |
Definition at line 51 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 473 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 518 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 149 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, $tpl, ilAssQuestionHintList\getListByQuestionId(), and ilUtil\sendFailure().
ilAssQuestionHintsGUI::confirmSyncCmd | ( | ) |
Definition at line 598 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 298 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), and checkForSingleHintIdAndRedirectOnFailure().
ilAssQuestionHintsGUI::executeCommand | ( | ) |
Execute Command.
public ilCtrl $ilCtrl
Definition at line 65 of file class.ilAssQuestionHintsGUI.php.
References $cmd, $ilCtrl, $lng, and ilAssQuestionHintPageObjectCommandForwarder\PRESENTATION_MODE_AUTHOR.
|
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 542 of file class.ilAssQuestionHintsGUI.php.
|
staticprivate |
fetches an array of hint index values from POST
private
Definition at line 568 of file class.ilAssQuestionHintsGUI.php.
References $_POST.
|
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 492 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 450 of file class.ilAssQuestionHintsGUI.php.
References $lng, ilAssQuestionHint\getInstanceById(), and ilUtil\sendInfo().
Referenced by 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 591 of file class.ilAssQuestionHintsGUI.php.
|
private |
pastes a hint from ordering clipboard after the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 377 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, ilAssQuestionHintList\addHint(), checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), and ilUtil\sendSuccess().
|
private |
pastes a hint from ordering clipboard before the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 321 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), and ilUtil\sendSuccess().
|
private |
performs confirmed deletion for selected hints
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 193 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, $tpl, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
private |
resets the ordering clipboard
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 433 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 246 of file class.ilAssQuestionHintsGUI.php.
References $_GET, $ilCtrl, $ilUser, $lng, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
private |
shows a table with existing hints
private ilTemplate $tpl
Definition at line 103 of file class.ilAssQuestionHintsGUI.php.
References $ilCtrl, $lng, $tpl, ilAssQuestionHintGUI\CMD_SHOW_FORM, ilAssQuestionHintList\getListByQuestionId(), getQuestionHintListWithoutHintStoredInOrderingClipboard(), initHintOrderingClipboardNotification(), and ilAssQuestionHintsTableGUI\TBL_MODE_ADMINISTRATION.
|
private |
Definition at line 43 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE = 'confirmDelete' |
Definition at line 28 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\fillRow(), and ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_CONFIRM_SYNC = 'confirmSync' |
Definition at line 35 of file class.ilAssQuestionHintsGUI.php.
Referenced by performDeleteCmd(), ilAssQuestionHintGUI\saveFormCmd(), and saveListOrderCmd().
const ilAssQuestionHintsGUI::CMD_CUT_TO_ORDERING_CLIPBOARD = 'cutToOrderingClipboard' |
Definition at line 31 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER = 'pasteFromOrderingClipboardAfter' |
Definition at line 33 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE = 'pasteFromOrderingClipboardBefore' |
Definition at line 32 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
const ilAssQuestionHintsGUI::CMD_PERFORM_DELETE = 'performDelete' |
Definition at line 29 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_RESET_ORDERING_CLIPBOARD = 'resetOrderingClipboard' |
Definition at line 34 of file class.ilAssQuestionHintsGUI.php.
const ilAssQuestionHintsGUI::CMD_SAVE_LIST_ORDER = 'saveListOrder' |
Definition at line 30 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
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(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintGUI\showFormCmd(), and assQuestionGUI\showHints().