General Project Properties in PHP

Aspose.Tasks - General Project Properties

To get General Project Properties using Aspose.Tasks Java for PHP, call get_general_project_properties method of ProjectProperties module. Here you can see example code.

PHP Code

 1$project = new Project('Sample.xml');
 2$prj = new Prj();
 3if ($project -> get($prj->SCHEDULE_FROM_START) -> getValue())
 4{
 5    print "Project Start Date : " . (string)$project->get($prj->START_DATE);
 6}
 7else
 8{
 9    print "Project Finish Date : " . (string)$project -> get($prj -> FINISH_DATE);
10}
11$strSchedule = $project->get($prj->SCHEDULE_FROM_START)->getValue() ? "Project Start Date" : "Project Finish Date";
12print "\nProject Schedule From : " . (string)$strSchedule;
13print "\nCurrent Date : " . (string)$project->get($prj->CURRENT_DATE);
14print "\nStatus Date : " . (string)$project->get($prj->STATUS_DATE);
15print "\nCalendar : " . (string)$project->get($prj->CALENDAR);

Download Running Code

Download General Project 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.