Weekday Properties in PHP

Aspose.Tasks - Reading Weekday Properties

To read weekday properties using Aspose.Tasks Java for PHP, call get_weekday_properties method of WeekdayProperties module. Here you can see example code.

1$project = new Project('test_tasks.mpp');
2$prj = new Prj();
3print "Week Start Date : " . (string)$project->get($prj->WEEK_START_DAY);
4print "\nDays Per Month : " . (string)$project->get($prj->DAYS_PER_MONTH);
5print "\nMinutes Per Day : " . (string)$project->get($prj->MINUTES_PER_DAY);
6print "\nMinutes Per Week : " . (string)$project->get($prj->MINUTES_PER_WEEK);

Aspose.Tasks - Writing Weekday Properties

To write weekday properties using Aspose.Tasks Java for PHP, call set_weekday_properties method of WeekdayProperties module. Here you can see example code.

 1$project = new Project();
 2$prj = new Prj();
 3$dayType = new DayType();
 4$project->set($prj->WEEK_START_DAY, $dayType->Monday);
 5$project->set($prj->DAYS_PER_MONTH, 24);
 6$project->set($prj->MINUTES_PER_DAY, 540);
 7$project->set($prj->MINUTES_PER_WEEK, 3240);
 8$saveFileFormat = new SaveFileFormat();
 9$project->save("weekday_properties.xml", $saveFileFormat->XML);
10print "Set weekday properties, please check the output file.";

Download Running Code

Download Weekday Properties (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.