Creating Resource Assignments in PHP

Aspose.Tasks - Creating Resource Assignments

To create resource assignments using Aspose.Tasks Java for PHP, simply invoke CreateResourceAssignment module. Here you can see example code.

$project = new Project('test_tasks.mpp');
$task = $project->getRootTask()->getChildren()->add("Task");
$rsc = $project->getResources()->add("Rsc");
$assignment = $project->getResourceAssignments()->add($task, $rsc);
print "Created resource assignment.";

Download Running Code

Download Creating Resource Assignments (Aspose.Tasks) from any of the below mentioned social coding sites: