Change Progress of a Task in PHP

Aspose.Tasks - Change Progress of a Task

To Change Progress of a Task presentation using Aspose.Tasks Java for PHP, simply invoke ChangeProgressOfTask module. Here you can see example code.

PHP Code

 1$project = new Project();
 2
 3print $project->getCalculationMode();
 4
 5$task = $project->getRootTask()->getChildren()->add("Task");
 6
 7$tsk = new Tsk();
 8
 9$task->set($tsk->DURATION, $project->getDuration(2));
10
11$task->set($tsk->PERCENT_COMPLETE, 50);
12
13print "Changed progress of task.";

Download Running Code

Download Change Progress of a Task (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.