Documentation

Project_Module_Model extends Vtiger_Module_Model
in package

Project module model class.

Tags
copyright

YetiForce S.A.

license

YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)

author

Mariusz Krzaczkowski m.krzaczkowski@yetiforce.com

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
throws
AppException
Return values
float

{@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
throws
AppException
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
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