General Calendar Properties in PHP

Aspose.Tasks - General Calendar Properties

To get Calendar Properties using Aspose.Tasks Java for PHP, simply invoke CalendarProperties module. Here you can see example code.

PHP Code

$project = new Project('test_tasks.mpp');
$calendars = $project->getCalendars()->toList();
$i = 0;
while ($i < sizeof($calendars)) {
    $cal = $calendars->get($i);
    if ($cal->getName() != null) {
        print "Base Calendar : ";
        if ($cal -> isBaseCalendar()) {
            print "Self";
        }
        else {
            $cal->getBaseCalendar()->getName();
        }
        print "UID : " . (string)$cal->getUid();
        print "Name : " . (string)$cal->getName();
}
$i += 1;
}

Download Running Code

Download General Calendar Properties (Aspose.Tasks) from any of the below mentioned social coding sites: