Documentation

ModTracker_ReviewChanges_Cron extends CronHandler
in package

ModTracker_ReviewChanges_Cron class.

Table of Contents

MAX_RECORDS  = 200
$cronTask  : Cron
$logs  : string
$counter  : mixed
$displayed  : mixed
$done  : mixed
$end  : mixed
$limit  : mixed
$recordList  : mixed
$valueMap  : mixed
__construct()  : mixed
Construct.
checkTimeout()  : bool
Check cron task timeout.
clearData()  : mixed
Clear data.
getTaskLog()  : string
Get cron task logs.
init()  : mixed
Initiation of data.
isEnd()  : bool
Function to check the status cron.
process()  : void
Main function to execute task.
reviewChanges()  : mixed
Function marks forwarded records as reviewed.
updateLastActionTime()  : void
Update cron task last action time.
addPartToDBRecursive()  : mixed
Function adds records to task queue that updates reviewing changes in records.
finish()  : mixed
Function to clean data in database.
get()  : key
Get key value.
getRecords()  : array<string|int, mixed>
Function to get records id.
setReviewed()  : mixed
Function marks forwarded records as reviewed.

Constants

Properties

Methods

__construct()

Construct.

public __construct() : mixed
Return values
mixed

checkTimeout()

Check cron task timeout.

public checkTimeout() : bool
Return values
bool

clearData()

Clear data.

public clearData() : mixed
Return values
mixed

getTaskLog()

Get cron task logs.

public getTaskLog() : string
Return values
string

init()

Initiation of data.

public init(array<string|int, mixed> $row) : mixed
Parameters
$row : array<string|int, mixed>
Return values
mixed

isEnd()

Function to check the status cron.

public isEnd() : bool
Return values
bool

process()

Main function to execute task.

public process() : void
Return values
void

reviewChanges()

Function marks forwarded records as reviewed.

public reviewChanges() : mixed
Return values
mixed

updateLastActionTime()

Update cron task last action time.

public updateLastActionTime() : void
Return values
void

addPartToDBRecursive()

Function adds records to task queue that updates reviewing changes in records.

private addPartToDBRecursive(mixed $records) : mixed
Parameters
$records : mixed
Return values
mixed

finish()

Function to clean data in database.

private finish() : mixed
Return values
mixed

get()

Get key value.

private get(string $key) : key
Parameters
$key : string
Return values
key

value

getRecords()

Function to get records id.

private getRecords() : array<string|int, mixed>
Return values
array<string|int, mixed>
  • List of records

setReviewed()

Function marks forwarded records as reviewed.

private setReviewed(mixed $id, mixed $users) : mixed
Parameters
$id : mixed
$users : mixed
Return values
mixed

        

Search results