ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilObjSurvey $a_survey, ilSurveyEditorGUI $a_survey_editor_gui) | |
executeCommand () | |
determineCurrentPage () | |
insertNewQuestion (int $a_new_id) | |
Add new question to survey. More... | |
insertQuestionBlock (int $a_block_id) | |
Copy and insert questions from block. More... | |
getPageNodes (array $a_questions, bool $a_has_previous_page=false, bool $a_has_next_page=false, bool $a_readonly=false) | |
renderPageNode (ilTemplate $a_tpl, string $a_type, string $a_id, ?string $a_content=null, ?array $a_menu=null, bool $a_spacer=false, string $a_subtitle="", ?string $a_status=null, ?string $a_heading=null) | |
Render single node of dnd page view. More... | |
getAutoBlockTitle () | |
Get name for newly created blocks. More... | |
addPoolQuestion (string $pos, string $node) | |
printViewSelection () | |
Protected Member Functions | |
appendNewQuestionToSurvey (int $a_new_id, bool $a_duplicate=true, bool $a_force_duplicate=false) | |
Add new question to survey (database part) More... | |
addQuestion (int $a_type, bool $a_use_pool, string $a_pos, string $a_special_position) | |
Call add question to survey form. More... | |
cutQuestion (int $a_id) | |
Add question to be cut to clipboard. More... | |
copyQuestion (int $a_id) | |
Add question to be copied to clipboard. More... | |
multiCut (array $a_id) | |
Add questions to be cut to clipboard. More... | |
multiCopy (array $a_id) | |
Add questions to be copied to clipboard. More... | |
clearClipboard () | |
Empty clipboard. More... | |
paste (int $a_id) | |
Paste from clipboard. More... | |
dnd () | |
Move questions in page. More... | |
deleteBlock () | |
Confirm removing question block. More... | |
deleteQuestion (array $a_id) | |
Confirm removing question(s) from survey. More... | |
confirmRemoveQuestions () | |
Remove question(s) from survey. More... | |
editBlock (int $a_id) | |
Edit question block. More... | |
addHeading (int $a_id) | |
Add heading to question. More... | |
editHeading (int $a_id) | |
Edit question heading. More... | |
deleteHeading (int $a_id) | |
Delete question heading. More... | |
callEditor (string $a_cmd, string $a_param, string $a_value) | |
splitPage (int $a_id) | |
Split current page in 2 pages. More... | |
moveNext (int $a_id) | |
Move question to next page. More... | |
movePrevious (int $a_id) | |
Move question to previous page. More... | |
editQuestion (int $a_id) | |
addQuestionToolbarForm () | |
Add question to survey form (used in toolbar) More... | |
addQuestionToolbar () | |
Add question to survey action (used in toolbar) More... | |
movePageForm () | |
Move current page. More... | |
movePage () | |
Move current page to new position. More... | |
renderToolbar (?array $a_pages) | |
Render toolbar form. More... | |
renderPage () | |
render questions per page More... | |
Protected Attributes | |
ILIAS Survey PrintView GUIService | |
ILIAS HTTP Services | $http |
ILIAS DI UIServices | $ui |
bool | $suppress_clipboard_msg = false |
string | $pgov |
ILIAS Survey Editing EditingGUIRequest | $svy_request |
ILIAS Survey Editing EditManager | $edit_manager |
ilCtrl | $ctrl |
ilRbacSystem | $rbacsystem |
ilDBInterface | $db |
ilTabsGUI | $tabs |
ilGlobalTemplateInterface | $tpl |
ilToolbarGUI | $toolbar |
ilObjUser | $user |
int | $ref_id |
ilLanguage | $lng |
ilObjSurvey | $object |
ilSurveyEditorGUI | $editor_gui |
int | $current_page = null |
bool | $has_previous_page |
bool | $has_next_page |
bool | $has_datasets |
bool | $use_pool |
ilLogger | $log |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Survey per page view
Definition at line 25 of file class.ilSurveyPageEditGUI.php.
ilSurveyPageEditGUI::__construct | ( | ilObjSurvey | $a_survey, |
ilSurveyEditorGUI | $a_survey_editor_gui | ||
) |
Definition at line 52 of file class.ilSurveyPageEditGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), ilObject\getRefId(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
|
protected |
Add heading to question.
Definition at line 829 of file class.ilSurveyPageEditGUI.php.
References callEditor().
ilSurveyPageEditGUI::addPoolQuestion | ( | string | $pos, |
string | $node | ||
) |
Definition at line 1749 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $ilUser, $user, and ILIAS\Repository\int().
|
protected |
Call add question to survey form.
int | $a_type | question type |
bool | $a_use_pool | add question to pool |
int | $a_pos | target position |
string | $a_special_position | special positions (toolbar | page_end) |
ilCtrlException |
Definition at line 398 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $id, $tabs, SurveyQuestionGUI\_getQuestionGUI(), ilObjSurveyQuestionPool\_getQuestiontypes(), ILIAS\Repository\int(), and ILIAS\Repository\object().
Referenced by addQuestionToolbar(), and executeCommand().
|
protected |
Add question to survey action (used in toolbar)
Definition at line 1092 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, $pgov, addQuestion(), addQuestionToolbarForm(), renderPage(), and ilLanguage\txt().
|
protected |
Add question to survey form (used in toolbar)
Definition at line 1036 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, $tpl, ilObjSurveyQuestionPool\_getQuestiontypes(), ILIAS\Repository\object(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
Referenced by addQuestionToolbar().
|
protected |
Add new question to survey (database part)
Definition at line 210 of file class.ilSurveyPageEditGUI.php.
References $db, $ilDB, and ILIAS\Repository\object().
Referenced by insertNewQuestion(), insertQuestionBlock(), and paste().
|
protected |
Definition at line 850 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $tabs, ilTabsGUI\clearSubTabs(), ilCtrl\redirect(), and ilCtrl\setParameter().
Referenced by addHeading(), deleteHeading(), editBlock(), and editHeading().
|
protected |
Empty clipboard.
Definition at line 551 of file class.ilSurveyPageEditGUI.php.
Referenced by paste().
|
protected |
Remove question(s) from survey.
Definition at line 768 of file class.ilSurveyPageEditGUI.php.
References $ctrl, and $source.
|
protected |
Add question to be copied to clipboard.
Definition at line 490 of file class.ilSurveyPageEditGUI.php.
References $lng, and ilLanguage\txt().
|
protected |
Add question to be cut to clipboard.
Definition at line 472 of file class.ilSurveyPageEditGUI.php.
References $lng, and ilLanguage\txt().
|
protected |
Confirm removing question block.
Definition at line 727 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, ilCtrl\setParameter(), and ilLanguage\txt().
|
protected |
Delete question heading.
Definition at line 845 of file class.ilSurveyPageEditGUI.php.
References callEditor().
|
protected |
Confirm removing question(s) from survey.
array | $a_id |
ilCtrlException |
Definition at line 758 of file class.ilSurveyPageEditGUI.php.
References $ctrl, and ilCtrl\setParameter().
Referenced by executeCommand().
ilSurveyPageEditGUI::determineCurrentPage | ( | ) |
Definition at line 184 of file class.ilSurveyPageEditGUI.php.
References $pgov, and ILIAS\Repository\int().
Referenced by executeCommand().
|
protected |
Move questions in page.
Definition at line 704 of file class.ilSurveyPageEditGUI.php.
References $target_arr, $target_id, and ILIAS\Repository\int().
|
protected |
Edit question block.
Definition at line 821 of file class.ilSurveyPageEditGUI.php.
References callEditor().
|
protected |
Edit question heading.
Definition at line 837 of file class.ilSurveyPageEditGUI.php.
References callEditor().
|
protected |
Definition at line 1019 of file class.ilSurveyPageEditGUI.php.
ilSurveyPageEditGUI::executeCommand | ( | ) |
Definition at line 88 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $current_page, $id, $lng, $rbacsystem, $type, addQuestion(), ilRbacSystem\checkAccess(), deleteQuestion(), determineCurrentPage(), insertNewQuestion(), ILIAS\Repository\int(), ILIAS\Repository\object(), and ilLanguage\txt().
ilSurveyPageEditGUI::getAutoBlockTitle | ( | ) |
Get name for newly created blocks.
Definition at line 1743 of file class.ilSurveyPageEditGUI.php.
References $lng, and ilLanguage\txt().
Referenced by insertNewQuestion(), insertQuestionBlock(), moveNext(), movePrevious(), paste(), and splitPage().
ilSurveyPageEditGUI::getPageNodes | ( | array | $a_questions, |
bool | $a_has_previous_page = false , |
||
bool | $a_has_next_page = false , |
||
bool | $a_readonly = false |
||
) |
ilCtrlException |
Definition at line 1470 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, ilObjSurveyQuestionPool\_getQuestiontypes(), ILIAS\Repository\object(), renderPageNode(), and ilLanguage\txt().
Referenced by renderPage().
ilSurveyPageEditGUI::insertNewQuestion | ( | int | $a_new_id | ) |
Add new question to survey.
Definition at line 257 of file class.ilSurveyPageEditGUI.php.
References $lng, SurveyQuestion\_isComplete(), appendNewQuestionToSurvey(), getAutoBlockTitle(), ILIAS\Repository\int(), and ilLanguage\txt().
Referenced by executeCommand().
ilSurveyPageEditGUI::insertQuestionBlock | ( | int | $a_block_id | ) |
Copy and insert questions from block.
Definition at line 320 of file class.ilSurveyPageEditGUI.php.
References appendNewQuestionToSurvey(), getAutoBlockTitle(), and ILIAS\Repository\int().
|
protected |
Move question to next page.
Definition at line 916 of file class.ilSurveyPageEditGUI.php.
References $current_page, $source, $target_id, and getAutoBlockTitle().
|
protected |
Move current page to new position.
Definition at line 1165 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, and ilLanguage\txt().
|
protected |
Move current page.
Definition at line 1120 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, $tpl, ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
|
protected |
Move question to previous page.
Definition at line 970 of file class.ilSurveyPageEditGUI.php.
References $source, $target_id, and getAutoBlockTitle().
|
protected |
Add questions to be copied to clipboard.
int[] | $a_id question ids |
Definition at line 531 of file class.ilSurveyPageEditGUI.php.
References $lng, and ilLanguage\txt().
|
protected |
Add questions to be cut to clipboard.
int[] | $a_id question ids |
Definition at line 510 of file class.ilSurveyPageEditGUI.php.
References $lng, and ilLanguage\txt().
|
protected |
Paste from clipboard.
int | $a_id | target position |
Definition at line 560 of file class.ilSurveyPageEditGUI.php.
References $source, ilObjSurvey\_instanciateQuestion(), appendNewQuestionToSurvey(), clearClipboard(), getAutoBlockTitle(), and ILIAS\Repository\object().
ilSurveyPageEditGUI::printViewSelection | ( | ) |
Definition at line 1771 of file class.ilSurveyPageEditGUI.php.
|
protected |
render questions per page
Alex Killing, 27 July 2018 I removed a line $tpl->addJavascript("./Services/RTE/tiny_mce_.../tiny_mce_src.js"); at the end of this function. Currently I have no idea when this tiny will be presented... Maybe a bug will come out of this during 5.4 testing
Definition at line 1351 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, $rbacsystem, $tpl, ilObjAdvancedEditing\_getUsedHTMLTags(), ilObjSurvey\_hasDatasets(), ilGlyphGUI\ADD, ilGlobalTemplateInterface\addJavaScript(), ilGlobalTemplateInterface\addOnLoadCode(), ilRbacSystem\checkAccess(), ilGlyphGUI\DRAG, ilGlyphGUI\get(), ilUtil\getImagePath(), getPageNodes(), ilYuiUtil\initDragDrop(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), ilTinyMCE\removeRedundantSeparators(), renderToolbar(), ilGlobalTemplateInterface\setContent(), and ilLanguage\txt().
Referenced by addQuestionToolbar().
ilSurveyPageEditGUI::renderPageNode | ( | ilTemplate | $a_tpl, |
string | $a_type, | ||
string | $a_id, | ||
?string | $a_content = null , |
||
?array | $a_menu = null , |
||
bool | $a_spacer = false , |
||
string | $a_subtitle = "" , |
||
?string | $a_status = null , |
||
?string | $a_heading = null |
||
) |
Render single node of dnd page view.
Definition at line 1634 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $lng, $url, ilGlyphGUI\ADD, ilGlyphGUI\get(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), ilTemplate\touchBlock(), and ilLanguage\txt().
Referenced by getPageNodes().
|
protected |
Render toolbar form.
Definition at line 1207 of file class.ilSurveyPageEditGUI.php.
References $ctrl, $ilUser, $lng, $toolbar, $url, $user, ILIAS\Repository\ctrl(), ilLinkButton\getInstance(), ILIAS\Repository\int(), ILIAS\Repository\object(), and ilLanguage\txt().
Referenced by renderPage().
|
protected |
Split current page in 2 pages.
Definition at line 870 of file class.ilSurveyPageEditGUI.php.
References $source, and getAutoBlockTitle().
|
protected |
Definition at line 34 of file class.ilSurveyPageEditGUI.php.
Referenced by addPoolQuestion(), addQuestion(), addQuestionToolbar(), addQuestionToolbarForm(), callEditor(), confirmRemoveQuestions(), deleteBlock(), deleteQuestion(), editQuestion(), executeCommand(), getPageNodes(), movePage(), movePageForm(), renderPage(), renderPageNode(), and renderToolbar().
|
protected |
Definition at line 45 of file class.ilSurveyPageEditGUI.php.
Referenced by executeCommand(), and moveNext().
|
protected |
Definition at line 36 of file class.ilSurveyPageEditGUI.php.
Referenced by appendNewQuestionToSurvey().
|
protected |
Definition at line 33 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 44 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 48 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 47 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 46 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 28 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 42 of file class.ilSurveyPageEditGUI.php.
Referenced by addQuestionToolbar(), addQuestionToolbarForm(), copyQuestion(), cutQuestion(), deleteBlock(), executeCommand(), getAutoBlockTitle(), getPageNodes(), insertNewQuestion(), movePage(), movePageForm(), multiCopy(), multiCut(), renderPage(), renderPageNode(), and renderToolbar().
|
protected |
Definition at line 50 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 43 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 31 of file class.ilSurveyPageEditGUI.php.
Referenced by addQuestionToolbar(), and determineCurrentPage().
|
protected |
Definition at line 27 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 35 of file class.ilSurveyPageEditGUI.php.
Referenced by executeCommand(), and renderPage().
|
protected |
Definition at line 41 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 30 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 32 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 37 of file class.ilSurveyPageEditGUI.php.
Referenced by addQuestion(), and callEditor().
|
protected |
Definition at line 39 of file class.ilSurveyPageEditGUI.php.
Referenced by renderToolbar().
|
protected |
Definition at line 38 of file class.ilSurveyPageEditGUI.php.
Referenced by addQuestionToolbarForm(), movePageForm(), and renderPage().
|
protected |
Definition at line 29 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 49 of file class.ilSurveyPageEditGUI.php.
|
protected |
Definition at line 40 of file class.ilSurveyPageEditGUI.php.
Referenced by addPoolQuestion(), and renderToolbar().