| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Inheritance diagram for ilAssQuestionHintsGUI:
 Collaboration diagram for ilAssQuestionHintsGUI: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... | |
  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 | |
| 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 | 
| QuestionInfoService | $questioninfo | 
| ilGlobalTemplateInterface | $main_tpl | 
Definition at line 35 of file class.ilAssQuestionHintsGUI.php.
| ilAssQuestionHintsGUI::__construct | ( | assQuestionGUI | $questionGUI | ) | 
Constructor.
public
| assQuestionGUI | $questionGUI | 
Definition at line 68 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
 Here is the call graph for this function:
      
  | 
  private | 
checks for an existing hint relating to current question and redirects with corresponding failure message on failure
private
| integer | $hintId | 
Definition at line 548 of file class.ilAssQuestionHintsGUI.php.
References ILIAS\Repository\ctrl(), ilAssQuestionHintList\getListByQuestionId(), and ILIAS\Repository\lng().
Referenced by cutToOrderingClipboardCmd(), pasteFromOrderingClipboardAfterCmd(), and pasteFromOrderingClipboardBeforeCmd().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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 590 of file class.ilAssQuestionHintsGUI.php.
References $DIC, and ilLanguage\txt().
Referenced by cutToOrderingClipboardCmd(), pasteFromOrderingClipboardAfterCmd(), and pasteFromOrderingClipboardBeforeCmd().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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 $DIC, ilAssQuestionHintList\getListByQuestionId(), and ilLanguage\txt().
 Here is the call graph for this function:| ilAssQuestionHintsGUI::confirmSyncCmd | ( | ) | 
Definition at line 669 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 357 of file class.ilAssQuestionHintsGUI.php.
References $DIC, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), and isEditingEnabled().
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
      
  | 
  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 613 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHintAbstractGUI\$request, and ILIAS\Repository\int().
 Here is the call graph for this function:
      
  | 
  staticprivate | 
fetches an array of hint index values from POST
private
Definition at line 639 of file class.ilAssQuestionHintsGUI.php.
References ILIAS\Repository\int().
 Here is the call graph for this function:| ilAssQuestionHintsGUI::getHintPresentationLinkTarget | ( | $hintId, | |
$xmlStyle = true  | 
        |||
| ) | 
returns the link target for hint request presentation
| integer | $hintId | |
| boolean | $xmlStyle | 
Definition at line 681 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 566 of file class.ilAssQuestionHintsGUI.php.
Referenced by showListCmd().
 Here is the caller graph for this function:
      
  | 
  private | 
inits the notification telling the user, that a hint is stored to hint ordering clipboard
private ilLanguage $lng
Definition at line 524 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHint\getInstanceById(), and ilLanguage\txt().
Referenced by showListCmd().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilAssQuestionHintsGUI::isEditingEnabled | ( | ) | 
Definition at line 83 of file class.ilAssQuestionHintsGUI.php.
References $editingEnabled.
Referenced by cutToOrderingClipboardCmd(), executeCommand(), pasteFromOrderingClipboardAfterCmd(), pasteFromOrderingClipboardBeforeCmd(), performDeleteCmd(), saveListOrderCmd(), and showListCmd().
 Here is the caller graph for this function:
      
  | 
  staticprivate | 
sorts the array of indexes by index value so keys (hint ids) get into new order submitted by user
private
Definition at line 662 of file class.ilAssQuestionHintsGUI.php.
      
  | 
  private | 
pastes a hint from ordering clipboard after the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 445 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHintList\addHint(), checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
pastes a hint from ordering clipboard before the selected one
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 385 of file class.ilAssQuestionHintsGUI.php.
References $DIC, checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), checkForSingleHintIdAndRedirectOnFailure(), ilAssQuestionHint\getInstanceById(), ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
performs confirmed deletion for selected hints
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 247 of file class.ilAssQuestionHintsGUI.php.
References $DIC, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
resets the ordering clipboard
private ilCtrl $ilCtrl ilLanguage $lng
Definition at line 505 of file class.ilAssQuestionHintsGUI.php.
References $DIC, and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  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 302 of file class.ilAssQuestionHintsGUI.php.
References $DIC, assQuestion\_isWriteable(), CMD_CONFIRM_SYNC, ilAssQuestionHintList\getListByQuestionId(), isEditingEnabled(), and ilLanguage\txt().
 Here is the call graph for this function:| 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 705 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHint\getInstanceById(), ILIAS\Repository\int(), ilLegacyFormElementsUtil\prepareTextareaOutput(), and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
shows a table with existing hints
private ilTemplate $tpl
Definition at line 149 of file class.ilAssQuestionHintsGUI.php.
References $DIC, ilAssQuestionHintGUI\CMD_SHOW_FORM, ilAssQuestionHintList\getListByQuestionId(), getQuestionHintListWithoutHintStoredInOrderingClipboard(), initHintOrderingClipboardNotification(), isEditingEnabled(), ilAssQuestionHintsTableGUI\TBL_MODE_ADMINISTRATION, ilAssQuestionHintsTableGUI\TBL_MODE_TESTOUTPUT, and ilLanguage\txt().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 53 of file class.ilAssQuestionHintsGUI.php.
      
  | 
  protected | 
Definition at line 59 of file class.ilAssQuestionHintsGUI.php.
Referenced by isEditingEnabled(), and setEditingEnabled().
      
  | 
  private | 
Definition at line 51 of file class.ilAssQuestionHintsGUI.php.
      
  | 
  private | 
Definition at line 52 of file class.ilAssQuestionHintsGUI.php.
      
  | 
  private | 
Definition at line 60 of file class.ilAssQuestionHintsGUI.php.
      
  | 
  private | 
Definition at line 54 of file class.ilAssQuestionHintsGUI.php.
| const ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE = 'confirmDelete' | 
Definition at line 42 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\fillRow(), and ilAssQuestionHintsTableGUI\initAdministrationCommands().
| const ilAssQuestionHintsGUI::CMD_CONFIRM_SYNC = 'confirmSync' | 
Definition at line 49 of file class.ilAssQuestionHintsGUI.php.
Referenced by performDeleteCmd(), ilAssQuestionHintGUI\saveFormCmd(), and saveListOrderCmd().
| const ilAssQuestionHintsGUI::CMD_CUT_TO_ORDERING_CLIPBOARD = 'cutToOrderingClipboard' | 
Definition at line 45 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
| const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER = 'pasteFromOrderingClipboardAfter' | 
Definition at line 47 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
| const ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE = 'pasteFromOrderingClipboardBefore' | 
Definition at line 46 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
| const ilAssQuestionHintsGUI::CMD_PERFORM_DELETE = 'performDelete' | 
Definition at line 43 of file class.ilAssQuestionHintsGUI.php.
| const ilAssQuestionHintsGUI::CMD_RESET_ORDERING_CLIPBOARD = 'resetOrderingClipboard' | 
Definition at line 48 of file class.ilAssQuestionHintsGUI.php.
| const ilAssQuestionHintsGUI::CMD_SAVE_LIST_ORDER = 'saveListOrder' | 
Definition at line 44 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintsTableGUI\initAdministrationCommands().
| const ilAssQuestionHintsGUI::CMD_SHOW_HINT = 'showHint' | 
Definition at line 41 of file class.ilAssQuestionHintsGUI.php.
| const ilAssQuestionHintsGUI::CMD_SHOW_LIST = 'showList' | 
command constants
Definition at line 40 of file class.ilAssQuestionHintsGUI.php.
Referenced by ilAssQuestionHintPageObjectCommandForwarder\__construct(), assQuestionGUI\addTab_QuestionHints(), ilAssQuestionHintPageObjectCommandForwarder\buildAuthorPresentationPageObjectGUI(), ilAssQuestionHintPageObjectCommandForwarder\buildPreviewPresentationPageObjectGUI(), ilTestQuestionsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilObjQuestionPoolGUI\getQueryParamInt(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintGUI\showFormCmd(), and assQuestionGUI\showHints().