NZTA\Workplace\Jobs\GetWorkplaceGroupsJob
This job will call all every day to get all the groups in the facebook workplace
Class GetWorkplaceGroupsJob
Synopsis
class GetWorkplaceGroupsJob
extends AbstractQueuedJob
implements
QueuedJob
{
- // members
- public WorkplaceService $WorkplaceService;
- private static string $workplace_secure_folder = 'Workplace';
- private static string $workplace_group_filename = 'workplace-groups.txt';
- private static array $dependencies = ;
- private static integer $reschedule_time = 86400;
- // methods
- public string getTitle()
- public void process()
- private void scheduleNextExecution()
- private void markJobAsDone()
- protected Group findAdminGroup()
Hierarchy
Extends
- Symbiote\QueuedJobs\Services\AbstractQueuedJob
Implements
- Symbiote\QueuedJobs\Services\QueuedJob
Members
private
- $dependencies — array
- $reschedule_time
—
int
Time after now to run the job. - $workplace_group_filename — string
- $workplace_secure_folder
—
string
Save workplace groups text file under secure folder called 'workplace'
public
- $WorkplaceService — NZTA\Workplace\Services\WorkplaceService
Methods
private
- markJobAsDone() — complete the job
- scheduleNextExecution() — Queue up the next job to run.
protected
- findAdminGroup() — Find target group to record
public
- getTitle()
- process() — Get all the groups from workplace and save in under secure folder as a txt file.