Defining Link Type in PHP

To Define Link Type using Aspose.Tasks Java for PHP, simply invoke DefineLinkType module. Here you can see example code.

PHP Code

 1$project = new Project();
 2
 3$pred = $project->getRootTask()->getChildren()->add("Task 1");
 4
 5$succ = $project->getRootTask()->getChildren()->add("Task 2");
 6
 7$link = $project->getTaskLinks()->add($pred, $succ);
 8
 9$taskLinkType = new TaskLinkType();
10
11$link->setLinkType($taskLinkType->StartToStart);
12
13print "Defined task link type.";

Download Running Code

Download Defining Link Type (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.