72 $this->content = $a_content;
82 $set = $ilDB->query(
"SELECT * FROM xhtml_page WHERE id = ".
83 $ilDB->quote($this->getId(),
"integer"));
84 if ($rec = $ilDB->fetchAssoc($set))
97 $set = $ilDB->query(
"SELECT content FROM xhtml_page WHERE id = ".
98 $ilDB->quote($a_id,
"integer"));
99 if ($rec = $ilDB->fetchAssoc($set))
101 return $rec[
"content"];
112 $set = $ilDB->query(
"SELECT save_content FROM xhtml_page WHERE id = ".
113 $ilDB->quote($a_id,
"integer"));
114 if ($rec = $ilDB->fetchAssoc($set))
116 return $rec[
"save_content"];
127 if ($this->
getId() > 0)
130 $ilDB->update(
"xhtml_page", array(
131 "content" => array(
"clob", $this->
getContent()),
132 "save_content" => array(
"clob", $old_content)
134 "id" => array(
"integer", $this->
getId())
139 $this->
setId($ilDB->nextId(
"xhtml_page"));
140 $ilDB->insert(
"xhtml_page", array(
141 "id" => array(
"integer", $this->
getId()),
142 "content" => array(
"clob", $this->
getContent())
154 if ($this->
getId() > 0)
158 $ilDB->update(
"xhtml_page", array(
159 "content" => array(
"clob", $save_content),
160 "save_content" => array(
"clob",
$content)
162 "id" => array(
"integer", $this->
getId())
174 if ($this->
getId() > 0)