Managing Resource Extended Attributes in PHP

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$res = $project->getResources()->toList()->get(0);
3$attribute = new ExtendedAttribute();
4$attribute->setFieldId("11");
5$attribute->setValue("MyValueEA");
6$attribute->setValueGuid("MyValueGuidEA");
7$res->getExtendedAttributes()->add($attribute);
8print "Set extended resource attributes.";

Download Running Code

Download Extended Resource Attributes (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.