Newsflow
class Newsflow (View source)
Class Newsflow.
A class used for retrieving the latest news and updates from Concrete5. This is a singleton class that should be instantiated via Newsflow::getInstance(). This object is prevented from being created if the config file has the 'concrete.external.news' setting set to false.
\@package Concrete\Core\Activity
Constants
E_NEWSFLOW_SUPPORT_MANUALLY_DISABLED |
Constant for if newsflow is manually disabled (like through a config entry). |
Properties
protected bool | $isConnected | ||
protected bool|int | $connectionError | ||
protected null|NewsflowSlotItem[] | $slots |
Methods
No description
No description
No description
Retrieves a NewsflowItem object for a given collection ID.
Retrieves a NewsflowItem object for a given collection path.
Retrieves an array of NewsflowSlotItems.
Details
__construct()
No description
bool
hasConnectionError()
No description
bool|int
getConnectionError()
No description
bool|NewsflowItem
getEditionByID(int $cID)
Retrieves a NewsflowItem object for a given collection ID.
bool|NewsflowItem
getEditionByPath($cPath)
Retrieves a NewsflowItem object for a given collection path.
NewsflowSlotItem[]|null
getSlotContents()
Retrieves an array of NewsflowSlotItems.