loadAllWhere( 'factType LIKE %> OR factType = %s', '+N:', 'updated'); $rows = array(); foreach ($facts as $fact) { $rows[] = array( phutil_escape_html($fact->getFactType()), (int)$fact->getValueX(), ); } $table = new AphrontTableView($rows); $table->setHeaders( array( 'Fact', 'Value', )); $table->setColumnClasses( array( 'wide', 'n', )); $panel = new AphrontPanelView(); $panel->setHeader('Facts!'); $panel->appendChild($table); return $this->buildStandardPageResponse( $panel, array( 'title' => 'Facts!', )); } }