Documentation

Settings_CronTasks_Module_Model extends Settings_Vtiger_Module_Model
in package

Settings CronTasks Module Model class.

Tags
copyright

YetiForce Sp. z o.o.

license

YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)

author

Rafal Pospiech r.pospiech@yetiforce.com

Table of Contents

$baseIndex  : mixed
$baseTable  : mixed
$listFields  : mixed
$name  : mixed
$nameFields  : mixed
$lastCronStart  : int
Save last cron time start between views (timestamp).
getEditableFieldsList()  : array<string|int, mixed>
Function to get editable fields from this module.
getLastCronIteration()  : array<string|int, mixed>
Get last executed Cron info formated by user settings.
getLastCronStart()  : int
Returns last iteration start time.
hasCreatePermissions()  : mixed
isPagingSupported()  : mixed
updateSequence()  : mixed
Function to update sequence of several records.

Properties

$baseIndex

public mixed $baseIndex = 'id'

$baseTable

public mixed $baseTable = 'vtiger_cron_task'

$listFields

public mixed $listFields = ['sequence' => 'Sequence', 'name' => 'Cron Job', 'frequency' => 'Frequency(H:M)', 'status' => 'Status', 'laststart' => 'Last Start', 'lastend' => 'Last End', 'duration' => 'LBL_DURATION']

$name

public mixed $name = 'CronTasks'

$nameFields

public mixed $nameFields = ['']

$lastCronStart

Save last cron time start between views (timestamp).

private int $lastCronStart = 0

Methods

getEditableFieldsList()

Function to get editable fields from this module.

public getEditableFieldsList() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of fieldNames

getLastCronIteration()

Get last executed Cron info formated by user settings.

public getLastCronIteration() : array<string|int, mixed>
Return values
array<string|int, mixed>

['duration'=>'0g 0m 0s','laststart'=>'3 hours ago','tasks'=>2, 'finished_tasks'=>1]

getLastCronStart()

Returns last iteration start time.

public getLastCronStart() : int
Return values
int

timestamp

hasCreatePermissions()

public hasCreatePermissions() : mixed
Return values
mixed

isPagingSupported()

public isPagingSupported() : mixed
Return values
mixed

updateSequence()

Function to update sequence of several records.

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

        

Search results