Fiscal Year Properties in PHP

Aspose.Tasks - Reading Fiscal Year Properties

To read Fiscal Year Properties using Aspose.Tasks Java for PHP, call get_fiscal_year_properties method of FiscalYearProperties module. Here you can see example code.

PHP Code

1$project = new Project('test_tasks.mpp');
2
3$prj = new Prj();
4
5print "Fiscal Year Start Date : " . (string)$project->get($prj->FY_START_DATE);
6
7print "\nFiscal Year Numbering : " . (string)$project->get($prj->FISCAL_YEAR_START);

Aspose.Tasks - Writing Fiscal Year Properties

To write Fiscal Year Properties using Aspose.Tasks Java for PHP, call set_fiscal_year_properties method of FiscalYearProperties module. Here you can see example code.

PHP Code

 1$project = new Project();
 2
 3$prj = new Prj();
 4
 5$month = new Month();
 6
 7$project->set($prj->FY_START_DATE, $month->July);
 8
 9$project->set($prj->FISCAL_YEAR_START, new NullableBool(true));
10
11$saveFileFormat = new SaveFileFormat();
12
13$project->save("fiscal_year_properties.xml", $saveFileFormat->XML);
14
15print "Set fiscal year properties, please check the output file.";

Download Running Code

Download Fiscal Year 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.