3 final class HeraldWebhookRequestListView
9 public function setRequests(array $requests) {
10 assert_instances_of($requests, 'HeraldWebhookRequest');
11 $this->requests
= $requests;
15 public function setHighlightID($highlight_id) {
16 $this->highlightID
= $highlight_id;
20 public function getHighlightID() {
21 return $this->highlightID
;
24 public function render() {
25 $viewer = $this->getViewer();
26 $requests = $this->requests
;
28 $handle_phids = array();
29 foreach ($requests as $request) {
30 $handle_phids[] = $request->getObjectPHID();
32 $handles = $viewer->loadHandles($handle_phids);
34 $highlight_id = $this->getHighlightID();
38 foreach ($requests as $request) {
39 $icon = $request->newStatusIcon();
41 if ($highlight_id == $request->getID()) {
42 $rowc[] = 'highlighted';
47 $last_epoch = $request->getLastRequestEpoch();
48 if ($request->getLastRequestEpoch()) {
49 $last_request = phabricator_datetime($last_epoch, $viewer);
57 $handles[$request->getObjectPHID()]->renderLink(),
58 $request->getErrorTypeForDisplay(),
59 $request->getErrorCodeForDisplay(),
64 $table = id(new AphrontTableView($rows))
65 ->setRowClasses($rowc)