\Charcoal\Cms\Support\InterfacesNewsManagerAwareInterface

Summary

Methods
Constants
newsList()
newsArchiveList()
currentNews()
featNews()
nextNews()
prevNews()
numNews()
numNewsPages()
newsHasPager()
newsCategoryList()
newsCategory()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

newsList()

newsList() : \Generator|void

Formatted news list Returns the entries for the current page.

Returns

\Generator|void

newsArchiveList()

newsArchiveList() : \Generator|void

Formatted news archive list Returns the entries for the current page.

Returns

\Generator|void

currentNews()

currentNews() : array

Current news.

Returns

array —

The properties of the current news

featNews()

featNews() : \Generator

Returns

\Generator

nextNews()

nextNews() : array

Next news in list.

Returns

array —

The next news properties.

prevNews()

prevNews() : array

Next news in list.

Returns

array —

The next news properties.

numNews()

numNews() : integer

Amount of news (total)

Returns

integer —

How many news?

numNewsPages()

numNewsPages() : float

Returns

float

newsHasPager()

newsHasPager() : boolean

Returns

boolean

newsCategoryList()

newsCategoryList() : \Generator

Returns

\Generator

newsCategory()

newsCategory(\Charcoal\Cms\NewsInterface  $news) : \Charcoal\Object\CategoryInterface

Parameters

\Charcoal\Cms\NewsInterface $news

Charcoal\Cms\NewsInterface;.

Returns

\Charcoal\Object\CategoryInterface