Beispiel #1
0
 public function __construct(array $position, $tagName, array $attributes, $flags = 0)
 {
     parent::__construct($position);
     $this->tagName = $tagName;
     $this->attributes = $attributes;
     $this->flags = $flags;
 }
Beispiel #2
0
 public function __construct(array $position, $snipName, $env, array $attributes)
 {
     parent::__construct($position);
     $this->snipName = $snipName;
     $this->env = $env;
     $this->attributes = $attributes;
 }
Beispiel #3
0
 public function __construct(array $position, $tagName, array $attributes, $flags = 0)
 {
     parent::__construct($position);
     $this->tagName = $tagName;
     $this->attributes = $attributes;
     if (strpos($this->tagName, ':') !== false) {
         list($inp, $type) = explode(':', $this->tagName);
         if ($inp == 'input') {
             $this->tagName = 'input';
             $name = new Text($position, 'type');
             $val = new Text($position, $type);
             $new_type = new TagAttribute($position, $name, $val);
             $this->addAttribute($new_type);
         }
     }
     $this->flags = $flags;
 }
 public function __construct(array $position, $content)
 {
     parent::__construct($position);
     $this->setContent($content);
 }
Beispiel #5
0
 public function __construct(array $position = null)
 {
     parent::__construct($position ?: array('lineno' => 0, 'column' => 0));
 }
Beispiel #6
0
 public function __construct(array $position, $name)
 {
     parent::__construct($position);
     $this->name = $name;
 }
Beispiel #7
0
 /**
  * @param array  $position
  * @param bool   $rendered  Whether the comment is rendered in the
  *                          HTML output (as a HTML comment).
  * @param string $condition IE condition. If not null, the HTML comment
  *                          will be rendered as an IE conditional
  *                          comment.
  */
 public function __construct(array $position, $rendered, $condition = null)
 {
     parent::__construct($position);
     $this->rendered = $rendered;
     $this->condition = $condition;
 }