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$prj = new Prj();
3print "Fiscal Year Start Date : " . (string)$project->get($prj->FY_START_DATE);
4print "\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$prj = new Prj();
3$month = new Month();
4$project->set($prj->FY_START_DATE, $month->July);
5$project->set($prj->FISCAL_YEAR_START, new NullableBool(true));
6$saveFileFormat = new SaveFileFormat();
7$project->save("fiscal_year_properties.xml", $saveFileFormat->XML);
8print "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.