Project_Module_Model
extends Vtiger_Module_Model
in package
Project module model class.
Tags
Table of Contents
- calculateEstimatedWorkTime() : float
- Calculate estimated work time.
- getSideBarLinks() : mixed
- {@inheritdoc}
- updateProgress() : array<string|int, mixed>
- Update progress in project.
- calculateProgressOfMilestones() : mixed
- Calculate the progress of milestones.
- getChildren() : array<string|int, int>
- Get children by parent ID.
Methods
calculateEstimatedWorkTime()
Calculate estimated work time.
public
static calculateEstimatedWorkTime(int $id, float $estimatedWorkTime) : float
Parameters
- $id : int
- $estimatedWorkTime : float
Tags
Return values
float —getSideBarLinks()
{@inheritdoc}
public
getSideBarLinks(mixed $linkParams) : mixed
Parameters
- $linkParams : mixed
Return values
mixed —updateProgress()
Update progress in project.
public
static updateProgress(int $id, float $estimatedWorkTime, float $progressInHours[, int|null $callerId = null ]) : array<string|int, mixed>
Parameters
- $id : int
- $estimatedWorkTime : float
- $progressInHours : float
- $callerId : int|null = null
Tags
Return values
array<string|int, mixed> —calculateProgressOfMilestones()
Calculate the progress of milestones.
protected
static calculateProgressOfMilestones(int $id, float &$estimatedWorkTime, float &$progressInHours) : mixed
Parameters
- $id : int
- $estimatedWorkTime : float
- $progressInHours : float
Tags
Return values
mixed —getChildren()
Get children by parent ID.
protected
static getChildren(int $id) : array<string|int, int>
Parameters
- $id : int