Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00015 final class SgmlIgnoredTag extends SgmlTag
00016 {
00017 private $cdata = null;
00018 private $endMark = null;
00019
00023 public static function create()
00024 {
00025 return new self;
00026 }
00027
00031 public static function comment()
00032 {
00033 return self::create()->setId('!--')->setEndMark('--');
00034 }
00035
00039 public function setCdata(Cdata $cdata)
00040 {
00041 $this->cdata = $cdata;
00042
00043 return $this;
00044 }
00045
00049 public function getCdata()
00050 {
00051 return $this->cdata;
00052 }
00053
00057 public function setEndMark($endMark)
00058 {
00059 $this->endMark = $endMark;
00060
00061 return $this;
00062 }
00063
00064 public function getEndMark()
00065 {
00066 return $this->endMark;
00067 }
00068
00069 public function isComment()
00070 {
00071 return $this->id == '!--';
00072 }
00073
00074 public function isExternal()
00075 {
00076 return ($this->id && $this->id[0] == '?');
00077 }
00078 }
00079 ?>