0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-22 04:38:09 +01:00

started describing function signatures of organization providers

This commit is contained in:
Jonathan Treffler 2024-08-22 15:08:54 +02:00 committed by Jonathan Treffler
parent f9ad16c3fe
commit 351c24dbdd

View file

@ -11,5 +11,37 @@ abstract class OrganizationProvider {
return $this->id; return $this->id;
} }
// TODO: functions to access organisation structure /* Return one level of the Organization Tree */
/*
* ┌────────────────────────────┐
* Root Node
* (of Organization Provider)
* └──┬──────────────────────┬──┘
*
*
* ┌── ── ── │── ── ── ── ── ── ── ─│─ ── ── ─┐
*
*
* ┌──────────────┐ ┌──────────────┐
*
* │Organization 1 │Organization 2 ◄── ── ── getOrganizations();
*
* └┬────────────┬┘ └┬────────────┬┘
*
*
* └── ├─ ── ── ── ─┤ ── ── ─┼ ── ── ── ──│──
*
*
* ... ...
* ┌── ── ── ── ── ── ── ── ── ── ─┐
* ┌────────────┐ ┌────────────┐
*
* Suborg. 21 Suborg. 22 ◄── ── ── getOrganizations(2);
*
* └────────────┘ └────────────┘
* └── ── ── ── ── ── ── ── ── ── ─┘
*/
abstract public function getOrganizations(?int $parentOrganizationId);
abstract public function getRolesOfOrganization(int $organizationId);
} }