Documentation

OSSTimeControl_TimeCounting_Model
in package

CalculateSumOfExecutionTime class.

Table of Contents

COLUMN_SUM_TIME  = 'sum_time'
Column sum time.
COLUMN_SUM_TIME_SUBORDINATE  = 'sum_time_subordinate'
Column sum time subordinate.
RECALCULATE_STATUS  = 'Accepted'
Recalculate status.
$columnNameParentId  : string
Field name parent id.
$fieldModelSumTime  : Vtiger_Field_Model
Field model name sum of time.
$fieldModelSumTimeSubordinate  : Vtiger_Field_Model
Field model name sum of time subordinate.
$isActiveSumTime  : bool
Is active sum of time.
$isActiveSumTimeSubordinate  : bool
Is active total execution time.
$moduleName  : string
Module name.
$primaryKey  : string
Primary key of table.
$recordId  : int
Record ID.
$relationField  : string
Relation field.
__construct()  : mixed
Construct.
recalculate()  : void
Recalculate time control by record.
recalculateTimeControl()  : void
Recalculate time control.
calculate()  : void
Calculate.
getSumTime()  : float
Get sum of time.
getSumTimeOfChildren()  : float
Get sum time of children.
update()  : void
Update.

Constants

COLUMN_SUM_TIME

Column sum time.

public mixed COLUMN_SUM_TIME = 'sum_time'

COLUMN_SUM_TIME_SUBORDINATE

Column sum time subordinate.

public mixed COLUMN_SUM_TIME_SUBORDINATE = 'sum_time_subordinate'

RECALCULATE_STATUS

Recalculate status.

public mixed RECALCULATE_STATUS = 'Accepted'

Properties

$columnNameParentId

Field name parent id.

private string $columnNameParentId

$fieldModelSumTime

Field model name sum of time.

private Vtiger_Field_Model $fieldModelSumTime

$fieldModelSumTimeSubordinate

Field model name sum of time subordinate.

private Vtiger_Field_Model $fieldModelSumTimeSubordinate

$isActiveSumTime

Is active sum of time.

private bool $isActiveSumTime = alse

$isActiveSumTimeSubordinate

Is active total execution time.

private bool $isActiveSumTimeSubordinate = alse

$primaryKey

Primary key of table.

private string $primaryKey

$relationField

Relation field.

private string $relationField

Methods

__construct()

Construct.

public __construct(string $moduleName, int $recordId, string $relationField) : mixed
Parameters
$moduleName : string
$recordId : int
$relationField : string
Return values
mixed

recalculate()

Recalculate time control by record.

public static recalculate(string $moduleName, int $recordId, string $relationField) : void
Parameters
$moduleName : string
$recordId : int
$relationField : string
Return values
void

recalculateTimeControl()

Recalculate time control.

public recalculateTimeControl() : void
Return values
void

calculate()

Calculate.

private calculate(int $recordId, float $initialValue) : void
Parameters
$recordId : int
$initialValue : float
Return values
void

getSumTime()

Get sum of time.

private getSumTime() : float
Return values
float

getSumTimeOfChildren()

Get sum time of children.

private getSumTimeOfChildren(int $recordId) : float
Parameters
$recordId : int
Return values
float

update()

Update.

private update(int $recordId, float $sumTime) : void
Parameters
$recordId : int
$sumTime : float
Return values
void

        

Search results