/** * Parse a line into a row * * @param string $line * @param string $line * @return net.daringfireball.markdown.Row */ private function parseRow($line, $type) { if (null === ($cells = $this->cellsIn($line))) { return null; } $row = new Row(); foreach ($cells as $pos => $cell) { $alignment = isset($this->alignment[$pos]) ? $this->alignment[$pos] : null; $this->tokenize(new Line(trim($cell)), $row->add(new Cell($type, $alignment))); } return $row; }
/** * Add row of size 12 and add this element to it * @param mixed $element * @return \Bootstrap\Container */ public function addElement($element) { $row = new Row(); $row->add(12, $element); return $this->add($row); }