public function setIdAttribute($id)
 {
     $name = $this->name();
     if ($name != 'html' && $name != 'head' && $name != 'title' && $name != 'style' && $name != 'body' && $name != 'script') {
         RsmlNode::setIdAttribute($id);
     }
 }
 /**
  * Override the default functionality to prevent adding any data or children to an else node
  */
 public function addCharData($data)
 {
     if ($this instanceof RsmlElse) {
         throw new InvalidDataException('You can\'t add char data to an else nodes. else nodes must be empty');
     }
     RsmlNode::addCharData($data);
 }
예제 #3
0
 public function addCharData($data)
 {
     RsmlNode::addCharData(str_replace("'", "\\'", $data));
 }