/** * SolidRow constructor. * * If columns count argument is specified, SolidRow will use it instead of real grid's columns count. * * @param ComponentInterface[] $components * @param string $cellTagName * @param int|null $columnsCount */ public function __construct($components = [], $cellTagName = 'td', $columnsCount = null) { $this->cellTag = new Tag($cellTagName, $columnsCount ? ['colspan' => $columnsCount] : [], $components); $this->rowTag = new Tag('tr', [], [$this->cellTag]); parent::__construct([$this->rowTag]); }
/** * Constructor. * @param array|Traversable|null $dataCollection * @param array|ComponentInterface[] $components * @param callable|null $dataInjector */ public function __construct($dataCollection = null, $components = [], callable $dataInjector = null) { parent::__construct($components); $this->setData($dataCollection ?: []); $this->dataInjector = $dataInjector; }
/** * Section constructor. * * @param string $name */ public function __construct($name) { parent::__construct(); $this->setDestinationParentId('template'); $this->setId('section-' . $name); }