getSeriesInfo() public method

Get information about a series
public getSeriesInfo ( string $slug ) : array
$slug string
return array
Example #1
0
 /**
  * List all of the blog posts for a given year
  *
  * @route blog/series/{slug}/{page}
  * @param string $slug
  * @param string $page
  */
 public function listBySeries(string $slug = '', string $page = '')
 {
     list($offset, $limit) = $this->getOffsetAndLimit($page);
     $series = $this->blog->getSeriesInfo($slug);
     $count = $this->blog->countBySeries((int) $series['seriesid']);
     $series_items = $this->blog->listBySeries((int) $series['seriesid'], $limit, $offset);
     $args = ['series' => $series, 'pageTitle' => $series['name'], 'series_items' => $series_items, 'pagination' => ['base' => \Airship\LensFunctions\cabin_url() . 'blog/series/' . $slug, 'count' => $count, 'page' => (int) \ceil($offset / ($limit ?? 1)) + 1, 'per_page' => $limit]];
     $this->config('blog.cachelists') ? $this->stasis('blog/series', $args) : $this->lens('blog/series', $args);
 }