Setting Attributes for New Tasks in PHP

Aspose.Tasks - Setting Attributes for New Tasks

To set attributes for new tasks using Aspose.Tasks Java for PHP, simply invoke SetAttributesForNewTasks module. Here you can see example code.

PHP Code

1$project = new Project('test_tasks.mpp');
2$prj = new Prj();
3$taskStartDateType = new TaskStartDateType();
4$project->set($prj->NEW_TASK_START_DATE, $taskStartDateType->CurrentDate);
5$saveFileFormat = new SaveFileFormat();
6$project->save("set_attributes_for_new_tasks.xml", $saveFileFormat->XML);
7print "Set attributes for new tasks, please check the output file.";

Download Running Code

Download Setting Attributes for New Tasks (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.