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
 3$prj = new Prj();
 4
 5if ($project -> get($prj->SCHEDULE_FROM_START) -> getValue())
 6
 7{
 8
 9    print "Project Start Date : " . (string)$project->get($prj->START_DATE);
10
11}
12
13else
14
15{
16
17    print "Project Finish Date : " . (string)$project -> get($prj -> FINISH_DATE);
18
19}
20
21$strSchedule = $project->get($prj->SCHEDULE_FROM_START)->getValue() ? "Project Start Date" : "Project Finish Date";
22
23print "\nProject Schedule From : " . (string)$strSchedule;
24
25print "\nCurrent Date : " . (string)$project->get($prj->CURRENT_DATE);
26
27print "\nStatus Date : " . (string)$project->get($prj->STATUS_DATE);
28
29print "\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.