Example #1
0
 public function __construct($node, $id = null)
 {
     parent::__construct($node);
     if ($id != null) {
         $this->setId($id);
     } else {
         $this->class = $this->getNode() . "_" . uniqid();
     }
 }
Example #2
0
 public function __construct($text)
 {
     parent::__construct("em", $text);
 }