Documentation

VTCreateEventTask extends VTTask
in package

VTiger workflow VTTask class.

Table of Contents

RECORD_EVENT_ACTIVE  = 0
RECORD_EVENT_DOUBLE_MODE  = 2
RECORD_EVENT_INACTIVE  = 1
$contents  : Vtiger_Record_Model
Task contents.
$executeImmediately  : mixed
$recordEventState  : bool
conv12to24hour()  : mixed
convertToDBFormat()  : time
To convert time_start & time_end values to db format.
doTask()  : mixed
Execute task.
formatTimeForTimePicker()  : string
Return formatted time for timepicker.
getContents()  : Vtiger_Record_Model
Return content.
getFieldNames()  : mixed
Return field names.
getTimeFieldList()  : array<string|int, mixed>
Return time field list.
hasContents()  : bool
Check if has contents.
setContents()  : mixed
Set contents.
calculateDate()  : mixed

Constants

RECORD_EVENT_ACTIVE

public int RECORD_EVENT_ACTIVE = 0

RECORD_EVENT_DOUBLE_MODE

public int RECORD_EVENT_DOUBLE_MODE = 2

RECORD_EVENT_INACTIVE

public int RECORD_EVENT_INACTIVE = 1

Properties

$recordEventState

public bool $recordEventState = self::RECORD_EVENT_ACTIVE

The record event.

Methods

conv12to24hour()

public static conv12to24hour(mixed $timeStr) : mixed
Parameters
$timeStr : mixed
Return values
mixed

convertToDBFormat()

To convert time_start & time_end values to db format.

public static convertToDBFormat(string $timeStr) : time
Parameters
$timeStr : string
Return values
time

formatTimeForTimePicker()

Return formatted time for timepicker.

public formatTimeForTimePicker(string $time) : string
Parameters
$time : string
Return values
string

getFieldNames()

Return field names.

public getFieldNames() : mixed
Return values
mixed

getTimeFieldList()

Return time field list.

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

calculateDate()

private calculateDate(mixed $recordModel, mixed $days, mixed $direction, mixed $datefield) : mixed
Parameters
$recordModel : mixed
$days : mixed
$direction : mixed
$datefield : mixed
Return values
mixed

        

Search results