ILIAS
Release_4_0_x_branch Revision 61816
|
FeedbackGUI Class. More...
Public Member Functions | |
ilFeedback ($a_id=0) | |
setId ($a_id) | |
getId () | |
setTitle ($a_title) | |
getTitle () | |
setDescription ($a_description) | |
getDescription () | |
setAnonymous ($a_anonymous) | |
getAnonymous () | |
setRequired ($a_required) | |
getRequired () | |
setShowOn ($a_show_location) | |
getShowOn () | |
setVotes ($a_votes) | |
getVotes () | |
setStarttime ($a_starttime) | |
getStarttime () | |
setEndtime ($a_endtime) | |
getEndtime () | |
setInterval ($a_interval) | |
getInterval () | |
setIntervalUnit ($a_interval_unit) | |
getIntervalUnit () | |
setFirstVoteBest ($a_first_vote_best) | |
getFirstVoteBest () | |
setObjId ($a_obj_id) | |
getObjId () | |
setRefId ($a_ref_id) | |
getRefId () | |
setTextAnswer ($a_text_answer) | |
getTextAnswer () | |
setIds ($a_ids) | |
setUserId ($a_user_id) | |
setVote ($a_vote) | |
setNote ($a_note) | |
setAllData ($a_barometer) | |
set all data of a baromter | |
create () | |
create an new barometer | |
update () | |
update a barometer | |
getBarometer () | |
get a baromter by id | |
getBarometerByObjId () | |
Get a barometer by obj_id. | |
getBarometerByRefId () | |
get a baromter by ref_id | |
getFeedback ($required=0) | |
get a required baromter for a certain ref_id | |
getAllBarometer ($a_show_inactive=1, $a_only_req=0) | |
get all barometers for a certain ref_id if no ref_id is set we get all barometers, this is needed for the personal desktop box. | |
delete () | |
delete a barometer and its results | |
saveResult () | |
save a feedback result | |
canVote ($a_user_id, $a_fb_id) | |
check if a certain user has already answerd a certain barometer | |
getChartData () | |
get the information to display on the charts | |
getNotes () | |
get the comments of an user or all users | |
getResultUsers () | |
get all users that have answerd a certain barometer | |
interval2seconds ($a_interval, $a_interval_unit) | |
convert a interval with unit to seconds ex. |
FeedbackGUI Class.
Definition at line 15 of file class.ilFeedback.php.
ilFeedback::canVote | ( | $a_user_id, | |
$a_fb_id | |||
) |
check if a certain user has already answerd a certain barometer
Definition at line 427 of file class.ilFeedback.php.
References $ilDB, $q, $res, ilCourseParticipants\_getInstanceByObjId(), and interval2seconds().
Referenced by saveResult().
ilFeedback::create | ( | ) |
create an new barometer
Definition at line 166 of file class.ilFeedback.php.
References $ilDB.
ilFeedback::delete | ( | ) |
delete a barometer and its results
Definition at line 375 of file class.ilFeedback.php.
ilFeedback::getAllBarometer | ( | $a_show_inactive = 1 , |
|
$a_only_req = 0 |
|||
) |
get all barometers for a certain ref_id if no ref_id is set we get all barometers, this is needed for the personal desktop box.
Definition at line 328 of file class.ilFeedback.php.
References $ilDB, $q, $res, $row, and ilFeedback().
ilFeedback::getAnonymous | ( | ) |
Definition at line 50 of file class.ilFeedback.php.
ilFeedback::getBarometer | ( | ) |
get a baromter by id
Definition at line 256 of file class.ilFeedback.php.
References $ilDB, $q, $res, $row, and setAllData().
Referenced by ilFeedback().
ilFeedback::getBarometerByObjId | ( | ) |
Get a barometer by obj_id.
Definition at line 272 of file class.ilFeedback.php.
References $ilDB, $q, $res, $row, and setAllData().
ilFeedback::getBarometerByRefId | ( | ) |
get a baromter by ref_id
Definition at line 288 of file class.ilFeedback.php.
References $ilDB, $q, $res, $row, and setAllData().
ilFeedback::getChartData | ( | ) |
get the information to display on the charts
Definition at line 472 of file class.ilFeedback.php.
References $data, $ilDB, $legend, $n, $q, $res, and $row.
ilFeedback::getDescription | ( | ) |
Definition at line 43 of file class.ilFeedback.php.
ilFeedback::getEndtime | ( | ) |
Definition at line 85 of file class.ilFeedback.php.
ilFeedback::getFeedback | ( | $required = 0 | ) |
get a required baromter for a certain ref_id
Definition at line 303 of file class.ilFeedback.php.
References $ilDB, $q, $res, $row, and setAllData().
ilFeedback::getFirstVoteBest | ( | ) |
Definition at line 106 of file class.ilFeedback.php.
ilFeedback::getId | ( | ) |
Definition at line 30 of file class.ilFeedback.php.
ilFeedback::getInterval | ( | ) |
Definition at line 92 of file class.ilFeedback.php.
ilFeedback::getIntervalUnit | ( | ) |
Definition at line 99 of file class.ilFeedback.php.
ilFeedback::getNotes | ( | ) |
get the comments of an user or all users
Definition at line 541 of file class.ilFeedback.php.
References $data, $ilDB, $q, $res, and $row.
ilFeedback::getObjId | ( | ) |
Definition at line 113 of file class.ilFeedback.php.
ilFeedback::getRefId | ( | ) |
Definition at line 119 of file class.ilFeedback.php.
ilFeedback::getRequired | ( | ) |
Definition at line 57 of file class.ilFeedback.php.
ilFeedback::getResultUsers | ( | ) |
get all users that have answerd a certain barometer
Definition at line 570 of file class.ilFeedback.php.
References $ilDB, $q, $res, and $row.
ilFeedback::getShowOn | ( | ) |
Definition at line 64 of file class.ilFeedback.php.
ilFeedback::getStarttime | ( | ) |
Definition at line 78 of file class.ilFeedback.php.
ilFeedback::getTextAnswer | ( | ) |
Definition at line 126 of file class.ilFeedback.php.
ilFeedback::getTitle | ( | ) |
Definition at line 37 of file class.ilFeedback.php.
ilFeedback::getVotes | ( | ) |
Definition at line 71 of file class.ilFeedback.php.
ilFeedback::ilFeedback | ( | $a_id = 0 | ) |
Definition at line 17 of file class.ilFeedback.php.
References getBarometer().
Referenced by getAllBarometer().
ilFeedback::interval2seconds | ( | $a_interval, | |
$a_interval_unit | |||
) |
convert a interval with unit to seconds ex.
4 days to seconds
Definition at line 593 of file class.ilFeedback.php.
Referenced by canVote().
ilFeedback::saveResult | ( | ) |
save a feedback result
Definition at line 400 of file class.ilFeedback.php.
References $ilDB, and canVote().
ilFeedback::setAllData | ( | $a_barometer | ) |
set all data of a baromter
Definition at line 145 of file class.ilFeedback.php.
References setAnonymous(), setDescription(), setEndtime(), setFirstVoteBest(), setId(), setInterval(), setIntervalUnit(), setObjId(), setRefId(), setRequired(), setShowOn(), setStarttime(), setTextAnswer(), setTitle(), and setVotes().
Referenced by getBarometer(), getBarometerByObjId(), getBarometerByRefId(), and getFeedback().
ilFeedback::setAnonymous | ( | $a_anonymous | ) |
Definition at line 46 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setDescription | ( | $a_description | ) |
Definition at line 40 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setEndtime | ( | $a_endtime | ) |
Definition at line 81 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setFirstVoteBest | ( | $a_first_vote_best | ) |
Definition at line 102 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setId | ( | $a_id | ) |
Definition at line 26 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setIds | ( | $a_ids | ) |
Definition at line 129 of file class.ilFeedback.php.
ilFeedback::setInterval | ( | $a_interval | ) |
Definition at line 88 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setIntervalUnit | ( | $a_interval_unit | ) |
Definition at line 95 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setNote | ( | $a_note | ) |
Definition at line 138 of file class.ilFeedback.php.
ilFeedback::setObjId | ( | $a_obj_id | ) |
Definition at line 109 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setRefId | ( | $a_ref_id | ) |
Definition at line 116 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setRequired | ( | $a_required | ) |
Definition at line 53 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setShowOn | ( | $a_show_location | ) |
Definition at line 60 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setStarttime | ( | $a_starttime | ) |
Definition at line 74 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setTextAnswer | ( | $a_text_answer | ) |
Definition at line 122 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setTitle | ( | $a_title | ) |
Definition at line 33 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setUserId | ( | $a_user_id | ) |
Definition at line 132 of file class.ilFeedback.php.
ilFeedback::setVote | ( | $a_vote | ) |
Definition at line 135 of file class.ilFeedback.php.
ilFeedback::setVotes | ( | $a_votes | ) |
Definition at line 67 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::update | ( | ) |
update a barometer
Definition at line 214 of file class.ilFeedback.php.
References $ilDB.