public function __construct(array $position, $tagName, array $attributes, $flags = 0) { parent::__construct($position); $this->tagName = $tagName; $this->attributes = $attributes; $this->flags = $flags; }
public function __construct(array $position, $snipName, $env, array $attributes) { parent::__construct($position); $this->snipName = $snipName; $this->env = $env; $this->attributes = $attributes; }
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); }
public function __construct(array $position = null) { parent::__construct($position ?: array('lineno' => 0, 'column' => 0)); }
public function __construct(array $position, $name) { parent::__construct($position); $this->name = $name; }
/** * @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; }