Working with Resource Extended Attributes in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Extended Resource Attributes
To set extended resource attributes using Aspose.Tasks Java for PHP, simply invoke ExtendedResourceAttributes module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2
3$res = $project->getResources()->toList()->get(0);
4
5$attribute = new ExtendedAttribute();
6
7$attribute->setFieldId("11");
8
9$attribute->setValue("MyValueEA");
10
11$attribute->setValueGuid("MyValueGuidEA");
12
13$res->getExtendedAttributes()->add($attribute);
14
15print "Set extended resource attributes.";
Download Running Code
Download Extended Resource Attributes (Aspose.Tasks) from any of the below mentioned social coding sites: