@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 32 lines 524 B view raw
1<?php 2 3final class FuelGridRowView 4 extends FuelView { 5 6 private $cells = array(); 7 8 public function newCell() { 9 $cell = new FuelGridCellView(); 10 $this->cells[] = $cell; 11 return $cell; 12 } 13 14 public function render() { 15 $cells = $this->cells; 16 17 $classes = array(); 18 $classes[] = 'fuel-grid-row'; 19 20 $classes[] = sprintf( 21 'fuel-grid-cell-count-%d', 22 count($cells)); 23 24 return phutil_tag( 25 'div', 26 array( 27 'class' => implode(' ', $classes), 28 ), 29 $cells); 30 } 31 32}