PHP Class FeedDiscussionsPlugin, addons

Inheritance: extends Gdn_Plugin
Mostrar archivo Open project: vanilla/addons Class Usage Examples

Protected Properties

Property Type Description
$FeedList
$RawFeedList

Public Methods

Method Description
Base_GetAppSettingsMenuItems_Handler ( $Sender ) Set up appmenu link
CheckFeeds ( boolean $AutoImport = TRUE ) : boolean | integer Time to update from RSS?
Controller_AddFeed ( $Sender ) Add a feed.
Controller_CheckFeeds ( $Sender ) Endpoint to trigger feed check & update.
Controller_DeleteFeed ( $Sender ) Delete a feed.
Controller_Index ( $Sender ) Dashboard settings page.
Controller_Toggle ( $Sender ) Handle toggling of the FeedDiscussions.Enabled setting
DiscussionController_BeforeDiscussionRender_Handler ( $Sender ) Include Javascript in discussion pages.
EncodeFeedKey ( $Key )
PluginController_FeedDiscussions_Create ( $Sender ) Act as a mini dispatcher for API requests to the plugin app
ReplaceBadURLs ( $Matches )
Setup ( )

Protected Methods

Method Description
AddFeed ( $FeedURL, $Feed )
GetFeed ( $FeedKey, $PreEncoded = TRUE )
GetFeeds ( $Raw = FALSE, $Regen = FALSE )
HaveFeed ( $FeedKey, $PreEncoded = TRUE )
PollFeed ( $FeedURL, $LastImportDate )
RemoveFeed ( $FeedKey, $PreEncoded = TRUE )
UpdateFeed ( $FeedKey, $FeedOptionKey, $FeedOptionValue = NULL )

Method Details

AddFeed() protected method

protected AddFeed ( $FeedURL, $Feed )

Base_GetAppSettingsMenuItems_Handler() public method

Set up appmenu link

CheckFeeds() public method

Time to update from RSS?
public CheckFeeds ( boolean $AutoImport = TRUE ) : boolean | integer
$AutoImport boolean
return boolean | integer

Controller_AddFeed() public method

Add a feed.
public Controller_AddFeed ( $Sender )
$Sender

Controller_CheckFeeds() public method

Endpoint to trigger feed check & update.
public Controller_CheckFeeds ( $Sender )
$Sender

Controller_DeleteFeed() public method

Delete a feed.
public Controller_DeleteFeed ( $Sender )
$Sender

Controller_Index() public method

Dashboard settings page.
public Controller_Index ( $Sender )
$Sender

Controller_Toggle() public method

This method handles the internally re-dispatched call generated when a user clicks the 'Enable' or 'Disable' button within the dashboard settings page for Feed Discussions.
public Controller_Toggle ( $Sender )

DiscussionController_BeforeDiscussionRender_Handler() public method

Include Javascript in discussion pages.

EncodeFeedKey() public static method

public static EncodeFeedKey ( $Key )

GetFeed() protected method

protected GetFeed ( $FeedKey, $PreEncoded = TRUE )

GetFeeds() protected method

protected GetFeeds ( $Raw = FALSE, $Regen = FALSE )

HaveFeed() protected method

protected HaveFeed ( $FeedKey, $PreEncoded = TRUE )

PluginController_FeedDiscussions_Create() public method

Act as a mini dispatcher for API requests to the plugin app

PollFeed() protected method

protected PollFeed ( $FeedURL, $LastImportDate )

RemoveFeed() protected method

protected RemoveFeed ( $FeedKey, $PreEncoded = TRUE )

ReplaceBadURLs() public method

public ReplaceBadURLs ( $Matches )

Setup() public method

public Setup ( )

UpdateFeed() protected method

protected UpdateFeed ( $FeedKey, $FeedOptionKey, $FeedOptionValue = NULL )

Property Details

$FeedList protected_oe property

protected $FeedList

$RawFeedList protected_oe property

protected $RawFeedList