Add a basic "harbormaster.step.edit" API method
[phabricator/blender.git] / src / view / fuel / FuelGridRowView.php
blobf8fd8b73d7def6ada4f9f7243b10029335deebae
1 <?php
3 final class FuelGridRowView
4 extends FuelView {
6 private $cells = array();
8 public function newCell() {
9 $cell = new FuelGridCellView();
10 $this->cells[] = $cell;
11 return $cell;
14 public function render() {
15 $cells = $this->cells;
17 $classes = array();
18 $classes[] = 'fuel-grid-row';
20 $classes[] = sprintf(
21 'fuel-grid-cell-count-%d',
22 count($cells));
24 return phutil_tag(
25 'div',
26 array(
27 'class' => implode(' ', $classes),
29 $cells);