4 require_once 
'Modules/TestQuestionPool/exceptions/class.ilTestQuestionPoolException.php';
 
  133                 $this->index = (int)
$index;
 
  155                 $this->points = (float)
$points;
 
  202                         WHERE   qht_hint_id = %s 
  205                 $res = $ilDB->queryF(
 
  206                                 $query, array(
'integer'), array((
int)
$id)
 
  209                 while( 
$row = $ilDB->fetchAssoc(
$res) )
 
  231                 else                                    return $this->
insert();
 
  246                 return $ilDB->update(
 
  249                                         'qht_question_fi'       => array(
'integer', $this->
getQuestionId()),
 
  250                                         'qht_hint_index'        => array(
'integer', $this->
getIndex()),
 
  251                                         'qht_hint_points'       => array(
'float', $this->
getPoints()),
 
  252                                         'qht_hint_text'         => array(
'clob', $this->
getText())
 
  255                                         'qht_hint_id'           => array(
'integer', $this->
getId())
 
  272                 $this->
setId($ilDB->nextId(
'qpl_hints'));
 
  274                 return $ilDB->insert(
'qpl_hints', array(
 
  275                         'qht_hint_id'           => array(
'integer', $this->
getId()),
 
  276                         'qht_question_fi'       => array(
'integer', $this->
getQuestionId()),
 
  277                         'qht_hint_index'        => array(
'integer', $this->
getIndex()),
 
  278                         'qht_hint_points'       => array(
'float', $this->
getPoints()),
 
  279                         'qht_hint_text'         => array(
'clob', $this->
getText())
 
  289         public function delete()
 
  303         public static function assignDbRow(
self $questionHint, $hintDbRow)
 
  305                 foreach($hintDbRow as $field => $value)
 
  309                                 case 'qht_hint_id':                     $questionHint->setId($value); 
break;
 
  310                                 case 'qht_question_fi':         $questionHint->setQuestionId($value); 
break;
 
  311                                 case 'qht_hint_index':          $questionHint->setIndex($value); 
break;
 
  312                                 case 'qht_hint_points':         $questionHint->setPoints($value); 
break;
 
  313                                 case 'qht_hint_text':           $questionHint->setText($value); 
break;
 
  335                         DELETE FROM             qpl_hints 
  336                         WHERE                   qht_hint_id = %s 
  339                 return $ilDB->manipulateF(
 
  340                                 $query, array(
'integer'), array($hintId)
 
  355                 $questionHint = 
new self();
 
  356                 $questionHint->load($hintId);
 
  357                 return $questionHint;
 
  367                 return sprintf($lng->
txt(
'tst_question_hints_index_column_label'), $hintIndex);