Working with Filter Data from MPP files in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Reading Filter Definition Data
To read Filter Definition Data using Aspose.Tasks Java for PHP, call get_filter_definition_data method of FilterData module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2$task_filters = $project->getTaskFilters()->toList();
3print "Task Filters Count: " . (string)$task_filters->size();
4print "\nAll Tasks: " . (string)$task_filters->get(0)->getName();
5print "\nTask Item: " . (string)$task_filters->get(0)->getFilterType();
6print "\nTask Filters Show In Menu: " . (string)$task_filters->get(0)->getShowInMenu();
7print "\nTask filter ShowRelatedSummaryRows: " . (string)$task_filters->get(0)->getShowRelatedSummaryRows();
8$rsc_filters = $project->getResourceFilters()->toList();
9print "\nProject.ResourceFilters count: " . (string)$rsc_filters->size();
10print "\nResource Filter Item Type: Item.ResourceType: " . (string)$rsc_filters->get(0)->getFilterType();
11print "\nResource filter ShowInMenu" . (string)$rsc_filters->get(0)->getShowInMenu();
12print "\nResource filter ShowRelatedSummaryRows: " . (string)$rsc_filters->get(0)->getShowRelatedSummaryRows();
Download Running Code
Download Working with Filter Data from MPP files (Aspose.Tasks) from any of the below mentioned social coding sites: