|
|
@@ -11,20 +11,6 @@ class OrganizationRepository extends BaseApiRepository
|
|
|
CONST URI = BaseApiRepository::BASE_URI . 'public/organizations';
|
|
|
const HYDRA_TYPE = 'PortailOrganization';
|
|
|
|
|
|
- /**
|
|
|
- * Returns an array of Organization objects from an array of Api records
|
|
|
- *
|
|
|
- * @param $records
|
|
|
- * @return array
|
|
|
- */
|
|
|
- private function organizationsFromJson($records) {
|
|
|
- $organizations = [];
|
|
|
- foreach ($records as $record) {
|
|
|
- $organizations[] = $this->organizationFromJson($record);
|
|
|
- }
|
|
|
- return $organizations;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Get the organization by Id
|
|
|
*
|