/** * @see EPSInterface::listQuarterTypes() */ public function listQuarterTypes($sessionId, $language) { try { $listQuarterTypesStdObject = new stdClass(); $listQuarterTypesStdObject->sessionId = $sessionId; $listQuarterTypesStdObject->language = $language; $response = parent::listQuarterTypes($listQuarterTypesStdObject); $arrListQuarterTypes = array(); if (isset($response->return)) { $arrStdListQuarterTypes = $response->return; if (is_array($arrStdListQuarterTypes)) { for ($i = 0; $i < count($arrStdListQuarterTypes); $i++) { $arrListQuarterTypes[$i] = $arrStdListQuarterTypes[$i]; } } else { $arrListQuarterTypes[0] = $arrStdListQuarterTypes; } } return $arrListQuarterTypes; } catch (SoapFault $sf) { throw new ServerException($sf); } }