Ejemplo n.º 1
0
 /**
  * Constructor...
  *
  * @param String $tag The tag this instance represents
  * @param String $content Any content for this instance
  * @param Array $attrs Any attributes to load in
  */
 public function __construct($tag, $content = null, $attrs = array())
 {
     parent::__construct($content);
     $this->setTag($tag);
     $this->importAttrs($attrs);
 }
Ejemplo n.º 2
0
 /**
  * Constructor...
  *
  * @param String $condition The condition this instance represents
  * @param String $content Any content for this instance
  */
 public function __construct($condition, $content = null)
 {
     parent::__construct($content);
     $this->setCondition($condition);
 }