Symbiote\MicroBlog\Service\MicroBlogService
- Author: marcus@symbiote.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class MicroBlogService
{
- // members
- public QueuedJobService $queuedJobService;
- public NotificationService $notificationService;
- public TransactionManager $transactionManager;
- public boolean $allowAnonymousPosts = false;
- public boolean $singleVotes = false;
- public boolean $requireVoteBalance = true;
- public boolean $postProcess = false;
- public array $allowedProperties = ;
- public array $canSort = ;
- public array $typeAge = ;
- protected array $userActions = ;
- private static array $dependencies = ;
- // methods
- public void webEnabledMethods()
- public void getUserActions()
- public void unreadPosts()
- public MicroPost createPost()
- public void rawPost()
- public void savePost()
- public void extractTags()
- public void rewardMember()
- protected void arrayFromString()
- protected void packagePostList()
- public void globalFeed()
- public void getStatusUpdates()
- public void getTimeline()
- public DataList getRepliesTo()
- public DataList microPostList()
- protected void updatePostList()
- protected void recordUserAction()
- public DataList findMember()
- public Friendship addFriendship()
- public void removeFriendship()
- public DataList friendsList()
- public void deletePost()
- public void hidePost()
- public void vote()
- public void upload()
- public void fileLookup()
Members
private
- $dependencies
protected
- $userActions
—
array
A request length list of actions that users have taken
public
- $allowAnonymousPosts
—
boolean
Do we allow anonymous posting? - $allowedProperties
—
array
The list of properties that a user can set when creating a post - $canSort
—
array
The items that we can sort things by - $notificationService — Symbiote\MicroBlog\Service\NotificationService
- $postProcess
—
boolean
Should all posts be analysed _after_ the http request that creates them is completed (ie async) - $queuedJobService — Symbiote\MicroBlog\Service\QueuedJobService
- $requireVoteBalance
—
boolean
Must users have a vote balance? - $singleVotes
—
boolean
Are users allowed to vote multiple times on a post? - $transactionManager — Symbiote\MicroBlog\Service\TransactionManager
- $typeAge
—
array
A map of PostType => age_in_seconds
Methods
protected
public
- addFriendship() — Create a friendship relationship object
- createPost() — Creates a new post for the given member
- deletePost() — Delete a post
- extractTags() — Extracts tags from an object's content where the tag is preceded by a #
- fileLookup() — Lookup files that you have uploaded
- findMember() — Search for a member or two
- friendsList() — Get a list of friends for a particular member
- getRepliesTo() — Get the list of replies to a particular post
- getStatusUpdates() — Gets all the status updates for a particular user before a given time
- getTimeline() — Gets all the updates for a given user's list of followers for a given time period
- getUserActions()
- globalFeed() — Get all posts that the current user has access to
- hidePost()
- microPostList() — Create a list of posts depending on a filter and time range
- rawPost() — Gets the raw post if allowed
- removeFriendship() — Remove a friendship object
- rewardMember() — Reward a member with a number of votes to be given
- savePost() — Save the post
- unreadPosts()
- upload()
- vote() — Vote for a particular post
- webEnabledMethods()