mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-22 04:38:09 +01:00
consistently use AmE spelling of organization
This commit is contained in:
parent
02bb8a330f
commit
f9ad16c3fe
4 changed files with 25 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
||||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||||
<id>organization_folders</id>
|
<id>organization_folders</id>
|
||||||
<name>Organization Folders</name>
|
<name>Organization Folders</name>
|
||||||
<summary>Managed Groupfolders for your Organisation</summary>
|
<summary>Managed Groupfolders for your Organization</summary>
|
||||||
<description><![CDATA[]]></description>
|
<description><![CDATA[]]></description>
|
||||||
<version>0.0.1</version>
|
<version>0.0.1</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
|
|
|
@ -6,22 +6,22 @@ namespace OCA\OrganizationFolders\Events;
|
||||||
|
|
||||||
use OCP\EventDispatcher\Event;
|
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 */
|
/** @var OrganizationProviderManager */
|
||||||
private $organisationProviderManager;
|
private $organizationProviderManager;
|
||||||
|
|
||||||
public function __construct(OrganisationProviderManager $organisationProviderManager) {
|
public function __construct(OrganizationProviderManager $organizationProviderManager) {
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->organisationProviderManager = $organisationProviderManager;
|
$this->organizationProviderManager = $organizationProviderManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOrganisationProviderManager(): OrganisationProviderManager {
|
public function getOrganizationProviderManager(): OrganizationProviderManager {
|
||||||
return $this->organisationProviderManager;
|
return $this->organizationProviderManager;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace OCA\OrganizationFolders\OrganisationProvider;
|
namespace OCA\OrganizationFolders\OrganizationProvider;
|
||||||
|
|
||||||
abstract class OrganisationProvider {
|
abstract class OrganizationProvider {
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
public function getId() {
|
public function getId() {
|
||||||
|
|
|
@ -2,39 +2,39 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace OCA\OrganizationFolders\OrganisationProvider;
|
namespace OCA\OrganizationFolders\OrganizationProvider;
|
||||||
|
|
||||||
use OCP\EventDispatcher\IEventDispatcher;
|
use OCP\EventDispatcher\IEventDispatcher;
|
||||||
use OCP\Server;
|
use OCP\Server;
|
||||||
|
|
||||||
use OCA\OrganizationFolders\Events\RegisterOrganisationProviderEvent;
|
use OCA\OrganizationFolders\Events\RegisterOrganizationProviderEvent;
|
||||||
|
|
||||||
class OrganisationProviderManager {
|
class OrganizationProviderManager {
|
||||||
private array $organisationProviders = [];
|
private array $organizationProviders = [];
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
IEventDispatcher $dispatcher,
|
IEventDispatcher $dispatcher,
|
||||||
) {
|
) {
|
||||||
$event = new RegisterOrganisationProviderEvent($this);
|
$event = new RegisterOrganizationProviderEvent($this);
|
||||||
$dispatcher->dispatchTyped($event);
|
$dispatcher->dispatchTyped($event);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return OrganisationProvider[]
|
* @return OrganizationProvider[]
|
||||||
*/
|
*/
|
||||||
public function getOrganisationProviders(): array {
|
public function getOrganizationProviders(): array {
|
||||||
return $this->organisationProviders;
|
return $this->organizationProviders;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return OrganisationProvider
|
* @return OrganizationProvider
|
||||||
*/
|
*/
|
||||||
public function getOrganisationProvider($id): ?OrganisationProvider {
|
public function getOrganizationProvider($id): ?OrganizationProvider {
|
||||||
return $this->organisationProviders[$id];
|
return $this->organizationProviders[$id];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function registerOrganisationProvider(OrganisationProvider $organisationProvider): self {
|
public function registerOrganizationProvider(OrganizationProvider $organizationProvider): self {
|
||||||
$this->organisationProviders[$organisationProvider->getId()] = $organisationProvider;
|
$this->organizationProviders[$organizationProvider->getId()] = $organizationProvider;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue