0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-22 12:40:28 +01:00
organization_folders/lib/OrganisationProvider/OrganisationProvider.php

47 lines
3.4 KiB
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace OCA\OrganizationFolders\OrganizationProvider;
abstract class OrganizationProvider {
protected $id;
public function getId() {
return $this->id;
}
/* 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);
}