NZTA\Workplace\Services\WorkplaceService
Provides common calls to the {@link WorkplaceGateway}.
The endpoints return JSON responses, this service is used
Synopsis
class WorkplaceService
{
- // members
- private static integer $workplace_posts_feed_lifetime = 60;
- private static integer $post_comments_lifetime = 60;
- private static integer $workplace_groups_lifetime = 86000;
- public WorkplaceService $WorkplaceGateway;
- private static array $dependencies = ;
- // methods
- public ArrayList|null getWorkplacePostsFromGroup()
- public ArrayList|null getPostComments()
- public array getAllGroups()
- public array|mixed getWorkplaceGroups()
- public string getWorkplaceGroupsFilePath()
- public array getWorkplaceProfileInfo()
Members
private
- $dependencies — array
- $post_comments_lifetime
—
integer
The cache lifetime for the Workplace comments displayed on pages. - $workplace_groups_lifetime
—
integer
The cache lifetime for workplace groups set to less than one day. - $workplace_posts_feed_lifetime
—
integer
The cache lifetime for the workplace posts feed in seconds.
public
- $WorkplaceGateway — NZTA\Workplace\Services\WorkplaceService
Methods
public
- getAllGroups() — Get workplace groups in as a JSON.
- getPostComments() — Used to retrieve comments from a given Post on Workplace.
- getWorkplaceGroups()
- getWorkplaceGroupsFilePath()
- getWorkplacePostsFromGroup() — Get Homepage group posts in as JSON.
- getWorkplaceProfileInfo() — You may able to search workplace users by their workplace email or workplace ID using batch request method in facebook workplace api