27 if ($a_id > 0 && $a_lang !=
"")
82 $this->title = $a_val;
122 $set = $ilDB->query(
"SELECT * FROM lm_data_transl ".
123 " WHERE id = ".$ilDB->quote($this->getId(),
"integer").
124 " AND lang = ".$ilDB->quote($this->getLang(),
"text")
126 $rec = $ilDB->fetchAssoc($set);
128 $this->create_date = $rec[
"create_date"];
129 $this->last_update = $rec[
"last_update"];
141 $ilDB->manipulate(
"INSERT INTO lm_data_transl ".
142 "(id, lang, title, create_date, last_update) VALUES (".
143 $ilDB->quote($this->getId(),
"integer").
",".
144 $ilDB->quote($this->getLang(),
"text").
",".
145 $ilDB->quote($this->getTitle(),
"text").
",".
152 $ilDB->manipulate(
"UPDATE lm_data_transl SET ".
153 " title = ".$ilDB->quote($this->getTitle(),
"text").
",".
154 " last_update = ".$ilDB->now().
155 " WHERE id = ".$ilDB->quote($this->
getId(),
"integer").
156 " AND lang = ".$ilDB->quote($this->
getLang(),
"text")
172 $set = $ilDB->query(
"SELECT * FROM lm_data_transl ".
173 " WHERE id = ".$ilDB->quote($a_id,
"integer").
174 " AND lang = ".$ilDB->quote($a_lang,
"text")
176 if($rec = $ilDB->fetchAssoc($set))
189 static function copy($a_source_id, $a_target_id)
193 $set = $ilDB->query(
"SELECT * FROM lm_data_transl ".
194 " WHERE id = ".$ilDB->quote($a_source_id,
"integer")
196 while ($rec = $ilDB->fetchAssoc($set))
199 $lmobjtrans->setTitle($rec[
"title"]);