00001 <?php
00009 class STransHTML extends STrans {
00010
00015 public function doc() {
00016 return "STransHTML is a passthrough translator that takes"
00017 . " HTML input and outputs it directly to the PR2 page.";
00018 }
00019
00020
00021
00022
00023
00028 public function getInFormat() {
00029 return 'html';
00030 }
00031
00036 public function getOutFormat() {
00037 return 'html';
00038 }
00039
00045 public function translate ($si)
00046 {
00047
00048 $src = $si->getSource();
00049 if(is_object($src) && $src instanceof SnapContent)
00050 $this->sendToTarget($si, $src->getHTML());
00051 else
00052 $this->sendToTarget($si, $src);
00053
00054 return true;
00055 }
00056
00057 }
00058
00059 ?>