General Properties in PHP

Aspose.Tasks - Getting General Properties

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

PHP Code

$project = new Project('test_tasks.mpp');
$collector = new ChildTasksCollector();
$taskUtils = new TaskUtils();
$taskUtils->apply($project->getRootTask(), $collector, 0);
$tasks = $collector->getTasks();
puts tasks.size()
$tsk = new Tsk();
$i = 0;
while ($i < sizeof($tasks))
{
    $task = $tasks -> get($i);
    print "Task Id:" . $task -> get($tsk -> ID);
    print "\nTask Uid: " . $task -> get($tsk -> UID);
    print "\nTask Name: " . $task -> get($tsk -> NAME);
    print "\nTask Start: " . $task -> get($tsk -> START);
    print "\nTask Finish: " . $task -> get($tsk -> FINISH);
    print "\n---------------------------------------------";
    $i += 1;
}

Download Running Code

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