Creating a Task Link in PHP

To create a Task Link using Aspose.Tasks Java for PHP, simply invoke CreateTaskLink module. Here you can see example code.

1$project = new Project();
2$pred = $project->getRootTask()->getChildren()->add("Task 1");
3$succ = $project->getRootTask()->getChildren()->add("Task 2");
4$link = $project->getTaskLinks()->add($pred, $succ);
5print "Created task link.";

Download Running Code

Download Creating a Task Link (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.