public function __construct($contents = null, array $meta) { parent::__construct($contents, $meta); $text = sprintf(self::ERR_BLOCK, $meta['format']); $this->output = sprintf(self::HTML_BLOCK, $text); return $this; }
public function __construct($contents = null, array $meta) { parent::__construct($contents, $meta); // same as AbstractCompatView::noDataMessageBlock, merge #TODO // and watchout for the $text $this->feature === $meta['feature'], but depends // where you are. $qs = array(); $qs['title'] = sprintf('No data available for topic: %s, feature: %s', $meta['topic'], $meta['feature']); $qs['labels'] = 'missing'; //$qs['assignee'] = 'renoirb'; $qs['body'] = 'Insert details here'; $link = self::ISSUE_LINK . '?' . http_build_query($qs, '', '&'); $text = sprintf(self::ERR_BLOCK, $meta['topic'], $meta['feature'], $link); $this->output = sprintf(self::HTML_BLOCK, $text); return $this; }