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