IsaacRankin\SocialFeed\Providers\SocialFeedProviderFacebook
Synopsis
class SocialFeedProviderFacebook
extends SocialFeedProvider
implements
SocialFeedProviderInterface
{
- // constants
- const POSTS_AND_COMMENTS = 0;
- const POSTS_ONLY = 1;
- // members
- private static array $db = ;
- private static string $table_name = 'SocialFeedProviderFacebook';
- private static string $singular_name = 'Facebook Provider';
- private static string $plural_name = 'Facebook Providers';
- private static array $summary_fields = ;
- private static array $facebook_types = ;
- private string $type = 'facebook';
- // methods
- public void getCMSFields()
- public void getCMSValidator()
- public void onBeforeWrite()
- public string getType()
- public void getFeedUncached()
- public HTMLText getPostContent()
- public mixed getPostCreated()
- public mixed getPostUrl()
- public mixed getUserName()
- public mixed getImage()
- // Inherited methods from SocialFeedProvider
- public FieldList getCMSFields()
- public SS_List getFeed()
- public void getFeedUncached()
- public array getFeedCache()
- public int getFeedCacheExpiry()
- public void setFeedCache()
- public void clearFeedCache()
- protected Zend_Cache_Frontend_Output getCacheFactory()
Hierarchy
Extends
Implements
Constants
Name | Value |
---|---|
POSTS_AND_COMMENTS | 0 |
POSTS_ONLY | 1 |
Members
private
- $db
- $facebook_types
- $plural_name
- $singular_name
- $summary_fields
- $table_name
- $type
Methods
public
- getCMSFields()
- getCMSValidator()
- getFeedUncached()
- getImage() — Get the primary image for the post
- getPostContent()
- getPostCreated() — Get the creation time from a post
- getPostUrl() — Get the post URL from a post
- getType() — Return the type of provider
- getUserName() — Get the user who made the post
- onBeforeWrite()
Inherited from IsaacRankin\SocialFeed\Providers\SocialFeedProvider
protected
public
- clearFeedCache() — Clear the cache that holds this providers feed.
- getCMSFields()
- getFeed() — Get feed from provider, will automatically cache the result.
- getFeedCache() — Get the providers feed from the cache. If there is no cache then return false.
- getFeedCacheExpiry() — Get the time() that the cache expires at.
- getFeedUncached() — Retrieve the providers feed without checking the cache first.
- setFeedCache() — Set the cache.