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