Documentation

ProjectMilestone_Module_Model extends Vtiger_Module_Model
in package

Table of Contents

$cacheEstimatedWorkTime  : array<string|int, float>
Cache for estimated work time.
calculateEstimatedWorkTime()  : float
Calculate estimated work time.
getQueryByRelatedField()  : mixed
Function to get list view query for popup window.
updateProgress()  : mixed
Update progress milestone.
calculateProgressOfTasks()  : mixed
Calculate the progress of tasks.
getChildren()  : array<string|int, int>
Get children by parent ID.

Properties

$cacheEstimatedWorkTime

Cache for estimated work time.

protected static array<string|int, float> $cacheEstimatedWorkTime = []

Methods

calculateEstimatedWorkTime()

Calculate estimated work time.

public static calculateEstimatedWorkTime(int $id, float $estimatedWorkTime) : float
Parameters
$id : int
$estimatedWorkTime : float
Tags
throws
AppException
Return values
float

getQueryByRelatedField()

Function to get list view query for popup window.

public getQueryByRelatedField(Vtiger_ListView_Model $listviewModel, QueryGenerator $queryGenerator) : mixed
Parameters
$listviewModel : Vtiger_ListView_Model
$queryGenerator : QueryGenerator
Return values
mixed

updateProgress()

Update progress milestone.

public static updateProgress(int $id, float $estimatedWorkTime, float $progressInHours[, int|null $callerId = null ]) : mixed
Parameters
$id : int
$estimatedWorkTime : float
$progressInHours : float
$callerId : int|null = null
Tags
throws
AppException
Return values
mixed

calculateProgressOfTasks()

Calculate the progress of tasks.

protected static calculateProgressOfTasks(int $id, float &$estimatedWorkTime, float &$progressInHours) : mixed
Parameters
$id : int
$estimatedWorkTime : float
$progressInHours : float
Tags
throws
AppException
Return values
mixed

getChildren()

Get children by parent ID.

protected static getChildren(int $id) : array<string|int, int>
Parameters
$id : int
Return values
array<string|int, int>

Search results