0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 20:28:11 +01:00

consistently use AmE spelling of organization

This commit is contained in:
Jonathan Treffler 2024-08-22 14:19:42 +02:00 committed by Jonathan Treffler
parent 02bb8a330f
commit f9ad16c3fe
4 changed files with 25 additions and 25 deletions

View file

@ -3,7 +3,7 @@
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
<id>organization_folders</id>
<name>Organization Folders</name>
<summary>Managed Groupfolders for your Organisation</summary>
<summary>Managed Groupfolders for your Organization</summary>
<description><![CDATA[]]></description>
<version>0.0.1</version>
<licence>agpl</licence>

View file

@ -6,22 +6,22 @@ namespace OCA\OrganizationFolders\Events;
use OCP\EventDispatcher\Event;
use OCA\OrganizationFolders\Transport\OrganisationProviderManager;
use OCA\OrganizationFolders\Transport\OrganizationProviderManager;
/**
* This event is triggered during the initialization of Organisation Folders.
* This event is triggered during the initialization of Organization Folders.
*/
class RegisterOrganisationProviderEvent extends Event {
class RegisterOrganizationProviderEvent extends Event {
/** @var OrganisationProviderManager */
private $organisationProviderManager;
/** @var OrganizationProviderManager */
private $organizationProviderManager;
public function __construct(OrganisationProviderManager $organisationProviderManager) {
public function __construct(OrganizationProviderManager $organizationProviderManager) {
parent::__construct();
$this->organisationProviderManager = $organisationProviderManager;
$this->organizationProviderManager = $organizationProviderManager;
}
public function getOrganisationProviderManager(): OrganisationProviderManager {
return $this->organisationProviderManager;
public function getOrganizationProviderManager(): OrganizationProviderManager {
return $this->organizationProviderManager;
}
}

View file

@ -2,9 +2,9 @@
declare(strict_types=1);
namespace OCA\OrganizationFolders\OrganisationProvider;
namespace OCA\OrganizationFolders\OrganizationProvider;
abstract class OrganisationProvider {
abstract class OrganizationProvider {
protected $id;
public function getId() {

View file

@ -2,39 +2,39 @@
declare(strict_types=1);
namespace OCA\OrganizationFolders\OrganisationProvider;
namespace OCA\OrganizationFolders\OrganizationProvider;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Server;
use OCA\OrganizationFolders\Events\RegisterOrganisationProviderEvent;
use OCA\OrganizationFolders\Events\RegisterOrganizationProviderEvent;
class OrganisationProviderManager {
private array $organisationProviders = [];
class OrganizationProviderManager {
private array $organizationProviders = [];
public function __construct(
IEventDispatcher $dispatcher,
) {
$event = new RegisterOrganisationProviderEvent($this);
$event = new RegisterOrganizationProviderEvent($this);
$dispatcher->dispatchTyped($event);
}
/**
* @return OrganisationProvider[]
* @return OrganizationProvider[]
*/
public function getOrganisationProviders(): array {
return $this->organisationProviders;
public function getOrganizationProviders(): array {
return $this->organizationProviders;
}
/**
* @return OrganisationProvider
* @return OrganizationProvider
*/
public function getOrganisationProvider($id): ?OrganisationProvider {
return $this->organisationProviders[$id];
public function getOrganizationProvider($id): ?OrganizationProvider {
return $this->organizationProviders[$id];
}
public function registerOrganisationProvider(OrganisationProvider $organisationProvider): self {
$this->organisationProviders[$organisationProvider->getId()] = $organisationProvider;
public function registerOrganizationProvider(OrganizationProvider $organizationProvider): self {
$this->organizationProviders[$organizationProvider->getId()] = $organizationProvider;
return $this;
}
}