92 $this->content = $a_content;
102 $set = $ilDB->query(
"SELECT * FROM xhtml_page WHERE id = ".
103 $ilDB->quote($this->getId()));
117 if ($this->
getId() > 0)
119 $ilDB->query(
"UPDATE xhtml_page SET ".
120 " save_content = content ".
121 " WHERE id = ".$ilDB->quote($this->getId()));
122 $ilDB->query(
"UPDATE xhtml_page SET ".
123 "content = ".$ilDB->quote($this->getContent()).
124 " WHERE id = ".$ilDB->quote($this->getId()));
128 $ilDB->query(
"INSERT INTO xhtml_page (content) VALUES ".
129 "(".$ilDB->quote($this->getContent()).
")");
130 $this->
setId($ilDB->getLastInsertId());
141 if ($this->
getId() > 0)
143 $ilDB->query(
"UPDATE xhtml_page SET ".
144 " content = save_content ".
145 " WHERE id = ".$ilDB->quote($this->getId()));
146 $ilDB->query(
"UPDATE xhtml_page SET ".
147 " save_content = ".$ilDB->quote($this->getContent()).
148 " WHERE id = ".$ilDB->quote($this->getId()));
159 if ($this->
getId() > 0)
161 $ilDB->query(
"UPDATE xhtml_page SET ".
162 " save_content = content ".
163 " WHERE id = ".$ilDB->quote($this->getId()));
164 $ilDB->query(
"UPDATE xhtml_page SET ".
165 " content = ".$ilDB->quote(
"").
166 " WHERE id = ".$ilDB->quote($this->
getId()));