dokeos-library
[ class tree: dokeos-library ] [ index: dokeos-library ] [ all elements ]

Class: SurveyManager

Source Location: /main/inc/lib/surveymanager.lib.php

Class Overview


This library provides functions for user management.


Author(s):

  • Bart Mollet, main author

Methods



Class Details

[line 33]
This library provides functions for user management.

Include/require it in your code to use its functionality.




Tags:

author:  Bart Mollet, main author


[ Top ]


Class Methods


method attach_survey [line 705]

void attach_survey( $surveyid, $newsurveyid, $db_name, $curr_dbname)



Parameters:

   $surveyid  
   $newsurveyid  
   $db_name  
   $curr_dbname  

[ Top ]

method create_course_survey_rel [line 1079]

void create_course_survey_rel( $cidReq, $survey_id, $table_course, $table_course_survey_rel)



Parameters:

   $cidReq  
   $survey_id  
   $table_course  
   $table_course_survey_rel  

[ Top ]

method create_group [line 80]

void create_group( $survey_id, $group_title, $introduction, $table_group)



Parameters:

   $survey_id  
   $group_title  
   $introduction  
   $table_group  

[ Top ]

method create_question [line 290]

void create_question( $gid, $surveyid, $qtype, $caption, $alignment, $answers, $open_ans, $answerT, $answerD, $rating, $curr_dbname)



Parameters:

   $gid  
   $surveyid  
   $qtype  
   $caption  
   $alignment  
   $answers  
   $open_ans  
   $answerT  
   $answerD  
   $rating  
   $curr_dbname  

[ Top ]

method create_survey [line 184]

void create_survey( $surveycode, $surveytitle, $surveysubtitle, $author, $survey_language, $availablefrom, $availabletill, $isshare, $surveytemplate, $surveyintroduction, $surveythanks, $table_survey, $table_group)



Parameters:

   $surveycode  
   $surveytitle  
   $surveysubtitle  
   $author  
   $survey_language  
   $availablefrom  
   $availabletill  
   $isshare  
   $surveytemplate  
   $surveyintroduction  
   $surveythanks  
   $table_survey  
   $table_group  

[ Top ]

method create_survey_attach [line 229]

void create_survey_attach( $surveycode, $surveytitle, $surveysubtitle, $author, $survey_language, $availablefrom, $availabletill, $isshare, $surveytemplate, $surveyintroduction, $surveythanks, $table_survey, $table_group)



Parameters:

   $surveycode  
   $surveytitle  
   $surveysubtitle  
   $author  
   $survey_language  
   $availablefrom  
   $availabletill  
   $isshare  
   $surveytemplate  
   $surveyintroduction  
   $surveythanks  
   $table_survey  
   $table_group  

[ Top ]

method create_survey_in_another_language [line 196]

void create_survey_in_another_language( $id, $lang)



Parameters:

   $id  
   $lang  

[ Top ]

method delete_group [line 513]

void delete_group( unknown_type $group_id, unknown_type $curr_dbname)

This function deletes a



Tags:

author:  unknown
author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University, refactoring: using correct database calls and removing useless second parameter


Parameters:

unknown_type   $group_id  
unknown_type   $curr_dbname  

[ Top ]

method delete_survey [line 478]

void delete_survey( unknown_type $survey_id)

This function deletes a survey and all the groups and question belonging to it.



Tags:

author:  unknown
author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University, cleanup and refactoring


Parameters:

unknown_type   $survey_id  

[ Top ]

method display_imported_group [line 669]

void display_imported_group( $sid, $table_group, $table_question)



Parameters:

   $sid  
   $table_group  
   $table_question  

[ Top ]

method display_sortable_table [line 1610]

void display_sortable_table( unknown_type $groupid, unknown_type $surveyid, unknown_type $curr_dbname, unknown_type $header, unknown_type $content, [unknown_type $sorting_options = array ()], [unknown_type $paging_options = array ()], [unknown_type $query_vars = null])

Displays a sortable table for the surveys



Tags:

todo:  check if this function is needed as it seems that this is a copy of the Display::display_sortable_table function.


Parameters:

unknown_type   $groupid  
unknown_type   $surveyid  
unknown_type   $curr_dbname  
unknown_type   $header  
unknown_type   $content  
unknown_type   $sorting_options  
unknown_type   $paging_options  
unknown_type   $query_vars  

[ Top ]

method getUserAnswersDetails [line 1893]

void getUserAnswersDetails( $id_userAnswers, [ $params = ''])



Parameters:

   $id_userAnswers  
   $params  

[ Top ]

method get_all_datas [line 395]

void get_all_datas( $id)



Parameters:

   $id  

[ Top ]

method get_author [line 114]

void get_author( $db_name, $survey_id)



Parameters:

   $db_name  
   $survey_id  

[ Top ]

method get_data [line 384]

void get_data( $id, $field)



Parameters:

   $id  
   $field  

[ Top ]

method get_groupname [line 142]

void get_groupname( $db_name, $gid)



Parameters:

   $db_name  
   $gid  

[ Top ]

method get_questions_move [line 1584]

void get_questions_move( $curr_dbname)



Parameters:

   $curr_dbname  

[ Top ]

method get_question_data [line 371]

void get_question_data( $qid, $curr_dbname)



Parameters:

   $qid  
   $curr_dbname  

[ Top ]

method get_question_type [line 351]

void get_question_type( $questionid)



Parameters:

   $questionid  

[ Top ]

method get_status [line 1544]

unknown get_status( )

Enter description here...



Tags:

todo:  remove this function because this is of no use and should not be used.


[ Top ]

method get_surveyid [line 123]

void get_surveyid( $db_name, $group_id)



Parameters:

   $db_name  
   $group_id  

[ Top ]

method get_surveyname [line 406]

void get_surveyname( $db_name, $sid)



Parameters:

   $db_name  
   $sid  

[ Top ]

method get_surveyname_display [line 414]

void get_surveyname_display( $sid)



Parameters:

   $sid  

[ Top ]

method get_survey_author [line 104]

void get_survey_author( $authorid)



Parameters:

   $authorid  

[ Top ]

method get_survey_code [line 159]

void get_survey_code( $table_survey, $survey_code)



Parameters:

   $table_survey  
   $survey_code  

[ Top ]

method get_survey_list [line 170]

void get_survey_list( )



[ Top ]

method import_existing_question [line 1091]

void import_existing_question( $surveyid, $qids, $table_group, $table_question, $yes)



Parameters:

   $surveyid  
   $qids  
   $table_group  
   $table_question  
   $yes  

[ Top ]

method import_group [line 1410]

void import_group( $sid, $gids, $db_name, $curr_dbname)



Parameters:

   $sid  
   $gids  
   $db_name  
   $curr_dbname  

[ Top ]

method import_question [line 1027]

void import_question( $surveyid, $qids, $table_group, $table_question, $db_name, $cidReq, $yes)



Parameters:

   $surveyid  
   $qids  
   $table_group  
   $table_question  
   $db_name  
   $cidReq  
   $yes  

[ Top ]

method import_questions [line 435]

void import_questions( $import_type, $ids)



Parameters:

   $import_type  
   $ids  

[ Top ]

method insert_existing_groups [line 1138]

void insert_existing_groups( $sid, $gids, $table_group, $table_question)



Parameters:

   $sid  
   $gids  
   $table_group  
   $table_question  

[ Top ]

method insert_groups [line 581]

void insert_groups( $sid, $newgid, $gids, $table_group, $table_question)



Parameters:

   $sid  
   $newgid  
   $gids  
   $table_group  
   $table_question  

[ Top ]

method insert_into_group [line 152]

void insert_into_group( $survey_id, $group_title, $introduction, $tb)



Parameters:

   $survey_id  
   $group_title  
   $introduction  
   $tb  

[ Top ]

method insert_old_groups [line 893]

void insert_old_groups( $sid, $gids, $table_group, $table_question, $db_name, $cidReq)



Parameters:

   $sid  
   $gids  
   $table_group  
   $table_question  
   $db_name  
   $cidReq  

[ Top ]

method insert_questions [line 537]

void insert_questions( $sid, $newgid, $gid, $table_group)



Parameters:

   $sid  
   $newgid  
   $gid  
   $table_group  

[ Top ]

method listAnswers [line 1858]

void listAnswers( $qid)



Parameters:

   $qid  

[ Top ]

method listGroups [line 1818]

void listGroups( $id_survey, [ $fields = '*'])



Parameters:

   $id_survey  
   $fields  

[ Top ]

method listQuestions [line 1835]

void listQuestions( $id_survey, [ $fields = '*'])



Parameters:

   $id_survey  
   $fields  

[ Top ]

method listUsers [line 1876]

void listUsers( $survey_id, $dbname, [ $fields = 'id, user_id, firstname, lastname, email, organization'])



Parameters:

   $survey_id  
   $dbname  
   $fields  

[ Top ]

method move_question [line 1558]

void move_question( $direction, $qid, $sort, $curr_dbname)



Parameters:

   $direction  
   $qid  
   $sort  
   $curr_dbname  

[ Top ]

method no_of_question [line 361]

void no_of_question( $db_name, $gid)



Parameters:

   $db_name  
   $gid  

[ Top ]

method pick_author [line 1274]

void pick_author( $survey_id)



Parameters:

   $survey_id  

[ Top ]

method pick_surveyname [line 1265]

void pick_surveyname( $sid)



Parameters:

   $sid  

[ Top ]

method question_import [line 1283]

void question_import( $surveyid, $qids, $db_name, $curr_dbname)



Parameters:

   $surveyid  
   $qids  
   $db_name  
   $curr_dbname  

[ Top ]

method ques_id_group_name [line 527]

void ques_id_group_name( $qid)



Parameters:

   $qid  

[ Top ]

method select_group_list [line 551]

void select_group_list( $survey_id, [ $seleced_groupid = ''], [ $extra_script = ''])



Parameters:

   $survey_id  
   $seleced_groupid  
   $extra_script  

[ Top ]

method select_survey_list [line 38]

void select_survey_list( [ $seleced_surveyid = ''], [ $extra_script = ''])

Creates a new survey for the platform



Parameters:

   $seleced_surveyid  
   $extra_script  

[ Top ]

method sort_table [line 1780]

void sort_table( $data, [ $column = 0], [ $direction = SORT_ASC], [ $type = SORT_REGULAR])



Parameters:

   $data  
   $column  
   $direction  
   $type  

[ Top ]

method update_group [line 758]

void update_group( $groupid, $surveyid, $groupnamme, $introduction, $curr_dbname)



Parameters:

   $groupid  
   $surveyid  
   $groupnamme  
   $introduction  
   $curr_dbname  

[ Top ]

method update_question [line 336]

void update_question( $qid, $qtype, $caption, $alignment, $answers, $open_ans, $curr_dbname)



Parameters:

   $qid  
   $qtype  
   $caption  
   $alignment  
   $answers  
   $open_ans  
   $curr_dbname  

[ Top ]

method update_survey [line 238]

void update_survey( $surveyid, $surveycode, $surveytitle, $surveysubtitle, $author, $survey_language, $availablefrom, $availabletill, $isshare, $surveytemplate, $surveyintroduction, $surveythanks, $cidReq, $table_course)



Parameters:

   $surveyid  
   $surveycode  
   $surveytitle  
   $surveysubtitle  
   $author  
   $survey_language  
   $availablefrom  
   $availabletill  
   $isshare  
   $surveytemplate  
   $surveyintroduction  
   $surveythanks  
   $cidReq  
   $table_course  

[ Top ]


Documentation generated on Wed, 05 Sep 2007 06:15:11 +0200 by phpDocumentor 1.4.0