public function getFiscalYears()
  {
    $fiscalYears = array();

    $this->FiscalYear->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($FiscalYear) use (&$fiscalYears)
    {
      array_push($fiscalYears, $FiscalYear->year);
    });

    return $fiscalYears;
  }
public function getFiscalYears()
  {
    $fiscalYears = array();

    $this->FiscalYear->byOrganization($this->AuthenticationManager->getCurrentUserOrganizationId())->each(function($FiscalYear) use (&$fiscalYears)
    {
      array_push($fiscalYears, $FiscalYear->year);
    });

    return $fiscalYears;
  }
public function getFiscalYears ( ) { $ fiscalYears = array ( ) ; $ this -> FiscalYear -> byOrganization ( $ this -> AuthenticationManager -> getCurrentUserOrganizationId ( ) ) -> each ( function ( $ FiscalYear ) use ( & $ fiscalYears ) { array_push ( $ fiscalYears , $ FiscalYear -> year ) ; } ) ; return $ fiscalYears ; }
Get organization fiscal years

@return array
An array of arrays as follows: array( $label0, label1,…)
Get organization fiscal years