Defining Link Type in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Defining Link Type
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$pred = $project->getRootTask()->getChildren()->add("Task 1");
3$succ = $project->getRootTask()->getChildren()->add("Task 2");
4$link = $project->getTaskLinks()->add($pred, $succ);
5$taskLinkType = new TaskLinkType();
6$link->setLinkType($taskLinkType->StartToStart);
7print "Defined task link type.";
Download Running Code
Download Defining Link Type (Aspose.Tasks) from any of the below mentioned social coding sites: