| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Survey per page view. More...
 Collaboration diagram for ilSurveyPageGUI:
 Collaboration diagram for ilSurveyPageGUI:| Public Member Functions | |
| __construct (ilObjSurveyGUI $a_survey_gui) | |
| Constructor. | |
| executeCommand () | |
| Routing. | |
| determineCurrentPage () | |
| determine current page | |
| insertNewQuestion ($a_new_id) | |
| Add new question to survey. | |
| insertQuestionBlock ($a_block_id) | |
| Copy and insert questions from block. | |
| getPageNodes (array $a_questions, $a_has_previous_page=false, $a_has_next_page=false, $a_readonly=false) | |
| Get Form HTML. | |
| 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. | |
| confirmDeleteAllUserData () | |
| Deletes all user data of the survey after confirmation. | |
| confirmRemoveHeading () | |
| Deletes heading after confirmation. | |
| editJS () | |
| Edit content (ajax, js) | |
| saveJS () | |
| Save content (ajax, js) | |
| getAutoBlockTitle () | |
| Get name for newly created blocks. | |
| addPoolQuestion ($pos, $node) | |
| Protected Member Functions | |
| appendNewQuestionToSurvey ($a_new_id, $a_duplicate=true, $a_force_duplicate=false) | |
| Add new question to survey (database part) | |
| addQuestion ($a_type, $a_use_pool, $a_pos, $a_special_position) | |
| Call add question to survey form. | |
| cutQuestion ($a_id) | |
| Add question to be cut to clipboard. | |
| copyQuestion ($a_id) | |
| Add question to be copied to clipboard. | |
| multiCut ($a_id) | |
| Add questions to be cut to clipboard. | |
| multiCopy ($a_id) | |
| Add questions to be copied to clipboard. | |
| clearClipboard () | |
| Empty clipboard. | |
| paste ($a_id) | |
| Paste from clipboard. | |
| dnd () | |
| Move questions in page. | |
| deleteBlock () | |
| Confirm removing question block. | |
| deleteQuestion ($a_id) | |
| Confirm removing question(s) from survey. | |
| confirmRemoveQuestions () | |
| Remove question(s) from survey. | |
| editBlock ($a_id) | |
| Edit question block. | |
| addHeading ($a_id) | |
| Add heading to question. | |
| editHeading ($a_id) | |
| Edit question heading. | |
| deleteHeading ($a_id) | |
| Delete question heading. | |
| splitPage ($a_id) | |
| Split current page in 2 pages. | |
| moveNext ($a_id) | |
| Move question to next page. | |
| movePrevious ($a_id) | |
| Move question to previous page. | |
| editQuestion ($a_id) | |
| Edit question. | |
| addQuestionToolbarForm () | |
| Add question to survey form (used in toolbar) | |
| addQuestionToolbar () | |
| Add question to survey action (used in toolbar) | |
| movePageForm () | |
| Move current page. | |
| movePage () | |
| Move current page to new position. | |
| renderToolbar ($a_pages) | |
| Render toolbar form. | |
| renderPage () | |
| render questions per page | |
| Protected Attributes | |
| $ref_id | |
| $lng | |
| $object | |
| $survey_gui | |
| $current_page | |
| $has_previous_page | |
| $has_next_page | |
| $has_datasets | |
| $use_pool | |
Survey per page view.
Definition at line 14 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::__construct | ( | ilObjSurveyGUI | $a_survey_gui | ) | 
Constructor.
| ilObjSurveyGUI | $a_survey_gui | 
Definition at line 31 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Add heading to question.
| int | $a_id | 
Definition at line 813 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::addPoolQuestion | ( | $pos, | |
| $node | |||
| ) | 
Definition at line 1816 of file class.ilSurveyPageGUI.php.
References $cmd, $ilCtrl, and $ilUser.
| 
 | 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 338 of file class.ilSurveyPageGUI.php.
References $_GET, $_POST, $_REQUEST, $ilCtrl, ilObjSurveyQuestionPool\_getQuestiontypes(), and ilUtil\redirect().
Referenced by addQuestionToolbar(), and executeCommand().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Add question to survey action (used in toolbar)
Definition at line 1096 of file class.ilSurveyPageGUI.php.
References $_POST, $ilCtrl, $lng, addQuestion(), addQuestionToolbarForm(), renderPage(), and ilUtil\sendFailure().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Add question to survey form (used in toolbar)
Definition at line 1028 of file class.ilSurveyPageGUI.php.
References $ilCtrl, $lng, $si, $tpl, ilObjSurveyQuestionPool\_getQuestiontypes(), and ilSelectInputGUI\setOptions().
Referenced by addQuestionToolbar().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 155 of file class.ilSurveyPageGUI.php.
References $result.
Referenced by insertNewQuestion(), insertQuestionBlock(), and paste().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Empty clipboard.
Definition at line 482 of file class.ilSurveyPageGUI.php.
References $_SESSION, and $ref_id.
Referenced by paste().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSurveyPageGUI::confirmDeleteAllUserData | ( | ) | 
Deletes all user data of the survey after confirmation.
Definition at line 1741 of file class.ilSurveyPageGUI.php.
References $ilCtrl, $lng, renderPage(), and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSurveyPageGUI::confirmRemoveHeading | ( | ) | 
Deletes heading after confirmation.
Definition at line 1754 of file class.ilSurveyPageGUI.php.
References $_POST, $ilCtrl, and renderPage().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Remove question(s) from survey.
Definition at line 729 of file class.ilSurveyPageGUI.php.
References $_POST, and $ilCtrl.
| 
 | protected | 
Add question to be copied to clipboard.
| int | $a_id | question id | 
Definition at line 430 of file class.ilSurveyPageGUI.php.
References $_SESSION, $lng, $ref_id, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Add question to be cut to clipboard.
| int | $a_id | question id | 
Definition at line 412 of file class.ilSurveyPageGUI.php.
References $_SESSION, $lng, $ref_id, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Confirm removing question block.
| int | $a_id | 
Definition at line 681 of file class.ilSurveyPageGUI.php.
References $_REQUEST, $ilCtrl, $lng, and ilUtil\sendQuestion().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Delete question heading.
| int | $a_id | 
Definition at line 835 of file class.ilSurveyPageGUI.php.
References $_GET.
| 
 | protected | 
Confirm removing question(s) from survey.
| int | array | $a_id | 
Definition at line 716 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::determineCurrentPage | ( | ) | 
determine current page
Definition at line 131 of file class.ilSurveyPageGUI.php.
References $_REQUEST, and $current_page.
Referenced by executeCommand().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Move questions in page.
Definition at line 655 of file class.ilSurveyPageGUI.php.
References $_REQUEST, and $target_id.
| 
 | protected | 
Edit question block.
| int | $a_id | 
Definition at line 802 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Edit question heading.
| int | $a_id | 
Definition at line 824 of file class.ilSurveyPageGUI.php.
| ilSurveyPageGUI::editJS | ( | ) | 
Edit content (ajax, js)
Definition at line 1767 of file class.ilSurveyPageGUI.php.
References $_POST, exit, and ilObjSurvey\getTextblock().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Edit question.
| int | $a_id | 
Definition at line 1015 of file class.ilSurveyPageGUI.php.
References $data, ilObject\_getAllReferences(), and ilUtil\redirect().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSurveyPageGUI::executeCommand | ( | ) | 
Routing.
Definition at line 41 of file class.ilSurveyPageGUI.php.
References $_REQUEST, $cmd, $current_page, $ilCtrl, $lng, addQuestion(), determineCurrentPage(), insertNewQuestion(), and ilUtil\sendFailure().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSurveyPageGUI::getAutoBlockTitle | ( | ) | 
Get name for newly created blocks.
Definition at line 1809 of file class.ilSurveyPageGUI.php.
References $lng.
Referenced by insertNewQuestion(), insertQuestionBlock(), moveNext(), movePrevious(), paste(), and splitPage().
 Here is the caller graph for this function:
 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 1480 of file class.ilSurveyPageGUI.php.
References $_SESSION, $ilCtrl, $lng, ilObjSurveyQuestionPool\_getQuestiontypes(), and renderPageNode().
Referenced by renderPage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 193 of file class.ilSurveyPageGUI.php.
References $_REQUEST, $lng, SurveyQuestion\_isComplete(), appendNewQuestionToSurvey(), getAutoBlockTitle(), and ilUtil\sendFailure().
Referenced by executeCommand().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 262 of file class.ilSurveyPageGUI.php.
References $_REQUEST, appendNewQuestionToSurvey(), and getAutoBlockTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Move question to next page.
| int | $a_id | 
Definition at line 897 of file class.ilSurveyPageGUI.php.
References $current_page, $target_id, and getAutoBlockTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Move current page to new position.
Definition at line 1172 of file class.ilSurveyPageGUI.php.
References $_REQUEST, $ilCtrl, $lng, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Move current page.
Definition at line 1120 of file class.ilSurveyPageGUI.php.
References $ilCtrl, $lng, $tpl, and ilSelectInputGUI\setOptions().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Move question to previous page.
| int | $a_id | 
Definition at line 958 of file class.ilSurveyPageGUI.php.
References $target_id, and getAutoBlockTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Add questions to be copied to clipboard.
| array | $a_id | question ids | 
Definition at line 466 of file class.ilSurveyPageGUI.php.
References $_SESSION, $lng, $ref_id, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Add questions to be cut to clipboard.
| array | $a_id | question ids | 
Definition at line 448 of file class.ilSurveyPageGUI.php.
References $_SESSION, $lng, $ref_id, and ilUtil\sendSuccess().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Paste from clipboard.
| int | $a_id | target position | 
Definition at line 492 of file class.ilSurveyPageGUI.php.
References $_REQUEST, $_SESSION, $data, $ref_id, $title, ilObjSurvey\_instanciateQuestion(), appendNewQuestionToSurvey(), clearClipboard(), and getAutoBlockTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
render questions per page
Definition at line 1319 of file class.ilSurveyPageGUI.php.
References $_SESSION, $cmd, $ilCtrl, $lng, $tpl, ilObjAdvancedEditing\_getUsedHTMLTags(), ilUtil\getImagePath(), getPageNodes(), ilYuiUtil\initDragDrop(), renderToolbar(), and ilUtil\sendInfo().
Referenced by addQuestionToolbar(), confirmDeleteAllUserData(), and confirmRemoveHeading().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 1653 of file class.ilSurveyPageGUI.php.
References $ilCtrl, $lng, ilUtil\getImagePath(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by getPageNodes().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Render toolbar form.
| array | $a_pages | 
Definition at line 1212 of file class.ilSurveyPageGUI.php.
References $cmd, $has_next_page, $has_previous_page, $ilCtrl, $ilUser, $lng, and $si.
Referenced by renderPage().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSurveyPageGUI::saveJS | ( | ) | 
Save content (ajax, js)
Definition at line 1787 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Split current page in 2 pages.
| int | $a_id | 
Definition at line 847 of file class.ilSurveyPageGUI.php.
References getAutoBlockTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 20 of file class.ilSurveyPageGUI.php.
Referenced by determineCurrentPage(), executeCommand(), and moveNext().
| 
 | protected | 
Definition at line 23 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Definition at line 22 of file class.ilSurveyPageGUI.php.
Referenced by renderToolbar().
| 
 | protected | 
Definition at line 21 of file class.ilSurveyPageGUI.php.
Referenced by renderToolbar().
| 
 | protected | 
Definition at line 17 of file class.ilSurveyPageGUI.php.
Referenced by addQuestionToolbar(), addQuestionToolbarForm(), confirmDeleteAllUserData(), copyQuestion(), cutQuestion(), deleteBlock(), executeCommand(), getAutoBlockTitle(), getPageNodes(), insertNewQuestion(), movePage(), movePageForm(), multiCopy(), multiCut(), renderPage(), renderPageNode(), and renderToolbar().
| 
 | protected | 
Definition at line 18 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Definition at line 16 of file class.ilSurveyPageGUI.php.
Referenced by clearClipboard(), copyQuestion(), cutQuestion(), multiCopy(), multiCut(), and paste().
| 
 | protected | 
Definition at line 19 of file class.ilSurveyPageGUI.php.
| 
 | protected | 
Definition at line 24 of file class.ilSurveyPageGUI.php.