ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct (assQuestionGUI $questionGUI) | |
Constructor. | |
executeCommand () | |
Execute Command. | |
confirmSyncCmd () |
Data Fields | |
const | CMD_SHOW_LIST = 'showList' |
command constants | |
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 | |
confirmDeleteCmd () | |
shows a confirmation screen with selected hints for deletion | |
performDeleteCmd () | |
performs confirmed deletion for selected hints | |
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) | |
cutToOrderingClipboardCmd () | |
cuts a hint from question hint list and stores it to ordering clipboard | |
pasteFromOrderingClipboardBeforeCmd () | |
pastes a hint from ordering clipboard before the selected one | |
pasteFromOrderingClipboardAfterCmd () | |
pastes a hint from ordering clipboard after the selected one | |
resetOrderingClipboardCmd () | |
resets the ordering clipboard | |
initHintOrderingClipboardNotification () | |
inits the notification telling the user, that a hint is stored to hint ordering clipboard | |
checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure ($hintId) | |
checks for an existing hint relating to current question and redirects with corresponding failure message on failure | |
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 | |
checkForSingleHintIdAndRedirectOnFailure ($hintIds) | |
checks for a hint id in the passed array and redirects with corresponding failure message if not exactly one id is given |
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 | |
static | fetchHintIndexesParameter () |
fetches an array of hint index values from POST | |
static | orderHintIndexes ($hintIndexes) |
sorts the array of indexes by index value so keys (hint ids) get into new order submitted by user |
Private Attributes | |
$hintOrderingClipboard = null |
Additional Inherited Members | |
Protected Attributes inherited from ilAssQuestionHintAbstractGUI | |
$questionGUI = null | |
$questionOBJ = null |
Definition at line 22 of file class.ilAssQuestionHintsGUI.php.
ilAssQuestionHintsGUI::__construct | ( | assQuestionGUI | $questionGUI | ) |
Constructor.
public
assQuestionGUI | $questionGUI |
Reimplemented from ilAssQuestionHintAbstractGUI.
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, CMD_PERFORM_DELETE, CMD_SHOW_LIST, fetchHintIdsParameter(), 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(), checkForSingleHintIdAndRedirectOnFailure(), and fetchHintIdsParameter().
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.
Referenced by confirmDeleteCmd(), cutToOrderingClipboardCmd(), pasteFromOrderingClipboardAfterCmd(), pasteFromOrderingClipboardBeforeCmd(), and performDeleteCmd().
|
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.
Referenced by saveListOrderCmd().
|
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(), fetchHintIdsParameter(), 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(), fetchHintIdsParameter(), 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, fetchHintIdsParameter(), 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(), orderHintIndexes(), 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.
Referenced by confirmDeleteCmd().
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(), confirmDeleteCmd(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintGUI\showFormCmd(), and assQuestionGUI\showHints().