List existing organisations

This commit is contained in:
2022-01-21 10:56:43 +00:00
parent c26c65fa8c
commit 584aa1909e
13 changed files with 613 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*
* AVSDev UF Organisations (https://avsdev.uk)
*
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
*/
namespace UserFrosting\Sprinkle\Organisations\Sprunje;
use UserFrosting\Sprinkle\Core\Sprunje\Sprunje;
/**
* OrganisationSprunje.
*
* Implements Sprunje for the organisations API.
*
* @author Craig Williams (https://avsdev.uk)
*/
class OrganisationSprunje extends Sprunje
{
protected $name = 'groups';
protected $sortable = [
'name',
'description',
];
protected $filterable = [
'name',
'description',
];
/**
* {@inheritdoc}
*/
protected function baseQuery()
{
return $this->classMapper->createInstance('organisation')->newQuery();
}
}