Beispiel #1
0
 /**
  * Adds an item to the feed.
  *
  * @param \Roumen\Feed\Facades\Feed        $feed
  * @param \CachetHQ\Cachet\Models\Incident $incident
  */
 private function feedAddItem(&$feed, $incident)
 {
     $feed->add($incident->name, Setting::get('app_name'), Str::canonicalize(Setting::get('app_domain')) . '#' . $incident->id, $incident->created_at->toRssString(), $incident->message);
 }
Beispiel #2
0
 /**
  * Adds an item to the feed.
  *
  * @param \Roumen\Feed\Facades\Feed        $feed
  * @param \CachetHQ\Cachet\Models\Incident $incident
  *
  * @return void
  */
 private function feedAddItem(&$feed, $incident)
 {
     $feed->add($incident->name, Setting::get('app_name'), Str::canonicalize(Setting::get('app_domain')) . '#' . $incident->id, $incident->created_at->toAtomString(), Markdown::convertToHtml($incident->message));
 }
Beispiel #3
0
 /**
  * Adds an item to the feed.
  *
  * @param \Roumen\Feed\Facades\Feed        $feed
  * @param \CachetHQ\Cachet\Models\Incident $incident
  */
 private function feedAddItem(&$feed, $incident)
 {
     $feed->add($incident->name, Setting::get('app_name'), Str::canonicalize(route('incident', ['id' => $incident->id])), $incident->created_at->toRssString(), $incident->message);
 }
Beispiel #4
0
 /**
  * Adds an item to the feed.
  *
  * @param \CachetHQ\Cachet\Models\Incident $incident
  * @param bool                             $isRss
  */
 private function feedAddItem(Incident $incident, $isRss)
 {
     $this->feed->add($incident->name, Setting::get('app_name'), Str::canonicalize(route('incident', ['id' => $incident->id])), $isRss ? $incident->created_at->toRssString() : $incident->created_at->toAtomString(), $isRss ? $incident->message : Markdown::convertToHtml($incident->message));
 }
Beispiel #5
0
 /**
  * Adds an item to the feed.
  *
  * @param \Gitamin\Models\Issue $issue
  * @param bool                  $isRss
  */
 private function feedAddItem($issue, $isRss)
 {
     $this->feed->add($issue->name, Setting::get('app_name'), Str::canonicalize($issue->url), $isRss ? $issue->created_at->toRssString() : $issue->created_at->toAtomString(), $isRss ? $issue->message : Markdown::convertToHtml($issue->message));
 }