00001 <?php 00002 00012 class SnapContentHtml extends SnapContent { 00013 protected $NEED_TRANSLATION = false; 00014 00025 public function setHTML($html) { 00026 // XXX: we shouldn't just validate HTML because valid HTML will fail, even w/o using StdXML schema 00027 if(is_array($errors = SXMLHelper::validateXML("<xml>$html</xml>", false))) 00028 return $errors; 00029 $html2 = SXMLHelper::formatXML($html); 00030 if(!is_array($html2)) 00031 $html = $html2; 00032 $this->setAll($html); 00033 return true; 00034 } 00035 00043 protected function validate() { 00044 return true; 00045 } 00046 00055 protected function doGetHTML($params) { 00056 return $this->getAll(); 00057 } 00058 00066 public function checkMedia() { 00067 return true; 00068 } 00069 00077 public function updateFileList() { 00078 return true; 00079 } 00080 } 00081 00082 ?>
1.5.6