ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFeedback Class Reference

FeedbackGUI Class. More...

+ Collaboration diagram for ilFeedback:

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

Detailed Description

FeedbackGUI Class.

Author
Helmuth Antholzer helmu.nosp@m.th.a.nosp@m.nthol.nosp@m.zer@.nosp@m.magum.nosp@m.a.co.nosp@m.m
Version
Id:
class.ilFeedback.php 22980 2010-02-15 15:28:55Z akill

Definition at line 15 of file class.ilFeedback.php.

Member Function Documentation

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, ilCourseParticipants\_getInstanceByObjId(), and interval2seconds().

Referenced by saveResult().

{
global $ilDB, $ilUser;
include_once('Modules/Course/classes/class.ilCourseParticipants.php');
$q = "SELECT * FROM feedback_results WHERE ".
"fb_id = ".$ilDB->quote($a_fb_id, "integer")." AND ".
"user_id = ".$ilDB->quote($a_user_id, "integer").
" ORDER BY votetime DESC";;
$res = $ilDB->query($q);
$row_results = $ilDB->fetchAssoc($res);
$q = "SELECT * FROM feedback_items WHERE ".
"fb_id = ".$ilDB->quote($a_fb_id, "integer");
$res1 = $ilDB->query($q);
$row_items = $ilDB->fetchAssoc($res1);
// check end time
if (!($row_items["starttime"]<=time() && $row_items["endtime"]>=time()))
{
return (0);
}
$members_obj = ilCourseParticipants::_getInstanceByObjId($row_items['obj_id']);
//Check if the user is Member of that course, otherwise its not necessary that he votes
if(($res->numRows()==0) && $members_obj->isAssigned($ilUser->getId()))
return(1);
if($members_obj->isAssigned($ilUser->getId()))
{
if($row_items['repeat_interval'] > 0){
$interval = $this->interval2seconds($row_items['repeat_interval'], $row_items['interval_unit']);
if((time() - $row_results['votetime']) >= $interval){
return(1);
}
}
}
return(0);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFeedback::create ( )

create an new barometer

Definition at line 168 of file class.ilFeedback.php.

References $ilDB.

{
global $ilDB;
$this->id = $ilDB->nextId("feedback_items");
/*$q = "INSERT INTO feedback_items (fb_id,title, description, anonymous,".
"required, show_on, text_answer, votes, starttime, endtime, ".
"repeat_interval, interval_unit, first_vote_best, ref_id,obj_id) VALUES(".
$ilDB->quote($this->id, "integer").", ".
$ilDB->quote($this->title, "text").", ".
$ilDB->quote($this->description, "clob").", ".
$ilDB->quote((int) $this->anonymous, "integer").", ".
$ilDB->quote((int) $this->required, "integer").", ".
$ilDB->quote($this->show_on, "text").", ".
$ilDB->quote((int) $this->text_answer, "integer").", ".
$ilDB->quote($this->votes, "clob").", ".
$ilDB->quote((int) $this->starttime, "integer").", ".
$ilDB->quote((int) $this->endtime, "integer").", ".
$ilDB->quote((int) $this->interval, "integer").", ".
$ilDB->quote((int) $this->interval_unit, "integer").", ".
$ilDB->quote((int) $this->first_vote_best, "integer").", ".
$ilDB->quote((int) $this->ref_id, "integer").", ".
$ilDB->quote((int) $this->obj_id, "integer").")";*/
$ilDB->insert("feedback_items", array(
"fb_id" => array("integer", $this->id),
"title" => array("text", $this->title),
"description" => array("clob", $this->description),
"anonymous" => array("integer", (int) $this->anonymous),
"required" => array("integer", (int) $this->required),
"show_on" => array("text", $this->show_on),
"text_answer" => array("integer", (int) $this->text_answer),
"votes" => array("clob", $this->votes),
"starttime" => array("integer", (int) $this->starttime),
"endtime" => array("integer", (int) $this->endtime),
"repeat_interval" => array("integer", (int) $this->interval),
"interval_unit" => array("integer", (int) $this->interval_unit),
"first_vote_best" => array("integer", (int) $this->first_vote_best),
"ref_id" => array("integer", (int) $this->ref_id),
"obj_id" => array("integer", (int) $this->obj_id)
));
//echo "-$q-";
//$ilDB->manipulate($q);
}
ilFeedback::delete ( )

delete a barometer and its results

Definition at line 381 of file class.ilFeedback.php.

References $ilDB.

{
global $ilDB;
/*
foreach ($this->ids as $k => $v)
{
$this->ids[$k] = $ilDB->quote($v,'integer');
}
*/
$q = "DELETE FROM feedback_items WHERE ".
$ilDB->in("fb_id", $this->ids, false, "integer");
//"fb_id IN (".implode(',',$this->ids).")";
$ilDB->manipulate($q);
$q = "DELETE FROM feedback_results WHERE ".
$ilDB->in("fb_id", $this->ids, false, "integer");
//"fb_id IN (".implode(',',$this->ids).")";
$ilDB->manipulate($q);
}
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().

{
global $ilDB;
$where = "";
if ($this->ref_id)
{
$where.=" ref_id = ".$ilDB->quote($this->ref_id, "integer");
}
if ($a_only_req == 1)
{
if ($where != '')
{
$where .= ' AND required = 1 ';
}
else
{
$where = ' required = 1 ';
}
}
$q = "SELECT * FROM feedback_items WHERE ".$where;
if ($a_show_inactive == 0)
{
if ($where != '')
{
$where = ' AND '.$where;
}
$q = "SELECT * FROM feedback_items WHERE ".
" ((starttime <= ".$ilDB->quote(time(), "integer")." AND".
" endtime >= ".$ilDB->quote(time(), "integer").
") OR (starttime <= 0 AND endtime <=0 ))".$where;
}
$res = $ilDB->query($q);
$i = 0;
$barometers = array();
while($row = $ilDB->fetchAssoc($res))
{
$barometers[$i] = new ilFeedback();
$barometers[$i]->setAllData($row);
$i++;
}
return $barometers;
}

+ Here is the call graph for this function:

ilFeedback::getAnonymous ( )

Definition at line 52 of file class.ilFeedback.php.

{
return($this->anonymous);
}
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().

{
global $ilDB;
$q = "SELECT * FROM feedback_items WHERE fb_id = ".
$ilDB->quote($this->id, "integer");
$res = $ilDB->query($q);
if ($row = $ilDB->fetchAssoc($res))
{
$this->setAllData($row);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFeedback::getBarometerByObjId ( )

Get a barometer by obj_id.

Definition at line 274 of file class.ilFeedback.php.

References $ilDB, $res, $row, and setAllData().

{
global $ilDB;
$q = "SELECT * FROM feedback_items WHERE obj_id = ".
$ilDB->quote($this->obj_id, "integer");
$res = $ilDB->query($q);
if($row = $ilDB->fetchAssoc($res))
{
$this->setAllData($row);
}
}

+ Here is the call graph for this function:

ilFeedback::getBarometerByRefId ( )

get a baromter by ref_id

Definition at line 290 of file class.ilFeedback.php.

References $ilDB, $res, $row, and setAllData().

{
global $ilDB;
$q = "SELECT * FROM feedback_items WHERE ref_id = ".
$ilDB->quote($this->ref_id, "integer");
$res = $ilDB->query($q);
if($row = $ilDB->fetchAssoc($res))
{
$this->setAllData($row);
}
}

+ Here is the call graph for this function:

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.

{
global $ilDB;
if($this->user_id!='')
{
$user_filter = ' feedback_results.user_id = '.$ilDB->quote($this->user_id, "integer").' AND ';
}
$q='SELECT usr_data.login, feedback_results.user_id,feedback_results.vote, feedback_results.votetime FROM'.
' feedback_results LEFT JOIN usr_data ON usr_data.usr_id = feedback_results.user_id WHERE '.
' '.$user_filter.' feedback_results.fb_id='.$ilDB->quote($this->id, "integer").
' ORDER BY feedback_results.votetime,usr_data.login';
$res = $ilDB->query($q);
$i=0;
$j=1;
$k=1;
$n=0;
$pvt='';
$datapie[0][0] = 'Vote';
while($row = $ilDB->fetchAssoc($res))
{
$row["timelabel"] = date("d.m.Y H:i", $row["votetime"]);
if(!isset($tmp[$row['user_id']]))
{
$tmp[$row['user_id']]=$j++;
}
if(!isset($tmpv[$row['vote']]))
{
$tmpv[$row['vote']] = $k++;
}
$data[$i][0] = $row['timelabel'];
$data[$i][$tmp[$row['user_id']]] = $row['vote'];
$legend[$row['login']] = $row['login'];
$legendpie[$row['vote']] = $row['vote'];
$datapie[0][$tmpv[$row['vote']]]++;
if($row['votetime']!=$pvt){
$i++;
}
$pvt=$row['votetime'];
$table[$n]['votetime'] = $row['timelabel'];
$table[$n]['user'] = $row['login'];
$table[$n]['vote'] = $row['vote'];
$n++;
}
if(is_array($data))
{
foreach($data as $k => $v)
{
/* Look if there are set all Y-values. If a user has no Y value for a certain date, the Y value has to be set to something otherwise PHPlot will not work correctly.
The array keys have also to be sorted for PHPlot */
if(count($v)<=count($tmp)){
for($i=1;$i<=count($tmp);$i++)
if(!isset($v[$i]))
$data[$k][$i]='';
}
ksort($data[$k]);
}
}
return(array('data' => $data,'legend' => $legend,'legendpie' => $legendpie, 'datapie' => $datapie, 'table' => $table));
}
ilFeedback::getDescription ( )

Definition at line 45 of file class.ilFeedback.php.

{
return($this->description);
}
ilFeedback::getEndtime ( )

Definition at line 87 of file class.ilFeedback.php.

{
return($this->endtime);
}
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().

{
global $ilDB;
$filter_req = ($required)
? ' required = 1 AND '
: '';
$q = "SELECT * FROM feedback_items WHERE ".
$filter_req.
" ((starttime <= ".$ilDB->quote(time(), "integer")." AND".
" endtime >= ".$ilDB->quote(time(), "integer").
") OR (starttime <= 0 AND endtime <= 0))";
$res = $ilDB->query($q);
if($row = $ilDB->fetchAssoc($res))
{
$this->setAllData($row);
}
}

+ Here is the call graph for this function:

ilFeedback::getFirstVoteBest ( )

Definition at line 108 of file class.ilFeedback.php.

{
return($this->first_vote_best);
}
ilFeedback::getId ( )

Definition at line 32 of file class.ilFeedback.php.

{
return($this->id);
}
ilFeedback::getInterval ( )

Definition at line 94 of file class.ilFeedback.php.

{
return($this->interval);
}
ilFeedback::getIntervalUnit ( )

Definition at line 101 of file class.ilFeedback.php.

{
return($this->interval_unit);
}
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.

{
global $ilDB;
if($this->user_id!='')
{
$user_filter = ' AND feedback_results.user_id='.$ilDB->quote($this->user_id, "integer");
}
$q='SELECT usr_data.login, feedback_results.user_id,feedback_results.note,feedback_results.vote, feedback_results.votetime FROM'.
' feedback_results LEFT JOIN usr_data ON usr_data.usr_id = feedback_results.user_id'.
' WHERE feedback_results.note IS NOT NULL '.
' '.$user_filter.' AND feedback_results.fb_id='.$ilDB->quote($this->id, "integer").
' ORDER BY feedback_results.votetime,usr_data.login';
$res = $ilDB->query($q);
$i=0;
while($row = $ilDB->fetchAssoc($res))
{
$row["timelabel"] = date("d.m.Y H:i", $row["votetime"]);
$data[$i]['user'] = $row['login'];
$data[$i]['votetime'] = $row['timelabel'];
$data[$i]['note'] = $row['note'];
$i++;
}
return($data);
}
ilFeedback::getObjId ( )

Definition at line 115 of file class.ilFeedback.php.

{
return($this->obj_id);
}
ilFeedback::getRefId ( )

Definition at line 121 of file class.ilFeedback.php.

{
return($this->ref_id);
}
ilFeedback::getRequired ( )

Definition at line 59 of file class.ilFeedback.php.

{
return($this->required);
}
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.

{
global $ilDB;
$q='SELECT distinct(usr_data.login), feedback_results.user_id, feedback_results.votetime '.
' FROM '.
' feedback_results LEFT JOIN usr_data ON usr_data.usr_id = feedback_results.user_id'.
' WHERE feedback_results.fb_id='.$ilDB->quote($this->id, "integer").
' ORDER BY feedback_results.votetime,usr_data.login';
$res = $ilDB->query($q);
while($row = $ilDB->fetchAssoc($res))
{
$users[$row['user_id']] = $row['login'];
}
return($users);
}
ilFeedback::getShowOn ( )

Definition at line 66 of file class.ilFeedback.php.

{
return($this->show_on);
}
ilFeedback::getStarttime ( )

Definition at line 80 of file class.ilFeedback.php.

{
return($this->starttime);
}
ilFeedback::getTextAnswer ( )

Definition at line 128 of file class.ilFeedback.php.

{
return($this->text_answer);
}
ilFeedback::getTitle ( )

Definition at line 39 of file class.ilFeedback.php.

{
return($this->title);
}
ilFeedback::getVotes ( )

Definition at line 73 of file class.ilFeedback.php.

{
return($this->votes);
}
ilFeedback::ilFeedback (   $a_id = 0)

Definition at line 19 of file class.ilFeedback.php.

References getBarometer().

Referenced by getAllBarometer().

{
if($a_id > 0){
$this->id = $a_id;
$this->getBarometer();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

{
switch($a_interval_unit)
{
case 1:
//Days
$multi_by = 24 * 60 * 60;
break;
case 2:
//Weeks
$mult_by = 7 * 24 * 60 * 60;
break;
case 3:
// Months
$mult_by = 30 * 24 * 60 *60;
break;
default:
//Hours
$mult_by = 60 * 60;
break;
}
$seconds = $a_interval * $mult_by;
return($seconds);
}

+ Here is the caller graph for this function:

ilFeedback::saveResult ( )

save a feedback result

Definition at line 406 of file class.ilFeedback.php.

References $ilDB, and canVote().

{
global $ilDB;
//Save Only if there is not already a result from this user for this barometer
if($this->canVote($this->user_id,$this->id)==1 || $this->user_id == 0)
{
/* $q = "INSERT INTO feedback_results (".
"fb_id,user_id,vote,note,votetime) VALUES (".
$ilDB->quote($this->id, "integer").", ".
$ilDB->quote($this->user_id, "integer").", ".
$ilDB->quote($this->vote, "integer").", ".
$ilDB->quote($this->note, "clob").", ".
$ilDB->quote(time(), "integer").")";
$ilDB->manipulate($q);*/
$ilDB->insert("feedback_results", array(
"fb_id" => array("integer", $this->id),
"user_id" => array("integer", $this->user_id),
"vote" => array("integer", $this->vote),
"note" => array("clob", $this->note),
"votetime" => array("integer", time())
));
}
}

+ Here is the call graph for this function:

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().

{
$this->setId($a_barometer['fb_id']);
$this->setTitle($a_barometer['title']);
$this->setDescription($a_barometer['description']);
$this->setAnonymous($a_barometer['anonymous']);
$this->setRequired($a_barometer['required']);
$this->setShowOn($a_barometer['show_on']);
$this->setVotes($a_barometer['votes']);
$this->setStarttime($a_barometer['starttime']);
$this->setEndtime($a_barometer['endtime']);
$this->setInterval($a_barometer['repeat_interval']);
$this->setIntervalUnit($a_barometer['interval_unit']);
$this->setFirstVoteBest($a_barometer['first_vote_best']);
$this->setTextAnswer($a_barometer['text_answer']);
$this->setObjId($a_barometer['obj_id']);
$this->setRefId($a_barometer['ref_id']);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilFeedback::setAnonymous (   $a_anonymous)

Definition at line 48 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->anonymous = $a_anonymous;
}

+ Here is the caller graph for this function:

ilFeedback::setDescription (   $a_description)

Definition at line 42 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->description = $a_description;
}

+ Here is the caller graph for this function:

ilFeedback::setEndtime (   $a_endtime)

Definition at line 83 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->endtime = $a_endtime;
}

+ Here is the caller graph for this function:

ilFeedback::setFirstVoteBest (   $a_first_vote_best)

Definition at line 104 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->first_vote_best = $a_first_vote_best;
}

+ Here is the caller graph for this function:

ilFeedback::setId (   $a_id)

Definition at line 28 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->id = $a_id;
}

+ Here is the caller graph for this function:

ilFeedback::setIds (   $a_ids)

Definition at line 131 of file class.ilFeedback.php.

{
$this->ids = $a_ids;
}
ilFeedback::setInterval (   $a_interval)

Definition at line 90 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->interval = $a_interval;
}

+ Here is the caller graph for this function:

ilFeedback::setIntervalUnit (   $a_interval_unit)

Definition at line 97 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->interval_unit = $a_interval_unit;
}

+ Here is the caller graph for this function:

ilFeedback::setNote (   $a_note)

Definition at line 140 of file class.ilFeedback.php.

{
$this->note = $a_note;
}
ilFeedback::setObjId (   $a_obj_id)

Definition at line 111 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->obj_id = $a_obj_id;
}

+ Here is the caller graph for this function:

ilFeedback::setRefId (   $a_ref_id)

Definition at line 118 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->ref_id = $a_ref_id;
}

+ Here is the caller graph for this function:

ilFeedback::setRequired (   $a_required)

Definition at line 55 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->required = $a_required;
}

+ Here is the caller graph for this function:

ilFeedback::setShowOn (   $a_show_location)

Definition at line 62 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->show_on = $a_show_location;
}

+ Here is the caller graph for this function:

ilFeedback::setStarttime (   $a_starttime)

Definition at line 76 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->starttime = $a_starttime;
}

+ Here is the caller graph for this function:

ilFeedback::setTextAnswer (   $a_text_answer)

Definition at line 124 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->text_answer = $a_text_answer;
}

+ Here is the caller graph for this function:

ilFeedback::setTitle (   $a_title)

Definition at line 35 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->title = $a_title;
}

+ Here is the caller graph for this function:

ilFeedback::setUserId (   $a_user_id)

Definition at line 134 of file class.ilFeedback.php.

{
$this->user_id = $a_user_id;
}
ilFeedback::setVote (   $a_vote)

Definition at line 137 of file class.ilFeedback.php.

{
$this->vote = $a_vote;
}
ilFeedback::setVotes (   $a_votes)

Definition at line 69 of file class.ilFeedback.php.

Referenced by setAllData().

{
$this->votes = $a_votes;
}

+ Here is the caller graph for this function:

ilFeedback::update ( )

update a barometer

Definition at line 216 of file class.ilFeedback.php.

References $ilDB.

{
global $ilDB;
/*$q = "UPDATE feedback_items set ".
"title=".$ilDB->quote($this->title, "text").", ".
"description=".$ilDB->quote($this->description, "clob").", ".
"anonymous=".$ilDB->quote((int) $this->anonymous, "integer").", ".
"required=".$ilDB->quote((int) $this->required, "integer").", ".
"show_on=".$ilDB->quote($this->show_on, "text").", ".
"text_answer=".$ilDB->quote((int) $this->text_answer, "integer").", ".
"votes=".$ilDB->quote($this->votes, "clob").", ".
"starttime=".$ilDB->quote((int) $this->starttime, "integer").", ".
"endtime=".$ilDB->quote((int) $this->endtime, "integer").", ".
"repeat_interval=".$ilDB->quote((int) $this->interval, "integer").", ".
"interval_unit=".$ilDB->quote((int) $this->interval_unit, "integer").", ".
"first_vote_best=".$ilDB->quote((int) $this->first_vote_best, "integer").
" WHERE fb_id=".$ilDB->quote($this->id, "integer");
$ilDB->manipulate($q);*/
$ilDB->update("feedback_items", array(
"title" => array("text", $this->title),
"description" => array("clob", $this->description),
"anonymous" => array("integer", (int) $this->anonymous),
"required" => array("integer", (int) $this->required),
"show_on" => array("text", $this->show_on),
"text_answer" => array("integer", (int) $this->text_answer),
"votes" => array("clob", $this->votes),
"starttime" => array("integer", (int) $this->starttime),
"endtime" => array("integer", (int) $this->endtime),
"repeat_interval" => array("integer", (int) $this->interval),
"interval_unit" => array("integer", (int) $this->interval_unit),
"first_vote_best" => array("integer", (int) $this->first_vote_best)
),array(
"fb_id" => array("integer", $this->id)
));
}

Field Documentation

ilFeedback::$ref_id = false
protected

Definition at line 17 of file class.ilFeedback.php.


The documentation for this class was generated from the following file: