|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Survey per page view. More...
Collaboration diagram for ilSurveyPageGUI:Public Member Functions | |
| __construct (ilObjSurvey $a_survey, ilSurveyEditorGUI $a_survey_editor_gui) | |
| Constructor. More... | |
| executeCommand () | |
| Routing. More... | |
| determineCurrentPage () | |
| determine current page More... | |
| insertNewQuestion ($a_new_id) | |
| Add new question to survey. More... | |
| insertQuestionBlock ($a_block_id) | |
| Copy and insert questions from block. More... | |
| getPageNodes (array $a_questions, $a_has_previous_page=false, $a_has_next_page=false, $a_readonly=false) | |
| Get Form HTML. More... | |
| renderPageNode (ilTemplate $a_tpl, $a_type, $a_id, $a_content=null, array $a_menu=null, $a_spacer=false, $a_subtitle=false, $a_status=false, $a_heading=false) | |
| Render single of dnd page view. More... | |
| getAutoBlockTitle () | |
| Get name for newly created blocks. More... | |
| addPoolQuestion ($pos, $node) | |
Protected Member Functions | |
| appendNewQuestionToSurvey ($a_new_id, $a_duplicate=true, $a_force_duplicate=false) | |
| Add new question to survey (database part) More... | |
| addQuestion ($a_type, $a_use_pool, $a_pos, $a_special_position) | |
| Call add question to survey form. More... | |
| cutQuestion ($a_id) | |
| Add question to be cut to clipboard. More... | |
| copyQuestion ($a_id) | |
| Add question to be copied to clipboard. More... | |
| multiCut ($a_id) | |
| Add questions to be cut to clipboard. More... | |
| multiCopy ($a_id) | |
| Add questions to be copied to clipboard. More... | |
| clearClipboard () | |
| Empty clipboard. More... | |
| paste ($a_id) | |
| Paste from clipboard. More... | |
| dnd () | |
| Move questions in page. More... | |
| deleteBlock () | |
| Confirm removing question block. More... | |
| deleteQuestion ($a_id) | |
| Confirm removing question(s) from survey. More... | |
| confirmRemoveQuestions () | |
| Remove question(s) from survey. More... | |
| editBlock ($a_id) | |
| Edit question block. More... | |
| addHeading ($a_id) | |
| Add heading to question. More... | |
| editHeading ($a_id) | |
| Edit question heading. More... | |
| deleteHeading ($a_id) | |
| Delete question heading. More... | |
| callEditor ($a_cmd, $a_param, $a_value) | |
| splitPage ($a_id) | |
| Split current page in 2 pages. More... | |
| moveNext ($a_id) | |
| Move question to next page. More... | |
| movePrevious ($a_id) | |
| Move question to previous page. More... | |
| editQuestion ($a_id) | |
| Edit question. More... | |
| 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 ($a_pages) | |
| Render toolbar form. More... | |
| renderPage () | |
| render questions per page More... | |
Protected Attributes | |
| $ctrl | |
| $rbacsystem | |
| $db | |
| $tabs | |
| $tpl | |
| $toolbar | |
| $user | |
| $ref_id | |
| $lng | |
| $object | |
| $editor_gui | |
| $current_page | |
| $has_previous_page | |
| $has_next_page | |
| $has_datasets | |
| $use_pool | |
| $log | |
Survey per page view.
@ilCtrl_Calls ilSurveyPageGUI:
Definition at line 14 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::__construct | ( | ilObjSurvey | $a_survey, |
| ilSurveyEditorGUI | $a_survey_editor_gui | ||
| ) |
Constructor.
| ilObjSurvey | $a_survey | |
| ilSurveyEditorGUI | $a_survey_editor_gui |
Definition at line 72 of file class.ilSurveyPageGUI.php.
References $DIC, ilLoggerFactory\getLogger(), ilObject\getRefId(), and user().
Here is the call graph for this function:
|
protected |
Add heading to question.
| int | $a_id |
Definition at line 823 of file class.ilSurveyPageGUI.php.
References callEditor().
Here is the call graph for this function:| ilSurveyPageGUI::addPoolQuestion | ( | $pos, | |
| $node | |||
| ) |
Definition at line 1739 of file class.ilSurveyPageGUI.php.
|
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) |
Definition at line 383 of file class.ilSurveyPageGUI.php.
References $_GET, $_POST, $ctrl, $tabs, SurveyQuestionGUI\_getQuestionGUI(), and ilObjSurveyQuestionPool\_getQuestiontypes().
Referenced by addQuestionToolbar(), and executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add question to survey action (used in toolbar)
Definition at line 1095 of file class.ilSurveyPageGUI.php.
References $_POST, $ctrl, $lng, addQuestion(), addQuestionToolbarForm(), renderPage(), and ilUtil\sendFailure().
Here is the call graph for this function:
|
protected |
Add question to survey form (used in toolbar)
Definition at line 1039 of file class.ilSurveyPageGUI.php.
References $ctrl, $lng, $si, $tpl, and ilObjSurveyQuestionPool\_getQuestiontypes().
Referenced by addQuestionToolbar().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add new question to survey (database part)
| int | $a_new_id | |
| bool | $a_duplicate |
Definition at line 190 of file class.ilSurveyPageGUI.php.
References $db, $ilDB, and $result.
Referenced by insertNewQuestion(), insertQuestionBlock(), and paste().
Here is the caller graph for this function:
|
protected |
Definition at line 851 of file class.ilSurveyPageGUI.php.
References $tabs.
Referenced by addHeading(), deleteHeading(), editBlock(), and editHeading().
Here is the caller graph for this function:
|
protected |
Empty clipboard.
Definition at line 528 of file class.ilSurveyPageGUI.php.
References $_SESSION, and $ref_id.
Referenced by paste().
Here is the caller graph for this function:
|
protected |
Remove question(s) from survey.
Definition at line 749 of file class.ilSurveyPageGUI.php.
|
protected |
Add question to be copied to clipboard.
| int | $a_id | question id |
Definition at line 472 of file class.ilSurveyPageGUI.php.
|
protected |
Add question to be cut to clipboard.
| int | $a_id | question id |
Definition at line 454 of file class.ilSurveyPageGUI.php.
|
protected |
Confirm removing question block.
| int | $a_id |
Definition at line 703 of file class.ilSurveyPageGUI.php.
References $ctrl, $lng, and ilUtil\sendQuestion().
Here is the call graph for this function:
|
protected |
Delete question heading.
| int | $a_id |
Definition at line 845 of file class.ilSurveyPageGUI.php.
References callEditor().
Here is the call graph for this function:
|
protected |
Confirm removing question(s) from survey.
| int | array | $a_id |
Definition at line 733 of file class.ilSurveyPageGUI.php.
References $ctrl.
| ilSurveyPageGUI::determineCurrentPage | ( | ) |
determine current page
Definition at line 168 of file class.ilSurveyPageGUI.php.
References $current_page.
Referenced by executeCommand().
Here is the caller graph for this function:
|
protected |
Move questions in page.
Definition at line 681 of file class.ilSurveyPageGUI.php.
References $target_id.
|
protected |
Edit question block.
| int | $a_id |
Definition at line 812 of file class.ilSurveyPageGUI.php.
References callEditor().
Here is the call graph for this function:
|
protected |
Edit question heading.
| int | $a_id |
Definition at line 834 of file class.ilSurveyPageGUI.php.
References callEditor().
Here is the call graph for this function:
|
protected |
Edit question.
| int | $a_id |
Definition at line 1022 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::executeCommand | ( | ) |
Routing.
Definition at line 93 of file class.ilSurveyPageGUI.php.
References $ctrl, $current_page, $lng, $rbacsystem, $type, addQuestion(), determineCurrentPage(), insertNewQuestion(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilSurveyPageGUI::getAutoBlockTitle | ( | ) |
Get name for newly created blocks.
Definition at line 1732 of file class.ilSurveyPageGUI.php.
References $lng.
Referenced by insertNewQuestion(), insertQuestionBlock(), moveNext(), movePrevious(), paste(), and splitPage().
Here is the caller graph for this function:| ilSurveyPageGUI::getPageNodes | ( | array | $a_questions, |
$a_has_previous_page = false, |
|||
$a_has_next_page = false, |
|||
$a_readonly = false |
|||
| ) |
Get Form HTML.
| array | $questions | |
| bool | $a_has_previous_page | |
| bool | $a_has_next_page | |
| bool | $a_readonly |
Definition at line 1457 of file class.ilSurveyPageGUI.php.
References $_SESSION, $ctrl, $lng, ilObjSurveyQuestionPool\_getQuestiontypes(), and renderPageNode().
Referenced by renderPage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSurveyPageGUI::insertNewQuestion | ( | $a_new_id | ) |
Add new question to survey.
| int | $a_new_id |
Definition at line 237 of file class.ilSurveyPageGUI.php.
References $db, $ilDB, $lng, $rbacsystem, SurveyQuestion\_isComplete(), appendNewQuestionToSurvey(), getAutoBlockTitle(), and ilUtil\sendFailure().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSurveyPageGUI::insertQuestionBlock | ( | $a_block_id | ) |
Copy and insert questions from block.
| int | $a_block_id |
Definition at line 306 of file class.ilSurveyPageGUI.php.
References appendNewQuestionToSurvey(), and getAutoBlockTitle().
Here is the call graph for this function:
|
protected |
Move question to next page.
| int | $a_id |
Definition at line 913 of file class.ilSurveyPageGUI.php.
References $current_page, $source, $target_id, and getAutoBlockTitle().
Here is the call graph for this function:
|
protected |
Move current page to new position.
Definition at line 1163 of file class.ilSurveyPageGUI.php.
|
protected |
Move current page.
Definition at line 1118 of file class.ilSurveyPageGUI.php.
|
protected |
Move question to previous page.
| int | $a_id |
Definition at line 969 of file class.ilSurveyPageGUI.php.
References $source, $target_id, and getAutoBlockTitle().
Here is the call graph for this function:
|
protected |
Add questions to be copied to clipboard.
| array | $a_id | question ids |
Definition at line 510 of file class.ilSurveyPageGUI.php.
|
protected |
Add questions to be cut to clipboard.
| array | $a_id | question ids |
Definition at line 490 of file class.ilSurveyPageGUI.php.
|
protected |
Paste from clipboard.
| int | $a_id | target position |
Definition at line 538 of file class.ilSurveyPageGUI.php.
References $_SESSION, $data, $ref_id, $source, ilObjSurvey\_instanciateQuestion(), appendNewQuestionToSurvey(), clearClipboard(), and getAutoBlockTitle().
Here is the call graph for this function:
|
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 1334 of file class.ilSurveyPageGUI.php.
References $_SESSION, $ctrl, $lng, $rbacsystem, $tpl, ilObjAdvancedEditing\_getUsedHTMLTags(), ilObjSurvey\_hasDatasets(), ilGlyphGUI\ADD, ilGlyphGUI\DRAG, ilGlyphGUI\get(), ilUtil\getImagePath(), getPageNodes(), ilYuiUtil\initDragDrop(), ilTinyMCE\removeRedundantSeparators(), renderToolbar(), and ilUtil\sendInfo().
Referenced by addQuestionToolbar().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSurveyPageGUI::renderPageNode | ( | ilTemplate | $a_tpl, |
| $a_type, | |||
| $a_id, | |||
$a_content = null, |
|||
| array | $a_menu = null, |
||
$a_spacer = false, |
|||
$a_subtitle = false, |
|||
$a_status = false, |
|||
$a_heading = false |
|||
| ) |
Render single of dnd page view.
| ilTemplate | $a_tpl | |
| string | $a_type | |
| int | $a_id | |
| string | $a_content | |
| array | $a_menu | |
| bool | $a_spacer | |
| string | $a_subtitle | |
| string | $a_heading |
Definition at line 1630 of file class.ilSurveyPageGUI.php.
References $ctrl, $lng, $url, ilGlyphGUI\ADD, ilGlyphGUI\get(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilTemplate\touchBlock().
Referenced by getPageNodes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render toolbar form.
| array | $a_pages |
Definition at line 1205 of file class.ilSurveyPageGUI.php.
References $ctrl, $ilUser, $lng, $si, $toolbar, $url, $user, and ilLinkButton\getInstance().
Referenced by renderPage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Split current page in 2 pages.
| int | $a_id |
Definition at line 866 of file class.ilSurveyPageGUI.php.
References $source, and getAutoBlockTitle().
Here is the call graph for this function:
|
protected |
Definition at line 19 of file class.ilSurveyPageGUI.php.
Referenced by addPoolQuestion(), addQuestion(), addQuestionToolbar(), addQuestionToolbarForm(), confirmRemoveQuestions(), deleteBlock(), deleteQuestion(), editQuestion(), executeCommand(), getPageNodes(), movePage(), movePageForm(), renderPage(), renderPageNode(), and renderToolbar().
|
protected |
Definition at line 55 of file class.ilSurveyPageGUI.php.
Referenced by determineCurrentPage(), executeCommand(), and moveNext().
|
protected |
Definition at line 29 of file class.ilSurveyPageGUI.php.
Referenced by appendNewQuestionToSurvey(), and insertNewQuestion().
|
protected |
Definition at line 54 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 58 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 57 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 56 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 52 of file class.ilSurveyPageGUI.php.
Referenced by addQuestionToolbar(), addQuestionToolbarForm(), copyQuestion(), cutQuestion(), deleteBlock(), executeCommand(), getAutoBlockTitle(), getPageNodes(), insertNewQuestion(), movePage(), movePageForm(), multiCopy(), multiCut(), renderPage(), renderPageNode(), and renderToolbar().
|
protected |
Definition at line 64 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 53 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 24 of file class.ilSurveyPageGUI.php.
Referenced by executeCommand(), insertNewQuestion(), and renderPage().
|
protected |
Definition at line 51 of file class.ilSurveyPageGUI.php.
Referenced by clearClipboard(), copyQuestion(), cutQuestion(), multiCopy(), multiCut(), and paste().
|
protected |
Definition at line 34 of file class.ilSurveyPageGUI.php.
Referenced by addQuestion(), and callEditor().
|
protected |
Definition at line 44 of file class.ilSurveyPageGUI.php.
Referenced by renderToolbar().
|
protected |
Definition at line 39 of file class.ilSurveyPageGUI.php.
Referenced by addQuestionToolbarForm(), movePageForm(), and renderPage().
|
protected |
Definition at line 59 of file class.ilSurveyPageGUI.php.
|
protected |
Definition at line 49 of file class.ilSurveyPageGUI.php.
Referenced by addPoolQuestion(), and renderToolbar().