ILIAS
Release_4_2_x_branch Revision 61807
|
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. |
Protected Attributes | |
$ref_id = false |
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 433 of file class.ilFeedback.php.
References $ilDB, $res, ilCourseParticipant\_getInstanceByObjId(), and interval2seconds().
Referenced by saveResult().
ilFeedback::create | ( | ) |
create an new barometer
Definition at line 168 of file class.ilFeedback.php.
References $ilDB.
ilFeedback::delete | ( | ) |
delete a barometer and its results
Definition at line 381 of file class.ilFeedback.php.
References $ilDB.
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 330 of file class.ilFeedback.php.
References $ilDB, $res, $row, and ilFeedback().
ilFeedback::getAnonymous | ( | ) |
Definition at line 52 of file class.ilFeedback.php.
ilFeedback::getBarometer | ( | ) |
get a baromter by id
Definition at line 258 of file class.ilFeedback.php.
References $ilDB, $res, $row, and setAllData().
Referenced by ilFeedback().
ilFeedback::getBarometerByObjId | ( | ) |
Get a barometer by obj_id.
Definition at line 274 of file class.ilFeedback.php.
References $ilDB, $res, $row, and setAllData().
ilFeedback::getBarometerByRefId | ( | ) |
get a baromter by ref_id
Definition at line 290 of file class.ilFeedback.php.
References $ilDB, $res, $row, and setAllData().
ilFeedback::getChartData | ( | ) |
get the information to display on the charts
Definition at line 478 of file class.ilFeedback.php.
References $data, $ilDB, $legend, $n, $res, and $row.
ilFeedback::getDescription | ( | ) |
Definition at line 45 of file class.ilFeedback.php.
ilFeedback::getEndtime | ( | ) |
Definition at line 87 of file class.ilFeedback.php.
ilFeedback::getFeedback | ( | $required = 0 | ) |
get a required baromter for a certain ref_id
Definition at line 305 of file class.ilFeedback.php.
References $ilDB, $res, $row, and setAllData().
ilFeedback::getFirstVoteBest | ( | ) |
Definition at line 108 of file class.ilFeedback.php.
ilFeedback::getId | ( | ) |
Definition at line 32 of file class.ilFeedback.php.
ilFeedback::getInterval | ( | ) |
Definition at line 94 of file class.ilFeedback.php.
ilFeedback::getIntervalUnit | ( | ) |
Definition at line 101 of file class.ilFeedback.php.
ilFeedback::getNotes | ( | ) |
get the comments of an user or all users
Definition at line 547 of file class.ilFeedback.php.
References $data, $ilDB, $res, and $row.
ilFeedback::getObjId | ( | ) |
Definition at line 115 of file class.ilFeedback.php.
ilFeedback::getRefId | ( | ) |
Definition at line 121 of file class.ilFeedback.php.
ilFeedback::getRequired | ( | ) |
Definition at line 59 of file class.ilFeedback.php.
ilFeedback::getResultUsers | ( | ) |
get all users that have answerd a certain barometer
Definition at line 576 of file class.ilFeedback.php.
References $ilDB, $res, and $row.
ilFeedback::getShowOn | ( | ) |
Definition at line 66 of file class.ilFeedback.php.
ilFeedback::getStarttime | ( | ) |
Definition at line 80 of file class.ilFeedback.php.
ilFeedback::getTextAnswer | ( | ) |
Definition at line 128 of file class.ilFeedback.php.
ilFeedback::getTitle | ( | ) |
Definition at line 39 of file class.ilFeedback.php.
ilFeedback::getVotes | ( | ) |
Definition at line 73 of file class.ilFeedback.php.
ilFeedback::ilFeedback | ( | $a_id = 0 | ) |
Definition at line 19 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 599 of file class.ilFeedback.php.
Referenced by canVote().
ilFeedback::saveResult | ( | ) |
save a feedback result
Definition at line 406 of file class.ilFeedback.php.
References $ilDB, and canVote().
ilFeedback::setAllData | ( | $a_barometer | ) |
set all data of a baromter
Definition at line 147 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 48 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setDescription | ( | $a_description | ) |
Definition at line 42 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setEndtime | ( | $a_endtime | ) |
Definition at line 83 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setFirstVoteBest | ( | $a_first_vote_best | ) |
Definition at line 104 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setId | ( | $a_id | ) |
Definition at line 28 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setIds | ( | $a_ids | ) |
Definition at line 131 of file class.ilFeedback.php.
ilFeedback::setInterval | ( | $a_interval | ) |
Definition at line 90 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setIntervalUnit | ( | $a_interval_unit | ) |
Definition at line 97 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setNote | ( | $a_note | ) |
Definition at line 140 of file class.ilFeedback.php.
ilFeedback::setObjId | ( | $a_obj_id | ) |
Definition at line 111 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setRefId | ( | $a_ref_id | ) |
Definition at line 118 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setRequired | ( | $a_required | ) |
Definition at line 55 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setShowOn | ( | $a_show_location | ) |
Definition at line 62 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setStarttime | ( | $a_starttime | ) |
Definition at line 76 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setTextAnswer | ( | $a_text_answer | ) |
Definition at line 124 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setTitle | ( | $a_title | ) |
Definition at line 35 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::setUserId | ( | $a_user_id | ) |
Definition at line 134 of file class.ilFeedback.php.
ilFeedback::setVote | ( | $a_vote | ) |
Definition at line 137 of file class.ilFeedback.php.
ilFeedback::setVotes | ( | $a_votes | ) |
Definition at line 69 of file class.ilFeedback.php.
Referenced by setAllData().
ilFeedback::update | ( | ) |
update a barometer
Definition at line 216 of file class.ilFeedback.php.
References $ilDB.
|
protected |
Definition at line 17 of file class.ilFeedback.php.