public function content($pl, $row, $rowidx) { if ($this->xreviewer && !isset($row->_xreviewer)) { $xrow = (object) array("reviewType" => 0, "conflictType" => 0); } else { if ($this->xreviewer) { $xrow = $row->_xreviewer; } else { $xrow = $row; } } $ranal = null; if ($xrow->reviewType) { $ranal = new PaperListReviewAnalysis($xrow); if ($ranal->needsSubmit) { $pl->any->need_review = true; } $t = $ranal->icon_html(true); } else { if ($xrow->conflictType > 0) { $t = review_type_icon(-1); } else { $t = ""; } } $x = null; if (!$this->xreviewer && $row->leadContactId && $row->leadContactId == $pl->contact->contactId) { $x[] = review_lead_icon(); } if (!$this->xreviewer && $row->shepherdContactId && $row->shepherdContactId == $pl->contact->contactId) { $x[] = review_shepherd_icon(); } if ($x || $ranal && $ranal->round) { $c = ["pl_revtype"]; $t && ($c[] = "hasrev"); $x && ($c[] = "haslead"); $ranal && $ranal->round && ($c[] = "hasround"); $t && ($x[] = $t); return '<div class="' . join(" ", $c) . '">' . join(' ', $x) . '</div>'; } else { return $t; } }
function unparse_display(AssignmentSet $aset) { $aset->show_column($this->type); if ($this->isadd) { $aset->show_column("reviewers"); } if (!$this->cid) { return "remove {$this->type}"; } $t = $aset->contact()->reviewer_html_for($this->contact); if ($this->isadd && $this->type === "lead") { $t .= " " . review_lead_icon(); } else { if ($this->isadd && $this->type === "shepherd") { $t .= " " . review_shepherd_icon(); } else { if ($this->isadd) { $t .= " ({$this->type})"; } else { $t = "remove {$t} as {$this->type}"; } } } return $t; }