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
$contents
Task contents.
public
Vtiger_Record_Model
$contents
$executeImmediately
public
mixed
$executeImmediately
= \true
$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 —doTask()
Execute task.
public
doTask(Vtiger_Record_Model $recordModel) : mixed
Parameters
- $recordModel : Vtiger_Record_Model
Return values
mixed —formatTimeForTimePicker()
Return formatted time for timepicker.
public
formatTimeForTimePicker(string $time) : string
Parameters
- $time : string
Return values
string —getContents()
Return content.
public
getContents(Vtiger_Record_Model $recordModel) : Vtiger_Record_Model
Parameters
- $recordModel : Vtiger_Record_Model
Return values
Vtiger_Record_Model —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> —hasContents()
Check if has contents.
public
hasContents(Vtiger_Record_Model $recordModel) : bool
Parameters
- $recordModel : Vtiger_Record_Model
Return values
bool —setContents()
Set contents.
public
setContents(Vtiger_Record_Model $recordModel) : mixed
Parameters
- $recordModel : Vtiger_Record_Model
Return values
mixed —calculateDate()
private
calculateDate(mixed $recordModel, mixed $days, mixed $direction, mixed $datefield) : mixed
Parameters
- $recordModel : mixed
- $days : mixed
- $direction : mixed
- $datefield : mixed